Installing LAMP on Ubuntu 7.10/8.04/8.10 (Linux,Apache,MySQL,PHP)
Installing Apache on Ubuntu 7.10/8.04/8.101) Open the terminal (we will be using it through most of my guide) from Applications > Accessories > Terminal
2) Install apache2 using apt-get by typing the following
a) start/stop apache2 write:
If everything is OK you should see an ordinary HTML page when you type: http://localhost in your firefox browser.
Your www folder should be in: /var/www/
1) Also in terminal write:
2) restart apache
This is it for PHP Wanna test it ? Just create an ordinary PHP page in /var/www/ and run it.
Example:
and write in it:
Echo "Hello, World!";?>
Now run it by typing http://localhost/test.php in firefox… You should see your ” Hello World ”
Installing MySQL on Ubuntu 7.10/8.04/8.10
1. Again and again in terminal execute:
2. (optional) If you are running a server you should probably bind your address by editing bind-address in /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP address
3. set your root password (although mysql should ask you about that when installing)
4. Try running it
where xxx is your password.
Note: You can install PHPMyAdmin for a graphical user interface of MySQL by executing
5. restart apache
Problems with PHP installation :
1) I try to run a PHP file it comes up with a dialog box asking me to download a .phtml file.
-> Install lamp-server by help of follwoing command
or
SYS->ADMIN->SYNAPTIC->EDIT->MARK PACKAGES BY TASK->LAMP SERVER
No comments:
Post a Comment