Monday, 17 December 2007
Installing Apache, MySQL and PHP on the ASUS EEE
Here is a little tutorial to install Apache, MySQL and PHP on your beloved ASUS EEE:
First thing, you have to add a new repository. To do so, you will have to press CTRL + ALT + T to open a terminal window and then type: sudo kwrite /etc/apt/sources.list
Then add this line: deb ftp://ftp.uk.debian.org/debian/ stable main contrib non-free
Save and close kwrite.
Then, write the following comment in the terminal to update the list: sudo apt-get update
First, we will install MySQL, like this Apache will see it and configure itself to use it during the installation: apt-get install mysql-server-5.0
Time to install Apache: apt-get install mysql-server-5.0
Now it's the turn of PHP5: apt-get install libapache2-mod-php5 php5-mysql
Once the installation is complete, make sure that Apache is running: apache2 -k restart
Time to test Apache, type the following URL in your internet browser: http://localhost/
If the page load it means that Apache is running properly on your EEE !!!
Finally, we are going to write our first PHP script and run it. Type the following comment to open a text editor: sudo kwrite /var/www/apache2-default/helloworld.php
Put the following code: <? php echo "Hello world"; ?>
Type in your internet browser the URL: http://127.0.0.1/apache2-default/helloworld.php
Voila ! Your computer is set to run MySQL and PHP on Apache !!!