XAMPP is the easiest way to get MySQL/PHP/PHPMyAdmin running on your server.
Knowing how to get XAMPP going is important since it allows you to do lots of exciting things–install blog software like WordPress, as well as wiki software like MediaWiki and course management systems like Moodle–with your computer. The benefit is obvious since it allows you to experiment with software you may not otherwise have access to.
Here are the steps I followed and now share with you (and to be honest, myself when I have to do this again someday):
1) Download XAMPP and follow the installation instructions:
sudo tar xvfz xampp-linux-1.5.0.tar.gz -C /opt
2) Change to the XAMPP directory to modify permissions
mg@home/opt/lampp/htdocs$ sudo chmod 777 -R *
(since I’m using Ubuntu Linux, I have to pretend to be root administrator using the “sudo” command).
3) Start XAMPP running by using this command:
sudo /opt/lampp/lampp start
after you type the command (in italics above), you’ll see the following:
Starting XAMPP for Linux…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
XAMPP: Starting ProFTPD…
XAMPP for Linux started.
And it will be running. To access everything, you can load your browser and go to http://localhost
4) If you’re going to use this on a server, you’ll need to address the security concerns:
To fix most of the security weaknesses simply call the following command:
5) To stop XAMPP, use
sudo /opt/lampp/lampp stop
If you install WordPress and Moodle, make sure you change the Read/Write permissions using the CHMOD command discussed in Step 2 above.
Everything posted on Miguel Guhlin’s blogs/wikis are his personal opinion and do not necessarily represent the views of his employer(s) or its clients. Read Full Disclosure