Tuesday, March 23, 2010

debian Installation

How to install apache and PHP in debian?

6 comments:

  1. yes how to install apache and Php in debian server?

    ReplyDelete
  2. Before proceeding to install, update the necessary packages with debian with this command.
    apt-get install update

    ReplyDelete
  3. Apache is one of the most famous web server which runs on most linux based servers. With just few commands you can configure apache to run with PHP 4 or PHP 5.

    If you want to install PHP 4, just apt-get
    = apt-get install apache2 php4 libapache2-mod-php4

    ReplyDelete
  4. To install PHP5, just run the following on linux shell. Note that if you dont specify packages with '4', PHP5 will be automatically installed.
    = apt-get install apache2 php5 libapache2-mod-php5

    ReplyDelete
  5. Apache configuration file is located at: /etc/apache2/apache2.conf and your web folder is /var/www.

    To check whether php is installed and running properly, just create a test.php in your /var/www folder with phpinfo() function exactly as shown below.

    ReplyDelete
  6. The configuration file of mysql is located at: /etc/mysql/my.cnf

    ReplyDelete