Monday, July 22, 2013

How to install xampp server on ubuntu -12.04

XAMPP is an Acronym for X(to be read as Cross for cross platform), Apache HTTP server, MySQL, PHP and Perl. It is a free open source cross platform web server solution stack package.

From XMAPP version 1.8.2 for linux, the installation process had changed. Previously it was extraction of the tar file to any desired location but now it is by running an executable which pops up a gui window for selecting the components you want to install giving it a windows like feel.

Follow below steps to install XAMPP:
  1. Download the latest version from Apache Friends
  2. Once the download is complete open the terminal and login as root using the command
    su
  3. If this is the first time that you are using the su command then you will have to first set it using the command
    sudo passwd root
  4. Goto the directory in which the installer file was downloaded
  5. Change the permissions to the installer using the command
    chmod 755 xampp-linux-version-installer.run
  6. Run the installer using the command
    ./xampp-linux-version-installer.run
    This will install the xampp server in the /opt/lampp directory
  7. Modify permissions of htdocs folder using the command
    sudo chmod 777 -R /opt/lampp/htdocs/
  8. Start server using command
    sudo /opt/lampp/lampp start
  9. To test if the server is installed type localhost in the browser, the xampp welcome page must be displayed.
The various start-stop parameters of lampp are:

ParameterFunctionality
startStart XAMPP (Apache, MySQL and eventually others)
startapacheStart only Apache
startmysqlStart only MySQL
startftpStart only ProFTPD
startwebminStart only Webmin
stopStop XAMPP (Apache, MySQL and eventually others)
stopapacheStop only Apache
stopmysqlStop only MySQL
stopftpStop only ProFTPD
stopwebminStop only Webmin
reloadReload XAMPP (Apache, MySQL and eventually others)
reloadapacheReload only Apache
reloadmysqlReload only MySQL
reloadftpReload only ProFTPD
restartStop and start XAMPP
securityCheck XAMPP's security
enablesslEnable SSL support for Apache
disablesslDisable SSL support for Apache
backupMake backup file of your XAMPP config, log and data files
oci8Enable the oci8 extenssion

To uninstall XAMPP use the command
sudo rm -rf /opt/lampp