Friday 13 September 2013

Installing PHP in ubuntu is not a difficult task. Ubuntu provide the package called LAMP server which easily make php run on your computer.
LAMP stands for:-
 
L   Linux
A   Apache
M  My sql
P   PHP

The latest versions are install by this package Apache 2, PHP 5 and MySQL 4.1 or 5.0.

What you have to do? 


Open the terminal in your computer and write down the following commands:-
First install tasksel.......
$ sudo apt-get install tasksel

Then the LAMP stack
$ sudo tasksel install lamp-server 

How to check is Apache2 installed?

 

With your web browser, go to the URI http://localhost : if you read "It works!", which is the content of the file /var/www/index.html , this proves Apache works.

Where to add the PHP files?

In root directory there is folder name var and in var folder there is folder name www. In the www folder give the write permission and you can add the new php files to that folder. you can create a new folder in the www folder. In your browser you have to specify the path of that folder to run php file.

For help with your PHP assignments:-

myassignment help 

Myassignmenthelp.net helps to complete your assignments with the complete solution of assignment. The assignments are completely plagarism free. We provide the full solution of the assignments which reduce the overhead of the students.