Posts Tagged ‘php’

How to Install PHP and Mysql in Ubuntu 9.04 (Jaunty Jackalope)

Install PHP and Mysql in ubuntu linux is very easy

First You have to install Apache Webserver
After that you can Install PHP and Mysql

Open a Terminal using Applications–> Accessories –> Terminal

Then You will get $ prompt
Do the following

$ sudo apt-get install apache2 ( If you have already installed apache Omit this line)
$ sudo apt-get install php5
$ sudo apt-get install libapache2-mod-php5
$ sudo apt-get install mysql-server
$ sudo apt-get install php5-mysql
$ sudo /etc/init.d/apache2 restart

Now You can write your php scripts and put it into the folder /var/www

Now you can install PHPMYADMIN a very useful front end utility for managing Mysql

$ sudo apt-get install phpmyadmin

Advertisements