setting up a local php/mysql server for web development
Wednesday, 18 November 2009 5:07 pm by noelposted in tech | tags: mysql, php, web development, xampp, xdebug
for php development i use a local php/mysql web server to make dev work a bit faster. these are the steps we followed for a workstation running linux.
download xampp from apache friends. the version available was 1.7.2.
extract the downloaded archive with:
sudo tar xvfz xampp-linux-1.7.2.tar.gz -C /opt
note: if you have xampp already installed, the above command will overwrite it. careful.
xampp is now installed in /opt/lampp
to start xampp:
sudo /opt/lampp/lampp start
you should see something like this:
Starting XAMPP for Linux 1.7.2...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
which means the server is ready. i don’t need an ftp server for dev work so i decided to stop proftpd:
sudo /opt/lampp/lampp stopftp
note: issuing the above command will deactivate the proftpd server permanently–it will not start when you start xampp. see the command cheatsheet somewhere below to find out how to reactivate it.
to test our setup fire up your favorite browser and type:
http://localhost
you should see something like this:
you’ll be able to see the status of the installed components, the status of the security of the system, links to documentation and most importantly, detailed information about the server system via phpinfo() as well as database administration panels–phpmyadmin and phpsqliteadmin.
at this point, we have an apache webserver running with php and mysql support.








