Re: PHP with apache 1.3
| From: | Peter Goggin | Date: | Mon, 27 May 2002 13:59:24 +0000 |
| Subject: | Re: PHP with apache 1.3 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7119@lists.php.net to get a copy of this message | ||
I still havnt got PHP to work. When I start Apache in a console window it
says:
Apache/1.3.24 (Win32) PHP/4.2.1 running ...
This implies the two are working together, yet php sections of web pages are
not parsed. Where should I start looking for the problem? Has anyone else
had this problem?
Regards
Peter Goggin
----- Original Message -----
From: "Peter Goggin" <pgoggin@smartchat.net.au>
To: <php-install@lists.php.net>
Sent: Saturday, May 25, 2002 8:42 PM
Subject: [PHP-INST] PHP with apache 1.3
> I am trying to install php with apache 1.3
>
> The steps I followed are:
> 1. Unpack the zip file for 4.2.1. This unpacked to directory
> c:\php-4.21-Win32
> 2. Rename directory to c:\php
> 3. Copy php4ts.dll to C:\windows\system
> 4. Copy php4apache.dll to c:\windows\system
> 5. Edit the php.ini file
> · Copy php.ini-recommended to php.ini
> · Make following changes
> · Extension directory: extension_dir = C:\php\extensions
> · Doc_root: doc_root = "C:/usr/www/my-domain"
>
> 6. copied moved to c:\usr\mibs
> 7. Edit the apache.conf file
> · Add loadmodule: LoadModule php4_module c:/php/sapi/php4apache.dll
> · Addmodule: AddModule mod_php4.c - this was placed above AddModule
mod_so.c
> · AddType: AddType application/x-httpd-php .php .phtml .htm
> · Script Alias:
> ScriptAlias /php/ "c:/php/"
> <Directory "c:/php/">
> Allowoverride None
> Options None
> Order Allow,deny
> Allow from all
> </directory>
> 8. Start apache
> 9. Use web browser to open file:
> <html>
> <body>
> <?php
> print "hello world.";
> ?>
> </body>
> </html>
>
> I get a blank screen in the brwser, but can view the script (view source)
> Can anyone please tell me what I missed out or got wrong?
>
> Regards
>
> Peter Goggin
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>