Re: .PHP code does not parse php5 Apache2 on windows
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: .PHP code does not parse php5 Apache2 on windows

From: David Haynes <david.haynes2@sympatico.ca>
Date: Wed Apr 05 2006 - 16:21:01 CEST

Massa Batheli wrote:
> onedbguru@firstdbasource.com wrote:
>> okay... from a previous post you said that the phpinfo(); page was
>> working.. I assumed you had named it xxx.php and it displayed correctly
>> - is that not the case?
>>
>> there should be an:
>>
>> AddType application/x-httpd-php .php .phtml
>> (or similar line in either a mod_php.conf file or in the httpd.conf
>> file. without this directive, .php files cannot be "parsed".
>>
>> Q: take a closer look at:
>>
>> LoadModule php5_module "C:/PHP/php5apache2.dll"
>>
>> shouldn't that be:
>> LoadModule php5_module "C:\PHP\php5apache2.dll"
>> maybe not - for real work, I don't do windows :)
>
> I appreciate your time but will like to share this with you. The
> phpinfo.php page works wether front or back slashes are applied but
> code is not still parsed.
> What could be messed up here ...............
> Massa bathe
>

Some questions:
1. what is in your apache2/logs/errors.log file? Anything relevant?
2. have you tried a really simple php file?
    For example:
    <?php
        echo "<h1>Hi there</h1>";
    ?>

3. where are the pages that are not being served? In the same place as
the phpinfo?

-david-
Received on Mon May 1 02:48:49 2006