Click to See Complete Forum and Search --> : Error on Apache + Win98& PHP4 configuration


Anon
07-22-2000, 01:50 PM
I have a problem running Apache 1.3.9 and PHP4 on Win98. I think I set all things like they should be, but I'm getting an error.
In my httpd.conf I have these lines:

ScriptAlias /php4/ "C:/php4/"

AddType application/x-httpd-php .php .php4
AddType application/x-httpd-php-source .phps

Action application/x-httpd-php "/php4/php.exe"
When I invoke php script, I'm getting folowing header information, printed on the page (where it doesn't belong):

X-Powered-By: PHP/4.0.0 Content-type: text/html

Need help !

Anon
07-22-2000, 04:57 PM
Pavlovic,

Your problem is most likely cuased because, in your php.ini, you're loading dll's for which PHP4 currently has no support. Try commenting out all the Windows Extensions in php.ini. If you need more that just MySQL support, which is built-in, grab the PHP 4.0.1pl2 update from php.net. If that still doesn't give you the level of support you require, try download.swwwing.com. Also, unlike PHP3, you don't specify version in Apache's Action directive;

Action application/x-httpd-php "/php4/php.exe"

should read:

Action application/x-httpd-php "/php/php.exe"

Hope this helps!

Cheers,

Geoff