I had sent the following problem seeking a solution. I am happy to say I have found the solution. Actually, it was due to a foolish mistake - is there any other kind?! - in the HTML test file I had written. There was a hyperlink to the test PHP script:

<a href="c:/Program Files/Apache Group/Apache/htdocs/phpinfp.php>PHP Info</a>

This should be:

<a href="http://localhost/phpinfo.php>PHP Info</a>

And, after the correction, PHP 4.4.0 works fine with Apache 1.3.33 under Win 98.

Sorry to have bothered you!
m r rao

************************************
I am trying to install PHP 4.4.0 (php-4.4.0-win32) as a server module
under Win 98, to work in tandem with Apache 1.3.33.

PHP works fine by itself, as tested by the command in a DOS window:

php -i

Apache also works fine as the default Apache server page is displayed
through IE.

But the problem is that they don't work together. A aimple PHP script,
phpinfo.php:

<? phpinfo() ?>

is displayed as it is i.e. the PHP source is displayed.

This problem is described in your INSTALL.html as follows:

"Common Problems

* If you see the PHP source instead of the result the script should
produce, you have probably forgot to edit /etc/conf.d/apache.
Apache needs to be started with the -D PHP4 flag. To see if the
flag is present, you should be able to see it when using ps ax |
grep apache while Apache is running."

The solution given is for Unix/Linux. I want a similar solution for Win 98.

Can you please help? Thanks!
m r rao

P.S.: I am attaching the files: autoexec.bat, httpd.conf and php.ini

Reply via email to