Xampp
From ArchWiki
i18n |
---|
English |
Español |
Contents |
Introduction
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. It contains: Apache, MySQL, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client.
How to install
AUR
- Xampp package in the AUR
Manual
- Download the latest version from here.
- In the terminal run the following from the folder where the archive was downloaded to:
sudo tar xvfz xampp-linux-*.tar.gz -C /opt
- Use the following commands to control XAMPP:
sudo /opt/lampp/lampp {start,stop,restart}
NOTE: If you are running 64-bit arch, you must install lib32-glibc and lib32-gcc-libs.
sudo pacman -S lib32-glibc lib32-gcc-libs
Uninstalling Xampp
All the files needed by Xampp to be installed are located in the previous /opt/lampp folder. So, to uninstall Xampp, consider this command.
# rm -rf /opt/lampp
NOTE:If you had create symlinks, you need to destroy them too!
Hosting your own files
The web root directory is located at /opt/lampp/htdocs/. Either put your own files there or symlink a folder.
I sugest you to create a directory in /opt/lampp/htdocs/ called www. Then, create another folder called www, but in your home directory. You just have to add a symlink, and you will be able to edit your PHP files directly from your home.
NOTE: Don't forget to change the chmod on the www folder, or your system will ask you for a password!
# mkdir /opt/lampp/htdocs/www # chmod 777 /opt/lampp/htdocs/www $ mkdir /home/USER/www # ln -s /opt/lampp/htdocs/www /home/USER/www
To access those files, write localhost/www in your web browser.
NOTE: Xampp must be started to view .php files!