giovedì 13 agosto 2009

Web Server per Ubuntu - XAMPP - Apache, MyQL, PHP e Perl

"Molti sanno per esperienza che non è facile installare un web server Apache e diventa più difficile se vuoi aggiungere MySQL, PHP e Perl."

"XAMPP è una distribuzione Apache facile da installare contenente MySQL, PHP e Perl. XAMPP è veramente facilissimo da installare e usare - scaricala, estraila e inizia."

Per chi si affaccia per le prime volte al mondo Linux, potrebbe essere comodo trovare un degno sostituto di EasyPhp o Uniform Server che contengono, già al loro interno, tutto ciò che è necessario per avere una piattaforma web ocon un web server (apache), un Database Management System (MySql), supportando diversi linguaggi come PHP.

Ho provato e testato XAMPP e devo dire che il risultato è davvero ottimo.

Per scaricarlo andare direttamente sul sito ufficiale

http://www.apachefriends.org/en/xampp-linux.html#374

e seguire le semplici istruzioni.

Per installarlo, recarsi nella cartella di download e da terminale lanciare il comando:

sudo tar xvfz xampp-linux-1.7.2.tar.gz -C /opt

XAMPP è ora installato in /opt/lamp

Per avviarlo basta dare il comando:

sudo /opt/lampp/lampp start

Per testarne il comportamento:

http://localhost

CARTELLE E FILE IMPORTANTI
File/Directory Scopo
/opt/lampp/bin/ Home dei comandi di XAMPP. /opt/lampp/bin/mysql per esempio chiama il monitor MySQL.
/opt/lampp/htdocs/ La directory DocumentRoot di Apache.
/opt/lampp/etc/httpd.conf Il file di configurazione di Apache.
/opt/lampp/etc/my.cnf Il file di configurazione di MySQL.
/opt/lampp/etc/php.ini Il file di configurazione di PHP.
/opt/lampp/etc/proftpd.conf Il file di configurazione di ProFTPD. (sin dalla 0.9.5)
/opt/lampp/phpmyadmin/config.inc.php Il file di configurazione di phpMyAdmin.

*

START AND STOP PARAMETERS
Parameter Description
start Starts XAMPP.
stop Stops XAMPP.
restart Stops and starts XAMPP.
startapache Starts only the Apache.
startssl Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated.
startmysql Starts only the MySQL database.
startftp Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated.
stopapache Stops the Apache.
stopssl Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated.
stopmysql Stops the MySQL database.
stopftp Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated.
security Starts a small security check programm.

Nessun commento:

Posta un commento