Re: Help on new install please ..
| From: | Giannis Vrentzos | Date: | Mon, 02 Sep 2002 10:54:21 +0000 |
| Subject: | Re: Help on new install please .. | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15632@lists.php.net to get a copy of this message | ||
Try to find DirectoryIndex in httpd.conf and check if index.php is
there.It has to look like DirectoryIndex index.html index.php
John
David Tod Sigafoos wrote:
I am having problems on a new install of PHP and Apache Win2k, Php 4.2.2, apache 1.3.26 1) Install apache. Then browse to 127.0.0.1 and get the apache screen 2) unzip php and copy to c:/php 3) install.txt a) dlls are all in the /php directory with php.exe (did not copy towindows/system32b) copied ini to windows director c) modified ini file extension_dir = c:\php d) modified ini file document_root = "c:\program files\apache group\apache\htdocs\" e) no extensions Web Server Config: First try SAPI a) copied php4ts.dll to windows/system32 directory b) added following lines to httpd.confLoadModule php4_module "c:/php/sapi/php4apache.dll" AddModule mod_php4.c AddType applicaton/x-httpd-php .phpStart Server .. get message [Fri Aug 30 11:43:16 2002] [warn] module mod_php4.c is already added, skipping Apache/1.3.26 (Win32) running... Then bring up browse and try for phpinfo.php script in htdocs I get the 'download' screen from my netscape browser. It doesnt recognize php Web Server Config: Now try php.exe (cgi) a) shut down server b) modify http.conf.# out the lines mentioned above and add the followingScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" c) start up server (no message as noted above) d) bring up browser and try for phpinfo.php script in htdocsI get a blank page. upon viewing the source it is<html><body></body></html>My phpinfo.php record is<html> <?php phpinfo(); ?> </html>This works well from my other server ...So .. what have I missed ..