Sunday, January 5, 2014

Install LAMP on Ubuntu 13.10

Open the terminal, then run
sudo apt-get install lamp-server^
^ sign is a Tasksel command (https://help.ubuntu.com/community/Tasksel)

Now, let's make a new php file to test.
Firstly, I'm going to open a text editor called gedit as a root user.

Press Alt + F2, then run
gksudo gedit
Note: if gksudo is not installed, you can install it using
sudo apt-get install gksu
Then type this php code
<?php
phpinfo();
?>
And save it in /var/www/ folder. I use "phpinfo.php" as the file name.
Now, open it in web browser: http:/localhost/phpinfo.php
You should be able to see the output of phpinfo().
LAMP server installation is done.
References:
Source: http://gregrickaby.com/how-to-install-lamp-on-ubuntu/

No comments: