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
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
yes how to install apache and Php in debian server?
ReplyDeleteBefore proceeding to install, update the necessary packages with debian with this command.
ReplyDeleteapt-get install update
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.
ReplyDeleteIf you want to install PHP 4, just apt-get
= apt-get install apache2 php4 libapache2-mod-php4
To install PHP5, just run the following on linux shell. Note that if you dont specify packages with '4', PHP5 will be automatically installed.
ReplyDelete= apt-get install apache2 php5 libapache2-mod-php5
Apache configuration file is located at: /etc/apache2/apache2.conf and your web folder is /var/www.
ReplyDeleteTo 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.
The configuration file of mysql is located at: /etc/mysql/my.cnf
ReplyDelete