Hello

I'm trying to install Apace 1.3.14 and PHP 4.0.6 in a W2000 environment.
I unzipped PHP in 'c:\php'
I installed Apace in 'c:\programmi\apache group\apache'

I copied, renamed and updated 'c:\php.ini-inst' in 'c:\windows\php.ini'

I updated 'httpd.conf', adding the following lines:
    DirectoryIndex index.html index.php index.php3 index.php4 index.phtml
    ScriptAlias /php/ "c:/php"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .phtml
    Action application/x-httpd-php "/php/php.exe"
    Listen 1974

I created a file 'c:\php\testphp.php' with the following content:
<HTML>
        <?php phpinfo(); ?>
</HTML>

I'm using IE5, and the request 'http://127.0.0.1:1974/php/testphp.php'
returns:
'Internal server error'. The following are lines from 'error.log':

[Tue Dec 04 11:50:11 2001] [error] [client 127.0.0.1] c:/php/testphp.php is
not
executable; ensure interpreted scripts have "#!" first line
[Tue Dec 04 11:50:11 2001] [error] [client 127.0.0.1] couldn't spawn child
process: c:/php/testphp.php

Instead, the request 'http://127.0.0.1:1974/php/php.exe?testphp.php' works
fine, and I can see the PHP info page, but I doesn't like this type of URL.

What mistakes I've done in configuring Apache?

Thank in advance.
Regards
Paolo

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to