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 !!!
Subscribe to:
Post Comments (Atom)
4 comments:
Is that Apache install command right?
Debian package manager will pick the "most recent" package version, unless you take special care.
To avoid your EEE to end up with versions that don't work, see the instructions here: http://wiki.eeeuser.com/addingxandrosrepos
On that page you can see how to change the package priority depending on where they come from.
use apt-get install apache2 instead of second mysql install
I know nothing about how to use Linux. I bought the Asus because I nneded a cheap little computer that is only ever going to be needed to run one PHP script. I need to install Apache and PHP on it, and I need to make sure the GD Libraries get installed and configured with PHP. With the above process do that? Sorry for my ignorance.
Post a Comment