Difference between revisions of "XAMPP"

From Joomla! Documentation

m
(Corrected URLs, spelling, markup.)
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
 
</translate>
 
</translate>
 
<translate><!--T:2-->
 
<translate><!--T:2-->
XAMPP is an easy-to-install package that bundles the Apache web server, PHP, XDEBUG, and the MySQL database. This allows you to create the environment you need to run Joomla! on your local machine. The latest version of XAMPP is available at [http://www.apachefriends.org/en/index.html the XAMPP web site]. Downloads are available for Linux, Windows, Mac OS X and Solaris. Download the package for your platform.</translate>  
+
XAMPP is an easy-to-install package that bundles the Apache web server, PHP, Xdebug, and the MySQL database. This allows you to create the environment you need to run Joomla! on your local machine. The latest version of XAMPP is available at [https://www.apachefriends.org/index.html the Apache Friends website]. Downloads are available for Linux, Windows and Mac OS X. Download the package for your platform.</translate>
  
 
<translate><!--T:3-->
 
<translate><!--T:3-->
''Important Note Regarding XAMPP and Skype:'' Apache and Skype both use port 80 as an alternative for incoming connections. If you use Skype, go into the Tools-Options-Advanced-Connection panel and deselect the "Use 80 and 443 as alternatives for incoming connections" option. If Apache starts as a service, it will take 80 before Skype starts and you will not see a problem. But, to be safe, disable the option in Skype.</translate>
+
''Important Note Regarding XAMPP and Skype:'' Apache and Skype both use port 80 as an alternative for incoming connections. If you use Skype, go into the Tools-Options-Advanced-Connection panel and deselect the ''Use 80 and 443 as alternatives for incoming connections'' option. If Apache starts as a service, it will take 80 before Skype starts and you will not see a problem. But, to be safe, disable the option in Skype.</translate>
  
 
<translate>
 
<translate>
Line 16: Line 16:
  
 
<translate><!--T:7-->
 
<translate><!--T:7-->
Installation for Windows is very simple. You can use the XAMPP installer executable (for example, "xampp-windows-x64-7.4.4-0-VC15-installer.exe"). Detailed installation instructions for Windows are available [https://www.apachefriends.org/download.html here].
+
Installation for Windows is very simple. You can use the XAMPP installer executable (for example, ''xampp-windows-x64-7.4.4-0-VC15-installer.exe''). Detailed installation instructions for Windows are available [https://www.apachefriends.org/download.html here].
  
 
<!--T:81-->
 
<!--T:81-->
If you are on Windows XP or 2003 they are not supported by the main package but there are compatible versions of XAMPP for these platforms listed on the download page (but you will only be able to run PHP 5.4 or lower - and therefore will only be able to test Joomla 3.x and lower).</translate>  
+
If you are on Windows XP or 2003 they are not supported by the main package but there are compatible versions of XAMPP for these platforms listed on the download page (but you will only be able to run PHP 5.4 or lower - and therefore will only be able to test Joomla 3.x and lower).</translate>
  
 
<translate><!--T:8-->
 
<translate><!--T:8-->
For Windows, it is recommended to install XAMPP in "c:\xampp" (not in "c:\program files"). If you do this, your Joomla! (and any other local web site folders) will go into the folder "c:\xampp\htdocs". (By convention, all web content goes under the "htdocs" folder.)</translate>
+
For Windows, it is recommended that you install XAMPP in ''c:\xampp'' (not in ''c:\program files''). If you do this, your Joomla! (and any other local website folders) will go into the folder ''c:\xampp\htdocs''. (By convention, all web content goes under the ''htdocs'' folder.)</translate>
  
 
<translate><!--T:9-->
 
<translate><!--T:9-->
If you have multiple http servers (like IIS) you can change the xampp listening port. In <xamppDir>\apache\conf\httpd.conf, modify the line Listen 80 to Listen [portnumber] (ex: "Listen 8080").</translate>
+
If you have multiple HTTP servers (such as IIS) you can change the XAMPP listening port. In ''xamppDir''\apache\conf\httpd.conf, modify the line ''Listen 80 to ''Listen [portnumber]'' (for example: ''Listen 8080'').</translate>
  
 
<translate><!--T:82--> {{tip|title=Joomla Community Magazine Tutorial|text=You can find a detailed tutorial on installing XAMPP on Windows, along with the Joomla 4 Beta, the Joomla Patch Tester and Git in this [https://magazine.joomla.org/all-issues/june-2020/github-installing-git Joomla Community Magazine article].}}</translate>
 
<translate><!--T:82--> {{tip|title=Joomla Community Magazine Tutorial|text=You can find a detailed tutorial on installing XAMPP on Windows, along with the Joomla 4 Beta, the Joomla Patch Tester and Git in this [https://magazine.joomla.org/all-issues/june-2020/github-installing-git Joomla Community Magazine article].}}</translate>
Line 32: Line 32:
  
 
===Installation on Linux=== <!--T:10-->
 
===Installation on Linux=== <!--T:10-->
</translate>  
+
</translate>
  
 
<translate>==== Install XAMPP ==== <!--T:11--></translate>
 
<translate>==== Install XAMPP ==== <!--T:11--></translate>
 
<translate><!--T:12-->
 
<translate><!--T:12-->
 
Open Terminal and enter:</translate>
 
Open Terminal and enter:</translate>
+
 
 
  sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
 
  sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
  
 
<translate><!--T:13-->
 
<translate><!--T:13-->
(replace ''xampp-linux-1.7.7.tar.gz'' with the version of xammp you downloaded).
+
(replace ''xampp-linux-1.7.7.tar.gz'' with the version of xampp you downloaded).
 
It has been reported that the MYSQL database of xampp 1.7.4 does not work with Joomla 1.5.22</translate>
 
It has been reported that the MYSQL database of xampp 1.7.4 does not work with Joomla 1.5.22</translate>
  
 
<translate><!--T:14-->
 
<translate><!--T:14-->
This installs ... Apache2, mysql and php5 as well as an ftp server.</translate>
+
This installs ... Apache2, MySQL and PHP5 as well as an ftp server.</translate>
+
 
 
  ''sudo /opt/lampp/lampp start''
 
  ''sudo /opt/lampp/lampp start''
 
<translate><!--T:15-->
 
<translate><!--T:15-->
Line 56: Line 56:
  
 
<translate>
 
<translate>
==== Test your XAMPP localhost server ==== <!--T:17-->
+
==== Test Your XAMPP ''localhost'' Server ==== <!--T:17-->
 
</translate>
 
</translate>
 
<translate><!--T:18-->
 
<translate><!--T:18-->
Line 86: Line 86:
  
 
<translate><!--T:26-->
 
<translate><!--T:26-->
FTP the unpacked Joomla installation files to the newly created Joomla folder.</translate>  
+
FTP the unpacked Joomla installation files to the newly created Joomla folder.</translate>
  
 
<translate><!--T:27-->
 
<translate><!--T:27-->
'''Important:'''</translate>  
+
'''Important:'''</translate>
 
<translate><!--T:28-->
 
<translate><!--T:28-->
* The xammp installation sets the correct Ownership of the files and permissions.</translate>
+
* The XAMPP installation sets the correct Ownership of the files and permissions.</translate>
 
<translate><!--T:29-->
 
<translate><!--T:29-->
* Using the '''CHOWN command''' will '''cause Ownership problems with xampp'''.</translate>
+
* Using the '''CHOWN command''' will '''cause Ownership problems with XAMPP'''.</translate>
 
<translate><!--T:30-->
 
<translate><!--T:30-->
* '''Using nautilus''' to manipulate folders/files on localhost will '''cause Ownership problems with xampp'''.</translate>
+
* '''Using nautilus''' to manipulate folders/files on localhost will '''cause Ownership problems with XAMPP'''.</translate>
  
 
<translate><!--T:31-->
 
<translate><!--T:31-->
Line 129: Line 129:
  
 
<translate>
 
<translate>
==== Creating a link in the Ubuntu menu ==== <!--T:40-->
+
==== Creating a Link in the Ubuntu Menu ==== <!--T:40-->
 
</translate>
 
</translate>
 
<translate><!--T:41-->
 
<translate><!--T:41-->
'''To create a GUI for xammp connected to your Ubuntu menu'''</translate>
+
'''To create a GUI for XAMPP connected to your Ubuntu menu'''</translate>
  
 
<translate><!--T:42-->
 
<translate><!--T:42-->
Line 168: Line 168:
  
 
<translate>
 
<translate>
==== XDebug PHP debugger ==== <!--T:47-->
+
==== Xdebug PHP Debugger ==== <!--T:47-->
 
</translate>
 
</translate>
  
 
<translate><!--T:48-->
 
<translate><!--T:48-->
The XAMPP package for Linux does not includes the XDebug PHP debugger. To install XDebug on Debian or Ubuntu:</translate>
+
The XAMPP package for Linux does not includes the Xdebug PHP debugger. To install Xdebug on Debian or Ubuntu:</translate>
  
 
<translate><!--T:49-->
 
<translate><!--T:49-->
Line 182: Line 182:
  
 
<translate><!--T:50-->
 
<translate><!--T:50-->
- Download the [http://www.apachefriends.org/en/xampp-linux.html development package] for your version of XAMPP and extract it over your existing installation:</translate>
+
- Download the [http://www.apachefriends.org/en/xampp-linux.html development package] for your version of XAMPP and extract it to your existing installation:</translate>
  
 
<pre>sudo tar xvfz xampp-linux-devel-1.7.7.tar.gz -C /opt </pre>
 
<pre>sudo tar xvfz xampp-linux-devel-1.7.7.tar.gz -C /opt </pre>
  
 
<translate><!--T:51-->
 
<translate><!--T:51-->
- Build XDebug:</translate>
+
- Build Xdebug:</translate>
  
 
<pre>wget http://xdebug.org/files/xdebug-2.1.3.tgz
 
<pre>wget http://xdebug.org/files/xdebug-2.1.3.tgz
Line 195: Line 195:
  
 
<translate><!--T:52-->
 
<translate><!--T:52-->
After this you will have following output on your console…</translate>
+
After this you will have following output on your console:</translate>
  
 
<pre>Configuring for:
 
<pre>Configuring for:
Line 206: Line 206:
 
<translate><!--T:53-->
 
<translate><!--T:53-->
 
Then the output will be this.. please monitor the directory specified.</translate>
 
Then the output will be this.. please monitor the directory specified.</translate>
<pre>Installing shared extensions:     /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/ </pre>
+
<pre>Installing shared extensions: /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/ </pre>
  
 
<translate><!--T:54-->
 
<translate><!--T:54-->
Create a folder in your temp folder that will holds the data file generated by XDebug:</translate>
+
Create a folder in your ''temp'' folder that will hold the data file generated by Xdebug:</translate>
 
<pre>sudo mkdir /opt/lampp/tmp/xdebug
 
<pre>sudo mkdir /opt/lampp/tmp/xdebug
 
sudo chmod a+rwx -R /opt/lampp/tmp/xdebug </pre>
 
sudo chmod a+rwx -R /opt/lampp/tmp/xdebug </pre>
Line 217: Line 217:
  
 
<translate><!--T:56-->
 
<translate><!--T:56-->
Install using PHP extensions community library (PECL) bundled with xampp:</translate>  
+
Install using PHP extensions community library (PECL) bundled with XAMPP:</translate>
 
  sudo /opt/lampp/bin/pecl install xdebug
 
  sudo /opt/lampp/bin/pecl install xdebug
  
 
<translate><!--T:57-->
 
<translate><!--T:57-->
 
On Ubuntu/Debian you can install using:</translate>
 
On Ubuntu/Debian you can install using:</translate>
  apt-get install php5-xdebug  
+
  apt-get install php5-xdebug
  
 
<translate><!--T:58-->
 
<translate><!--T:58-->
Line 228: Line 228:
  
 
<translate><!--T:59-->
 
<translate><!--T:59-->
'''Warning for 64bit users'''</translate>
+
'''Warning for 64-bit users'''</translate>
  
 
<translate><!--T:60-->
 
<translate><!--T:60-->
When compiling XDebug or installing via apt-get, you will receive an error when (re)starting xampp:</translate>
+
When compiling Xdebug or installing via apt-get, you will receive an error when (re)starting xampp:</translate>
  
 
  /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so: wrong ELF class: ELFCLASS64
 
  /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so: wrong ELF class: ELFCLASS64
  
 
<translate><!--T:61-->
 
<translate><!--T:61-->
This is because xampp runs 32bit but XDebug is 64bit. To overcome this problem, either make xdebug.so on a 32bit machine or download it from:</translate>
+
This is because XAMPP runs 32-bit but Xdebug is 64-bit. To overcome this problem, either make ''xdebug.so'' on a 32-bit machine or download it from</translate> [https://code.activestate.com/komodo/remotedebugging/ ActiveState]
 
 
http://code.activestate.com/komodo/remotedebugging/
 
  
 
<translate><!--T:62-->
 
<translate><!--T:62-->
Download the file: "PHP Remote Debugging Client" for "Linux (x86)"
+
Download the ''PHP Remote Debugging Client'' file for ''Linux (x86)''.
Extract the content of the file on your computer, this compressed file contains several folders with version numbers ex: 4.4, 5.0, 5.1 ... 5.3 and so forth, get in the folder with the higher version number or the one that works for you, then manually copy the file "xdebug.so" to the following location, overwrite if needed</translate>
+
Extract the contents of the file on your computer. This compressed file contains several folders with version numbers ex: 4.4, 5.0, 5.1... 5.3 and so forth, get in the folder with the higher version number or the one that works for you. Then copy the ''xdebug.so'' file to the following location (overwrite if needed):</translate>
  
 
  /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/
 
  /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/
  
 
<translate><!--T:63-->
 
<translate><!--T:63-->
Remember this location could be different on your computer</translate>
+
Remember this location could be different on your computer.</translate>
  
 
<translate>
 
<translate>
Line 253: Line 251:
 
</translate>
 
</translate>
 
<translate><!--T:65-->
 
<translate><!--T:65-->
Mac OS X actually includes an Apache server out-of-the-box, but most developers will prefer to use the integrated tools and configurability provided by XAMPP.</translate>
+
Mac OS X includes an Apache server out-of-the-box, but most developers will prefer to use the integrated tools and configurability provided by XAMPP.</translate>
  
 
<translate><!--T:66-->
 
<translate><!--T:66-->
As with most programs on Mac, installation is a breeze. Visit [https://www.apachefriends.org/en/download.html Apache Friends - Mac OS X] for the universal binary download.</translate>  
+
As with most programs on Mac, installation is a breeze. Visit [https://www.apachefriends.org/download.html Apache Friends] for the universal binary download.</translate>
  
 
<translate><!--T:67-->
 
<translate><!--T:67-->
Once the file has finished downloading, just open the disk image, and drag the XAMPP folder to the "Applications" folder alias.</translate>
+
Once the file has finished downloading, open the disk image, and drag the XAMPP folder to the ''Applications'' folder alias.</translate>
  
 
<translate><!--T:68-->
 
<translate><!--T:68-->
To start the server, open "XAMPP Control.app" and press the start button next to Apache.</translate>
+
To start the server, open ''XAMPP Control.app'' and press the start button next to Apache.</translate>
  
 
<translate>
 
<translate>
Line 271: Line 269:
 
<br />
 
<br />
 
<translate><!--T:71-->
 
<translate><!--T:71-->
'''You can change the listening port of XAMPP.''' In \Applications\XAMPP\xamppfiles\etc\httpd.conf, modify the line that says, "Listen 80" to Listen [portNumber]. E.g.:</translate>
+
'''Change the listening port of XAMPP.''' In ''\Applications\XAMPP\xamppfiles\etc\httpd.conf'', modify the ''Listen 80'' line to ''Listen [portNumber]''. For example: </translate>''Listen 8080''
<pre>Listen 8080</pre>
 
  
 
<translate><!--T:72-->
 
<translate><!--T:72-->
'''You can change the listening port of the pre-installed Apache server.''' In finder, go to "/etc" (CMD+SHIFT+G); from here you will be able to navigate through the normally hidden Apache files. Find the folder labeled Apache2, and edit the "http.conf" file. Modify the line that says, "Listen 80" to Listen [portNumber]. E.g.:</translate>
+
'''Change the listening port of the pre-installed Apache server.''' In finder, go to ''/etc'' (CMD+SHIFT+G). From here you will be able to navigate through the normally hidden Apache files. Find the folder labeled ''Apache2'', and edit the ''http.conf'' file. Modify the ''Listen 80'' line to ''Listen [portNumber]. For example: </translate>''Listen 8080''
<pre>Listen 8080</pre>
 
  
 
<translate><!--T:73-->
 
<translate><!--T:73-->
''Note: If you choose to change the port of the pre-installed Apache server, you may need to restart your computer for changes to take effect. You will also have to authenticate as an administrator to change these files.''</translate>
+
'''Note''' If you choose to change the port of the pre-installed Apache server, you may need to restart your computer for the changes to take effect. You will also have to authenticate as an administrator to change these files.</translate>
  
 
<translate>
 
<translate>
Line 286: Line 282:
  
 
<translate><!--T:75-->
 
<translate><!--T:75-->
Once XAMPP is installed and you have started the Apache service with the XAMPP Control Panel tool, you can test it by opening your browser and navigating to "http://localhost". You should see the XAMPP welcome screen similar to the one below.</translate>
+
Once XAMPP is installed and you have started the Apache service with the XAMPP Control Panel tool, you can test it by opening your browser and navigating to ''http://localhost''. You should see the XAMPP welcome screen similar to the one below.</translate>
  
 
[[File:Phpinfo on xampp.png|800px]]
 
[[File:Phpinfo on xampp.png|800px]]
  
 
<translate><!--T:77-->
 
<translate><!--T:77-->
Select the link called "phpinfo()" in the top menu. This will display a long screen of information about the PHP configuration, as shown below.</translate>
+
Select the ''phpinfo()'' link in the top menu. This will display a long screen of information about the PHP configuration, as shown below.</translate>
  
 
[[File:Phpinfo.png|800px]]
 
[[File:Phpinfo.png|800px]]
  
 
<translate><!--T:79-->
 
<translate><!--T:79-->
At this point, XAMPP is installed successfully. Notice the "Loaded Configuration File". We will be editing this file in the next section to configure XDebug.</translate>
+
At this point, XAMPP is installed successfully. Notice the ''Loaded Configuration File''. We will be editing this file in the next section to configure Xdebug.</translate>
  
 
<noinclude>
 
<noinclude>

Latest revision as of 14:57, 28 September 2022

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎Türkçe • ‎español • ‎français • ‎português do Brasil

Introduction[edit]

XAMPP is an easy-to-install package that bundles the Apache web server, PHP, Xdebug, and the MySQL database. This allows you to create the environment you need to run Joomla! on your local machine. The latest version of XAMPP is available at the Apache Friends website. Downloads are available for Linux, Windows and Mac OS X. Download the package for your platform.

Important Note Regarding XAMPP and Skype: Apache and Skype both use port 80 as an alternative for incoming connections. If you use Skype, go into the Tools-Options-Advanced-Connection panel and deselect the Use 80 and 443 as alternatives for incoming connections option. If Apache starts as a service, it will take 80 before Skype starts and you will not see a problem. But, to be safe, disable the option in Skype.

Installation on Windows[edit]

Installation for Windows is very simple. You can use the XAMPP installer executable (for example, xampp-windows-x64-7.4.4-0-VC15-installer.exe). Detailed installation instructions for Windows are available here.

If you are on Windows XP or 2003 they are not supported by the main package but there are compatible versions of XAMPP for these platforms listed on the download page (but you will only be able to run PHP 5.4 or lower - and therefore will only be able to test Joomla 3.x and lower).

For Windows, it is recommended that you install XAMPP in c:\xampp (not in c:\program files). If you do this, your Joomla! (and any other local website folders) will go into the folder c:\xampp\htdocs. (By convention, all web content goes under the htdocs folder.)

If you have multiple HTTP servers (such as IIS) you can change the XAMPP listening port. In xamppDir\apache\conf\httpd.conf, modify the line Listen 80 to Listen [portnumber] (for example: Listen 8080).

Joomla Community Magazine Tutorial

You can find a detailed tutorial on installing XAMPP on Windows, along with the Joomla 4 Beta, the Joomla Patch Tester and Git in this Joomla Community Magazine article.


Installation on Linux[edit]

Install XAMPP[edit]

Open Terminal and enter:

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

(replace xampp-linux-1.7.7.tar.gz with the version of xampp you downloaded). It has been reported that the MYSQL database of xampp 1.7.4 does not work with Joomla 1.5.22

This installs ... Apache2, MySQL and PHP5 as well as an ftp server.

sudo /opt/lampp/lampp start

and

sudo /opt/lampp/lampp stop

starts/stops all the services

Test Your XAMPP localhost Server[edit]

Open your Browser and point it to

http://localhost

The index.php will redirect to

http://localhost/xampp

There you will find instructions on how to change default usernames/passwords. On a PC that does not serve files to the Internet or LAN then changing the defaults is a personal decision.

Get Joomla[edit]

Download the latest Joomla instalation zip [1]

Unzip to your hard drive

Connect to localhost with an FTP client Default

nobody
lampp

Create a folder for your Joomla on the localhost server

FTP the unpacked Joomla installation files to the newly created Joomla folder.

Important:

  • The XAMPP installation sets the correct Ownership of the files and permissions.
  • Using the CHOWN command will cause Ownership problems with XAMPP.
  • Using nautilus to manipulate folders/files on localhost will cause Ownership problems with XAMPP.

Database info

Host

localhost

Default Database name

test

Default Database user

root

There is no default Password.

Administrator password is your choice.

Installing Sample Data is recommended for the novice user.

After installation delete the installation directory and point your Browser to:

http://localhost/yournewjoomlafolder

or

http://localhost/yournewjoomlafolder/administrator

Creating a Link in the Ubuntu Menu[edit]

To create a GUI for XAMPP connected to your Ubuntu menu

Open up the Terminal and type

sudo gedit /usr/share/applications/xampp-control-panel.desktop

Then copy the following into the gedit and save.

[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"
Icon=/usr/share/icons/Tango/scalable/devices/network-wired.svg
Terminal=false
Type=Application
Categories=GNOME;Application;Network;
StartupNotify=true

If the control panel fails to launch, try running the Exec command directly in the terminal:

gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"

If you receive the error:

Error importing pygtk2 and pygtk2-libglade

Install the missing libraries:

sudo apt-get install python-glade2

Xdebug PHP Debugger[edit]

The XAMPP package for Linux does not includes the Xdebug PHP debugger. To install Xdebug on Debian or Ubuntu:

- Install the build-essential package:

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install autoconf

- Download the development package for your version of XAMPP and extract it to your existing installation:

sudo tar xvfz xampp-linux-devel-1.7.7.tar.gz -C /opt 

- Build Xdebug:

wget http://xdebug.org/files/xdebug-2.1.3.tgz
tar xzf xdebug-2.1.3.tgz
cd xdebug-2.1.3/
/opt/lampp/bin/phpize

After this you will have following output on your console:

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   20090626 
./configure --with-php-config=/opt/lampp/bin/php-config
make
sudo make install 

Then the output will be this.. please monitor the directory specified.

Installing shared extensions: /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/ 

Create a folder in your temp folder that will hold the data file generated by Xdebug:

sudo mkdir /opt/lampp/tmp/xdebug
sudo chmod a+rwx -R /opt/lampp/tmp/xdebug 

Alternative installations:

Install using PHP extensions community library (PECL) bundled with XAMPP:

sudo /opt/lampp/bin/pecl install xdebug

On Ubuntu/Debian you can install using:

apt-get install php5-xdebug

(warning: this will also install Apache and PHP from apt repositories).

Warning for 64-bit users

When compiling Xdebug or installing via apt-get, you will receive an error when (re)starting xampp:

/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so: wrong ELF class: ELFCLASS64

This is because XAMPP runs 32-bit but Xdebug is 64-bit. To overcome this problem, either make xdebug.so on a 32-bit machine or download it from ActiveState

Download the PHP Remote Debugging Client file for Linux (x86). Extract the contents of the file on your computer. This compressed file contains several folders with version numbers ex: 4.4, 5.0, 5.1... 5.3 and so forth, get in the folder with the higher version number or the one that works for you. Then copy the xdebug.so file to the following location (overwrite if needed):

/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/

Remember this location could be different on your computer.

Installation on Mac OS X[edit]

Mac OS X includes an Apache server out-of-the-box, but most developers will prefer to use the integrated tools and configurability provided by XAMPP.

As with most programs on Mac, installation is a breeze. Visit Apache Friends for the universal binary download.

Once the file has finished downloading, open the disk image, and drag the XAMPP folder to the Applications folder alias.

To start the server, open XAMPP Control.app and press the start button next to Apache.

A Little Troubleshooting[edit]

Many Mac users have a little difficulty at this stage when trying to set up another instance of Apache on their machine. If you cannot start XAMPP's Apache, you have two options:
Change the listening port of XAMPP. In \Applications\XAMPP\xamppfiles\etc\httpd.conf, modify the Listen 80 line to Listen [portNumber]. For example: Listen 8080

Change the listening port of the pre-installed Apache server. In finder, go to /etc (CMD+SHIFT+G). From here you will be able to navigate through the normally hidden Apache files. Find the folder labeled Apache2, and edit the http.conf file. Modify the Listen 80 line to Listen [portNumber]. For example: Listen 8080

Note If you choose to change the port of the pre-installed Apache server, you may need to restart your computer for the changes to take effect. You will also have to authenticate as an administrator to change these files.

Test XAMPP Installation[edit]

Once XAMPP is installed and you have started the Apache service with the XAMPP Control Panel tool, you can test it by opening your browser and navigating to http://localhost. You should see the XAMPP welcome screen similar to the one below.

Phpinfo on xampp.png

Select the phpinfo() link in the top menu. This will display a long screen of information about the PHP configuration, as shown below.

Phpinfo.png

At this point, XAMPP is installed successfully. Notice the Loaded Configuration File. We will be editing this file in the next section to configure Xdebug.