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 geditNote: if gksudo is not installed, you can install it using
sudo apt-get install gksuThen 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:
Post a Comment