# Install XAMPP for Linux

We could download latest XAMPP from http://www.apachefriends.org/en/xampp-linux.html.

<ul>
<li>Installation: tar xvzf xampp-linux-1.x.x.tar.gz -C /opt. This step is very important, we must use the command to install XAMPP. If you want upgrade exist XAMPP, also use the command to replace old files to upgrade.</li>
<li>Run /opt/lampp/lampp start, then XAMPP start.</li>
<li>Test page: http://hostname, if there is a page displayed, then XAMPP work well.</li>
<li>Restart XAMPP, run /opt/lampp/lampp restart; Security check; run /opt/lampp/lampp security; Switch PHP version, run /opt/lampp/lampp php4 or /opt/lampp/lampp php5; Check PHP version, run /opt/lampp/lampp phpstatus.</li>
<li>Close FTP, run /opt/lampp/lampp stopftp, Then FTP would be closed. Even restart XAMPP next time, FTP would not start together.</li>
<li>Parameter include: start/stop/restart/startapache/stopapache/startssl/stopssl/startsql/stopsql/startftp/stopftp/security.</li>
<li>Run rm -rf /opt/lampp to remove XAMPP.</li>
</ul>

File directory:

<ul>
<li>/opt/lampp/bin/, XAMPP module directory. For example, /opt/lampp/bin/mysql can start MySQL.</li>
<li>/opt/lampp/htdocs/, Apache files directory.</li>
<li>/opt/lampp/etc/httpd.conf, Apache configuration files.</li>
<li>/opt/lampp/etc/my, MySQL configuration files.</li>
<li>/opt/lampp/etc/php.ini, PHP configuration files.</li>
<li>/opt/lampp/etc/proftpd.conf, ProFTPD configuration files.</li>
<li>/opt/lampp/phpmyadmin/config.inc.php, phpMyAdmin configuration files.</li>
</ul>
