Difference between revisions of "Xampp"

From ArchWiki
Jump to: navigation, search
(moved the start/stop/restart commands from the "Manual Install" section to a "using XAMPP" section, as they are valid for the aur install as well)
m
Line 1: Line 1:
 
[[Category:Web Server (English)]]
 
[[Category:Web Server (English)]]
{{i18n_links_start}}
+
 
{{i18n_entry|English|Xampp}}
+
{{i18n|Xampp}}
{{i18n_entry|Español|Xampp_(Español)}}
+
 
{{i18n_entry|Русский|Xampp_(Русский)}}
+
{{i18n_links_end}}
+
  
 
= Introduction =
 
= Introduction =

Revision as of 08:30, 17 September 2010


This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی


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

Manual

  1. Download the latest version from here.
  2. In the terminal run the following from the folder where the archive was downloaded to:
    sudo tar xvfz xampp-linux-*.tar.gz -C /opt

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

Using XAMPP

Use the following commands to control XAMPP:
sudo /opt/lampp/lampp {start,stop,restart}

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 Files Outside the htdocs directory

The document root (web root) directory is located at /opt/lampp/htdocs/. All files placed in this directory will be processed by the web server.

To host other files on your system with XAMPP, you can configure an alias with apache.

  1. Edit apache's httpd.conf with your favorite editor.
    nano /opt/lampp/etc/httpd.conf
  2. In the Alias section, add an alias:
Alias /shortname /full_file_path
    <directory /full_file_path> 
        AllowOverride FileInfo Limit Options Indexes
        Order allow,deny
        Allow from all
    </directory>
Don't forget to restart apache:
/opt/lampp/lampp restart

This will allow you to host files from your home directory (or any other directory) with XAMPP.

In the above example, you can access the files by pointing your web browser to localhost/shortname.

Links