Install PHP in Ubuntu 12.04 (Precise Pangolin)

1. double-click on your terminal and type

sudo apt-get install apache2

2. type ‘Y’ to proceed

3. installing apache2

4. finish install apache2 in ubuntu

5. proceed to next step, type the below command;

sudo apt-get install php5

6. type ‘Y’ to continue

7. installing php

8. finish install php in ubuntu

9. restart your apache2

10. test your connection to apache, click on web-browser and type: http//localhost

11. test your php; change to root user from terminal

vi /var/www/phpinfo.php

and press Enter to continue

12. type as per below screenshot

13. click on your web-browser and type: http://localhost/phpinfo.php

14. finish. hiaark!


4 thoughts on “Install PHP in Ubuntu 12.04 (Precise Pangolin)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s