Monday, October 1, 2007

Using Apache Server

If you are web programmer and you are trying to run your php file in have to install apache server.
you can search the required application by : sudo apt-cache search apache
and then install the package as : sudo apt-get install package name;
sudo apt-get install apache2
and also install these for running php : sudo aptitude install php5
sudo aptitude install libapache2-mod-php5

and for mysql use : sudo apt-get install phpMyAdmin

to restart the apache server : sudo /etc/init.d/apache2 restart

and your www directory will be at : /var/www

and at default : http://localhost/apache2-default
and to run phpmyadmin : http://localhost/phpmyadmin

No comments: