note 107322 added to install.windows.apache2

From: Date: Tue, 31 Jan 2012 01:50:05 +0000
Subject: note 107322 added to install.windows.apache2
Groups: php.notes 
Request: Send a blank email to php-notes+get-185801@lists.php.net to get a copy of this message
After installing apache 2.2 (httpd-2.2.17-win32-no_ssl.msi) and php 5.3 (php-5.3.9-win32-vc9-x86.msi) and then navigating to a local directory with php files, the browser only displayed a file listing. Unfortunately, during the php install, windows 7 would not allow the installer to edit the http.conf file... To resolve, I added these lines to the conf: LoadModule php5_module "C:/program files (x86)/php/php5apache2_2.dll" PHPIniDir "c:/program files (x86)/php" AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps ...and updated this line... DirectoryIndex index.html to this... DirectoryIndex index.html index.php ...along with making the appropriate updates that specified the location of the local document root. ...and in php.ini, make sure this update is present: extension_dir = "c:/yourserverpath/php/ext/" I also made sure that C:\server\php was listed as an environment variable on the pc... And finally, make sure you reboot your pc for everything to take... ---- Server IP: 69.147.83.197 Probable Submitter: 76.102.177.22 ---- Manual Page -- http://www.php.net/manual/en/install.windows.apache2.php Edit -- https://master.php.net/note/edit/107322 Del: integrated -- https://master.php.net/note/delete/107322/integrated Del: useless -- https://master.php.net/note/delete/107322/useless Del: bad code -- https://master.php.net/note/delete/107322/bad+code Del: spam -- https://master.php.net/note/delete/107322/spam Del: non-english -- https://master.php.net/note/delete/107322/non-english Del: in docs -- https://master.php.net/note/delete/107322/in+docs Del: other reasons-- https://master.php.net/note/delete/107322 Reject -- https://master.php.net/note/reject/107322 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185801) next »