note 38546 added to install.apache2

From: Date: Fri, 26 Dec 2003 16:33:58 +0000
Subject: note 38546 added to install.apache2
Groups: php.notes 
Request: Send a blank email to php-notes+get-62503@lists.php.net to get a copy of this message
Apache 2 & PHP 4.3.4 as Module - Installation Notes ................................................... // I wrote this "Installation Notes" because all the trouble I had trying to have my PHP pages running fine on Apache web server after a WinXP reinstallation. Hope this be useful to anyone. Initial problem description: Apache was running fine. When trying to get PHP to work reading a php file I recieved "error 400 bad request" on my browser. I've tryied switchig versions and make configs a lot of times. It didn't work, I couldn't have PHP working as CGI Script, like I had it before. Then I tryed PHP as a Module, and I get "Could not find php4apache2.dll". So, finally, this is the solution that worked for myself: 1. Install Apache 2. Config httpd.conf 2.1. DocumentRoot "D:/WWWROOT" 2.2. <Directory "D:/WWWROOT"> 2.3. DirectoryIndex index.html index.htm index.php 2.4. LoadModule php4_module "E:/Archivos de programa/php/sapi/php4apache2.dll" 2.5. AddType application/x-httpd-php .php 3. Install PHP 4. Config php.ini 4.1. doc_root = "D:\WWWROOT\" 4.2. extension_dir = "E:\Archivos de programa\PHP\" 5. Copy PHP install files: 5.1. \php\php4ts.dll -> \php\SAPI (1) 5.2. \php\php4ts.dll -> \Windows\system32 (2) 5.3. \php\dlls\iconv.dll -> \php\SAPI (1) 5.4. \php\dlls\iconv.dll -> \Windows\system32 (2) 5.5. \php\SAPI\php4apache2.dll -> \Windows\system32 (2) (1) Copy this files first, then restart Apache and try (2) If it still don't run ok then copy this files Buena Suerte!!! |\ /| | | | | | _\ | | myd@softhome.net | \\ . 2003 xmas | \/ | \ \ / / | | \\ | | | | | / | | \\ . http://myd.zapto.org | | | | | / | |_\\ |_| |_| || |____/ ---- Manual Page -- http://www.php.net/manual/en/install.apache2.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38546 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38546&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38546&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62503) next »