How to set up Apache and PHP

Asked By 30 points N/A Posted on -
qa-featured

 

I have recently installed Ubuntu on my Windows 8 setup. I am not aware of the details of how to set up Apache and PHP. Can any expert let me know the details.

SHARE
Answered By 0 points N/A #199493

How to set up Apache and PHP

qa-featured

Hi Amarion,
The steps to install Apache and PHP are as follows:
1) Download the Apache software and install in the system
2) Download the PHP software and install it
3) Open 'C:Program Files (x86)Apache Software FoundationApache2.2confhttpd.conf' in notepad
4) Add the following lines in the end of the file:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
5) Extract PHP in 'C:php'
6) Rename php.ini-dist to php.ini
7) Restart Apache
8) In the Apache-Dirhtdocs, create a file test.php with content '<?=phpinfo()?>'
9) Restart the system after the settings are completed

Login/Register to Answer

Related Questions