note 24591 deleted from install.windows by betz
| From: | betz@php.net | Date: | Tue, 23 Sep 2003 09:22:11 +0000 |
| Subject: | note 24591 deleted from install.windows by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56950@lists.php.net to get a copy of this message | ||
Note Submitter: dkarlovi@foi.hr
----
I don't know is this gonna help anyone here, but I know it gave me some trouble.
If you are installing Apache/1.3.X (my X = 24) on WinXP, you can:
- install PHP to c:\program files\php (%PHPDIR%)
- install Apache to c:\program files\apache group\apache (%APDIR%) and choose
to run it like a service
- copy php4ts.dll to %WINDIR%\system32
- copy %PHPDIR%\sapi\php4apache.dll to %APDIR%\modules
- rename php.ini-optimized to php.ini (leave it in %PHPDIR%)
- change %PHPDIR%\php.ini to suit your ath (ie. path for extensions)
- add to %APDIR%\conf\httpd.conf:
- after all other LoadModule directives (my line 194.)
LoadModule php4_module modules/php4apache.dll
- after all other AddModule directives (my line 242)
AddModule mod_php4.c
(note that every other instruction said "AddModule mod_php.c", which gave me
some trouble :)
- after other AddType directives (my lines 816 and 817)
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Restart Apache with Start/Run:
net stop apache
net start apache
Create a file called info.php and place <?php phpinfo() ?> in it, save the file
in your Apache DocumentRoot (find it in %APDIR%\conf\httpd.conf) and access the
file with your browser (throught Apache, ofcourse ;)
Then modify the %PHPDIR%\php.ini to suit your needs. HTH.