Wednesday, January 13, 2010

How To Get A Gecko To Eat A Pinkie

Site on dynamic virtual local host [02-03 ] - Fedora How-to






Virtual hosts on the local

We come to this point to the creation of virtual hosts

. Apache handles content locally folder / var / www /
, which is not exactly the best placement.
To make sure that Apache can reach, but also manage content
outside of this folder

is necessary to make some changes to the configuration file
.
Those proposals are the minimum necessary for the functioning of all, in addition, the permissions are applied

assume that there are problems of user access , that there is the need for special restrictions for specific users.
If so, the more detailed documentation, which deals with these issues, which were drawn from the information below you will find here (the site of Miranda)
, here (Apache - userdir) and
here (Apache - Public Folders)

.

We identify or create a folder where first of all we are interested to enter the material.
The syntax provides for the obligation of using the name
public_html , which is to provide a path like / ... / Public_html / foldername) but under the aspect of functionality is not strictly necessary. Then you do. Let's try , for example, and download the current stable version 1.5 in Italian: Joomla_1.5.15_ita-Stable.tgz
. in NB I have a 500 GB HD with multiple partitions, one of only 350GB of data formatted in EXT3
, this partition is the ideal for me to park a bit 'of sites for testing and development. So I created within this folder Serverspace
. Since the partition, called HD350GB is mounted in / media directory, the path absolute in this folder will / media/HD350GB/Serverspace . Once downloaded, I unzipped the downloaded file by Joomla! in a folder called joomla15ita
, which I cut and pasted within the folder Serverspace, obtaining the absolute path / media/HD350GB/Serverspace/joomla15ita . So I created, since that was missing (but in this case is not essential), the folder cgi-bin
joomla15ita within the folder. At this point, I typed in console root: # chmod 755-R / media/HD350GB/Serverspace # chmod 701-R /-R media/HD350GB/Serverspace/joomla15ita/cgi-bin
The recursive extended permissions to all folders, and this, that the allocation of permits, is crucial to the success of the initial automatic configuration of Joomla!, especially for the folder and the file Installation configuration.php to content 'inside the site. at this point to be created the alias , ie alternative pointers Apache, so I typed: # gedit / etc / httpd / conf.d / alias
and I put in the file, according to the syntax alias
/ URL-path / directory_del_file /
, the following lines: Alias \u200b\u200b / joomla15ita / media/HD350GB/Serverspace/joomla15ita
§ Directory / Media/HD350GB/Serverspace/joomla15ita §
Options Indexes FollowSymLinks AllowOverride All Order allow, deny Allow from all § / § Directory
The interesting thing is that if I other sites contained in other folders named, for es. sito02, sito03, etc.. and copy these folders within the folder Serverspace, after entering into the cgi-bin if it is missing and assigned permissions as before, I just put in the same file
other groups of commands like: Alias \u200b\u200b/ sito02 / media/HD350GB/Serverspace/sito02 § Directory / media/HD350GB/Serverspace/sito02 § Options Indexes FollowSymLinks
AllowOverride All Order allow, deny Allow from all § / § Directory
etc.. to make sure that Apache will recognize them.





But this step is not enough : You must also intervene in the heart of Apache configuration, ie in the httpd.conf file
# gedit / etc / httpd / conf / httpd.conf First of all we do is that the path / media/HD350GB/Serverspace /, as well as existing, is enabled

; to get it, you must enable, in the range of the line 350, function
UserDir , commenting (ie beginning of the sentence by inserting the hash mark #) the line "UserDir disabled", and uncomment the final line UserDir, affixing
the path of our interest, as shown below as an example:

§ IfModule mod_userdir .
c §
# # UserDir is disabled by default since it can confirm the presence # of a username
on the system (
Depending on home directory # permissions).
#
# UserDir disabled #
# To enable requests to / ~ user / to serve the user's public_html # directory, remove the "UserDir disabled" line above, and uncomment # The following line INSTEAD: # UserDir / media / HD350GB/Serverspace
§ / IfModule §

Come to this point of nell'intorno

line 975 which has the command NameVirtualHost *: 80 and decommentiamolo (ie we remove the hash mark # at the beginning of the sentence).


# NameVirtualHost *: 80 #


nell'intorno of
then go online and insert the 996

virtualhost § # VirtualHost *: 80 # §
ServerAdmin webmaster@dummy-host.example.com # DocumentRoot / www / docs / dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs / dummy-host.example.com -error_log # CustomLog logs / dummy-host.example.com -access_log common #§/VirtualHost§
§VirtualHost *:80§
DocumentRoot /media/HD350GB/Serverspace/joomla15ita
ServerName joomla15ita ScriptAlias /cgi-bin/ "/media/HD350GB/Serverspace/joomla15ita/cgi-bin/" §Directory /media/HD350GB/Serverspace/joomla15ita§ AllowOverride All Options All §/Directory§ §/VirtualHost§

§VirtualHost *:80§
DocumentRoot /media/HD350GB/Serverspace/sito02
ServerName sito02
ScriptAlias /cgi-bin/ "/media/HD350GB/Serverspace/sito02/cgi-bin/"
§Directory /media/HD350GB/Serverspace/sito02§
AllowOverride All Options All

§ / Directory
§ § / § VirtualHost

etc..

I recommend: Let the gates only in the initial sample strings (like the first block above, which will already be set in the script), remembering that a line that starts with a pound sign is interpreted as a simple statement as an instruction rather than irrelevant program.

At this point you quit gedit saving the file httpd amended, and launching the

restart Apache (the restart must be done every time you edit the httpd.conf file), with the following syntax:
# / etc / init.d / httpd restart

then change the hosts file:
# gedit / etc / hosts file inserting in a row for each configured host:
127.0.0.1 127.0.0.1 joomla15ita
sito02

al'uscita and saving. Each host


at this point can be invoked in the browser
with the syntax, eg.
http://joomla15ita


(\u0026lt;- back to all'01 03)



(go to 03 of 03 ->)



Swollen Joints And Hives

Site on dynamic virtual local host [01-03] - Fedora How-to





Last Revised: January 12 2011


A how-to
to run a dynamic site

locally under Fedora? With all the guides that are out there?
Maccome Yes, you say, just take a

open source CMS like Joomla
! , go to Joomla.org or Joomla.it
or
Joomlaitalia.com
, and is everything you want.
Mmmmmhhh, everything? Not really. There is always something that does not work, statement or not suitable, or a small hiccup interpretation, or a setting to review, and I broke the boxes to waste time.
This is a pro-
full memo that allows you to get to run a dynamic site (PHP
,

Perl, Python

) as Joomla, but Drupal
or other, locally on the virtual site to test it offline with all the templates we want, with
RDBMS - Relational database management system - running, passing across a line
problemini
normally meet and that it is very difficult to be taken into consideration all together for each of the individual sources, before the site is able to activate. short, a simple step by step
for noobs like me, like "you know, for example., Joomla? No? So, if you give me 20 minutes to prove you do it on your Linuxbox ..." :-D
NB for everything related to the ' yumex to install, easier to find if you select view groups or, alternatively, type the package installer in console root
provenance (

if you belong to the group sudo sudoers , or by logging in as root up with
(enter) and password (enter)) First step: I assume that we start from scratch , that in Linuxbox there is installed and activated a server LAMP / LAPP , a group of server-side: -

Linux - the operating system; - Apache http server - server Web - MySQL or PostgreSQL RDBMS - relational database management system server side - PHP - scripting language
. Two caveats:
- as is known, the second P can be, instead of PHP, Perl or Python, depending on the selected language.
- the server that you can be can be LAMP LAPP instead, which means that the RDBMS can be chosen (replacing the P M) between MySQL and Postgres . . Both of these are present in the RDBMS repository . The choice should be based on the actual support the hosting provider offers chosen (eg. Linux instead of Win). Create a system that is based on PostgreSQL to find that is not fully supported, unlike MySQL, it might not be nice. The privilege to postgreSQL imo would be given not only because this is RDBMS objectively superior to MySQL, PostgreSQL, but also because, besides being open source also , is still under development, while development of MySQL, after the recent acquisition by Oracle ,

Sun (Java, OpenOffice, Solaris, MySQL) and statements made by its CEO, remains for now, sadly, a great unknown.
Unfortunately for Postgres, its support in Joomla is more complex, so it is advisable for a quick installation using MySQL, however, listed below are the instructions for installation. Because LAMP is essential for our purposes, let's
download and activate it to
.
Linux. If you have not already installed, then go straight on Fedora project and download it. NB it will take a while for you 'more than 20 minutes ... :-DDD



Apache 2 # yum-y install httpd goes anyway checked that the following packages are also installed with the following command: # yum-y install httpd-manual install mod_perl mod_python mod_ssl mod_auth_mysql mod_auth_pgsql awstats distcache crypto-utils To start the server: # / etc / init. d / httpd start For verification, type in the browser http://localhost will see the welcome page of Apache To stop the server: # / etc / init.d / httpd stop To restart the server: # / etc / init.d / httpd restart
For simplicity, instead of
# / etc / init.d / servicename can commandname
be used # service servicename commandname The httpd: # service httpd restart

PHP [NB I do not want to look on the net the way to prevent php code to be written to interfere with native code which is written the blog, resulting in modified if not eliminated. The quickest way for all lines of php code that will follow, was to replace the initial element (\u0026lt;) and end (>) of a script with the element (§).
Obviously, the lines of code from this article copincollate may not work until the restoration of the original elements.]
# Yum install php -y install php

still has to be checked that they are also installed the following packages with the following command: # yum-y install php-mysql php-pgsql tomcat5 phpldapadmin phpmyadmin php-odbc php-ldap php php-pdo-pgsql perl-DBD-MySQL perl-DBI

To test it:

# / etc / init.d / httpd restart
# gedit / var / www / html / testphp.php
included in § this script file? php phpinfo ();? §

Save in the browser and type:
http://localhost/testphp.php


MySQL
# yum-y install mysql
still has to be checked that they are installed also the following packages with the following command:
# yum-y install mysql-server php-mysql MySQL-python libdbi-dbd-mysql mysql-devel mod_auth_mysql perl-DBD-MySQL mysql-gui-common mysql-gui-tools mysql mysql-libs-query-browser
To install the MySQL control center (the F14 release): # yum-y install mysql-workbench

or even, and probably better
# yum install phpMyAdmin

mysql-administrator is a ' graphical interface that is launched from the menu system.
phpMyAdmin, however, is a graphical browser that launches into space by writing the URL:
http://localhost/phpmyadmin/

This will be useful later (post 03 of 03) talking about the management of the database.

PostgreSQL

an alternative to MySQL

can install Postgres. # yum-y install postgresql
still has to be checked that they are also installed the following packages with the following command:
# yum-y install postgresql-jdbc postgresql-contrib postgresql-python libdbi-dbd-pgsql unixODBC perl-DBD- ODBC-Pg postgresql postgresql-test-utils rhdb qt-postgresql postgresql-server


Install pgSQL control center
# yum-y install phpPgAdmin pgAdmin3

(go to 02 of 03 ->)



Thursday, January 7, 2010

Funny Baby Card Message

Bay Magnetic





Sometimes you do not understand if you go forward or back:-D. The Mule is, the Mule is wrong, you have to go to the torrent, sawing the server, the Mule is better with Kad but is slow, the Bay is under attack, the Pirates are on the run .... Then a sudden stops, turns around and says: Stop! Now we have really wrecked ..... the tracker! :-D

Summary: The Pirate Bay, tired of going to court and not as it should monetize its business, shifting gears and

kills the torrent, and that's the beauty of the thing called on other sites tracker to do so as soon as possible.
To what end? Simple. Go once and for all
the magnet link
, that is, a decentralized system

multi-component which does not serve the file. torrent to download a file, but a hash

, that is the code assigned to the file to download.
The system, through the

DHT or Distributed Hash Tables

, allows you to connect to a bootstrap node

and from there to a set of nodes for the identification of
peers who can provide the hash searched. In practice, does the same thing does. Torrent, but without the. Torrent and without server support for tracking, in other words, achieves the same result
without breaking the law (and Is that enough):-P. So when they come to a page where you need a content, and this can be downloaded via magnet links, click on it with confidence, you will not be attached to the mouse or the keyboard.
The only negative is that you can get the browser to tell you that your loved one does not know how to open the link as
Protocol "

magnet" is not associated with any application
.
With Firefox and Opera no problem. First procuriamoci application that can handle such a protocol. I in Fedora, Gnome or KDE that is, use KTorrent

: it is valid, it is simple, it has a intuitive. Of course everyone has their own tastes. In this case, however, KTorrent (currently v. 3.3.1) does not support the protocol "magnet" (indeed, it is better to say that to me does not work, as some argue
going while others do not, and There is a lot of people likely around ...:-D), so I decided to fall back on standard Fedora repository, simple and intuitive, and supports the magnet.


Once installed yumex

, enter the reference in Firefox this:
the address bar type about: config and press enter step 1 right click -> key insert a "new" -> Boolean -> name:
network.protocol-handler.expose.magnet with value -> true dates and enter step 2 add another key Right "new" -> String -> name: network.protocol-handler.app.magnet with value ->
deluge and enter the dates
assigning a key step in the value False, when you click the magnet link Firefox will ask which application you want to associate the protocol. For
Opera the mechanism is:
menu Tools -> Preferences -> Advanced -> Programs

click on "add " and the "Protocol " enter the term in the action while magnet selected " open with another application "and type
/ usr / bin / deluge
(or go there with the" browse )
Good magnet link all :-) PS 05/02/201
0
Update: Mozilla's addons among Magnetiser 0.9 that achieves essentially the same result.


Thursday, December 3, 2009

Japanese Wedding Greetings

Linux! Linux! Linux! Fedora 12


How to evoke a great white ... :-D
Then, a few friends experienced problems in being able to enjoy the game of common favorite team (yes, I've not yet mentioned, is the legendary Genoa, and I am a appassionatissimo Griffin) trying to buy the service Mediaset Premium (I really wanted to write more commonly, but then I end up closing the blog).
Score: money spent (bad) game and followed by radio, and now that there are rattellano the phone with poor underpaid workers who know nothing and can do nothing. Maccome, you may say, with all that is streaming on the net? The objection was (do not be offended Giulione, if given in full: you know I respect you ;-)): (talking about TVU) "Some time ago I had it installed but then I have antivirus and spyware that had infected not reported only the PC but also your TV, washing machine and the grill! Seriously sometimes seen but is a repository of junk information that pollute the computer. " Yeah, we are privileged and maybe some of those protocols do not run on Linux, but we can do better, and here comes the sense of reflection that I report in this post.
Most users of a PC / laptop / netbook statistically using the instrument mainly for the following functions:
- Networking
especially the browser, like Mozilla Firefox, Opera, Netscape, Safari, Chrome, or unfortunately (especially for those who use it), Internet Explorer.
The browser has already replaced many of the specific applications (with the browser and its plugins are already manages the web with its beautiful forum, social networking (propane, imo the end of this facebook is ), the mail The gaming network, blogging, usenet, photos, multimedia files, file sharing, drawning, the networked storage
, VoIP, and in a little ', as the trend towards cloud computing, all applications needed, including professional ones) - Document Management office suite
- personal storage. - gaming installed permanent neglecting the aspect of gaming in the latest permanent, which requires specific hardware and software, a machine used for these purposes with Windows to manage the system is exactly like seeing the Genoa with Mediaset. pay for a package. Linux (Ubuntu or Fedora, one of the most popular distro, and I, as you know, use the second), free operating system, free, open, shared, now has plenty of mature and particularly suitable for such use, especially with regard to security, and those who switch to Linux it is usually so pleased that no longer feels the need to return to Win, or at least this is my experience over the past five years. No more viruses, no more menate.

course, on Linux, at least for now, is not all there is to win (in some respects, indeed, much, much more), but there is no remedy at all as long as the machine used does not suffer in terms of performance.

A desktop PC, for example (prices from medium to low performance, but more than enough for a normal user), essentially consists of a case (container or chassis) (approx 30-40 E) with power (about 40 E), a motherboard (about 60 E), a processor (known CPU, possibly dual core, that is, with two units in, almost two processors in one, even better if quad core is four units in a) (80 E ca core 2 duo, quad core about 120 E), a video card (from 30 E), volatile memory banks (RAM, random access memory) (4 GB ca 60 E), one or more hard drives (1 TB ca 80 E), a DVD or Blue Ray (20 to 140 E) and any other devices, though not essential. Motherboard, CPU, RAM and video go hand in hand and must be assembled with the right technical and economic criteria, the power supply must have adequate power to the required components, the case must be well ventilated. With a good core 2 duo (dual core with 4 MB of second-generation of Level 2 cache, technologically antiquated already) and 4GB of RAM, Linux kernel 2.6.31 (latest) runs perfectly, and allows you to run without great delays, two essential programs for the nostalgic to Win: Wine, which lets you install and run Linux in some applications (many would say) that are found only in the Windows version, and VirtualBox, a virtualization program very popular and very functional. Just then, in Linux, start virtualbox and run the operating system you want (there can be several depending on the installed capacity and performance of the PC), WinXP, for example, goes to great, and in this system (as if it were a box inside another box, type Matryoshka) you can install within certain performance limits, what you want in native form (eg, TVU Player, SopCast, Mediacenter, PPLive, U95, UUSee, TVants, StreamerOne, etc. .), and damage from viruses or malware, as long as they exist, will be felt only inside the inner box, which you can manipulate as you want, just like a hamster in a wheel .... So: what are you waiting to take the plunge? ;-)