http://wiki.eeeuser.com/howto:lamp
http://www.apachefriends.org/en/xampp-linux.html
Programming has been my hobby since my secondary school days and still is, though I mainly use PHP and Javascript nowadays - Free, Open, Platform Independent. In fact, I still code my webpages wholly in Notepad :P
I have some PHP scripts of my own which I would want to use offline. I have XAMPP Lite on my Tablet PC (www.portableapps.com) which is a portable Apache web server package with PHP and MySQL. This enables me to test/run my PHP scripts offline. Now it's my Eee PC's turn :)
- Steps:
- Press Ctrl-Alt-T to open the terminal console.
- Type "sudo apt-get install apache2" to install the Apache 2 web server.
- Type "sudo kwrite /etc/apache2/httpd.conf", add the 2 lines below and save (1st line is to fix the server domain, 2nd line is to fix a bug for the Eee PC):
ServerName localhost
EnableSendfile Off - Type "sudo apt-get install php5" to install PHP 5.
- Create a shortcut bash script for Apache. Type "sudo kwrite /usr/bin/apache", add the following lines and save:
#!/bin/bash
sudo /etc/init.d/apache2 $@ - Type "sudo chmod 755 /usr/bin/apache" to set the correct permissions.
- To start Apache, type "apache start". To stop, type "apache stop"
- Put your webpages in /var/www. You will need to use "sudo cp" to copy the files inside.
- To test, open your web browser and type "http://localhost"
Another way would be to install XAMPP for Linux (or LAMP as it was previously known), but it takes up 55MB compared to 12MB above. I do not usually use MySQL so it would be better to save my Eee PC's disk space by not installing it.