How to run PHP on Ubuntu

2010年9月30日 星期四

Today if we want to run PHP ,we must install some services.

 

First:Apache 

$ sudo apt-get install apache2

Second:MySQL(often uses with PHP,so we install it ,too)

$ sudo apt-get install mysql-server

Third:install PHP for Apache HTTP Server
$ sudo apt-get install php5

Fourth:install MySQL for Apache HTTP Server
$ sudo apt-get install libapache2-mod-auth-mysql

$ sudo apt-get install php5-mysql

 

Now you can test it 

Open your browser and type 127.0.0.1 in your address bar

if you were success,you will see "It works!!"

 

0 意見:

張貼留言