There are a few ways you can make a basic lamp “Linux Apache MySQL PHP” server. First you have deiced if you want use an old machine or dual boot with current one. If you want just try this for fun I would choose to run a virtual machine on your computer. If you are new to Linux I would recommend using Ubuntu. I feel its the easiest to learn and has the most support/information on the web. Once you get your machine setup and install Ubuntu. Last time I tried this I used 12.04
So you got Ubuntu 12.04 up and running now to make it a LAMP. Open the terminal and past this code to get it up to date:
sudo apt-get update
sudo apt-get upgarde
Once you do that you will be able to install LAMP server server with this command:
sudo apt-get install lamp-server^ Once you do that you should be able to go to http://localhost in a browser and then see the Glorious It works! Thats is all you need to if you want to just play with html and css. If you want try WordPress, you will want to install phpmyadmin with this command:
sudo apt-get install phpmyadmin Once you do this you will need to add a this line:
Include /etc/phpmyadmin/apache.conf to this file:
Once you do that restart Apache:
sudo service apache2 restart You will then be able to access phpmyaddmin through http://localhost/phpmyadmin So setup the database, Then in your terminal go /var/www/ this is your root directory. You cando this by typing in this command: cd /var/www Once your there can download a copy of WordPress with this command: sudo wget http://wordpress.org/latest.zip Then that is finished downloading unzip it with this command: sudo unzip latest.zip You will then be able to go to http://localhost/wordpress and then it just fill in the data that is reacquired from your database and you will be use WordPress on your own machine.
If you have any questions please let me know.