Forum Moderators: phranque
Problem is when I try code like this:
PHP Code:
<?php
echo file_get_contents('http://www.example.com/');
?> Apache pops up problem in both IE and Firefox and I can't see output of above simple common PHP line, which I used in all previous machines.
What's the problem with my Apache2/ PHP setup? I'm not getting it. Please help.
In all the machines: It pops up a error Window: Apche HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience.
Few phpinfo() information:
allow_call_time_pass_reference On
allow_url_fopen On
always_populate_raw_post_data Off
max_execution_time 30
max_input_time -1
PHP version is 4.4.2 and Apache is 2.0.53.0
Error signature
szAppName: Apache.exe szAppVer: 2.0.53.0 szModName: php4ts.dll szModVer: 4.4.2.2 offset: 000c5fca
All installation are having same errors.
If it is a memory mapping issue, you should check your Apache config on those Windows boxes to make sure you have it properly configured. There are some tips and links in message number 3 of Installing PHP5 Under Windows XP and Apache [webmasterworld.com]. Although the thread refers to PHP5, the tips apply to all Windows binary installations. Please read that message and the associated links. And if you make changes to the server configuration file(s), don't forget to restart Apache.
I tried combinations/ both of:
EnableMMAP Off
EnableSendfile Off
Its not working. So should I try another version of PHP for my Windows XP? Okay, I'm trying again fresh download of PHP 4.4.2 from [php.net...]
After all, PHP 4.4.2 seems a good version of PHP just below PHP 5!