The_Mage18
[H]ard|Gawd
- Joined
- Jul 31, 2004
- Messages
- 1,712
Well this is a strange little error to pop up. I upgraded from PHP4 to PHP5 via source compiling. Built the apache2 module, changed apache to use the new module, restarted apache and everything restarted and said it was playing happy.
Here's the twist: an older index.php, which contained nothing more than a redirect to another folder, doesn't work if the php5 module is loaded with apache but does work with php4. Yes, I kept the old module around should anything bizarre like this pop up. When I compiled php5, I let it use the default location of /etc for the php.ini file, same as php4, so that either module that is loaded would use the same settings.
Other than the bizarro redirect issue, everything else works fine. When I open the default link, apache spits back the normal error of Access Forbidden (I have apache set to deny file viewing so if there's no default or index file, it won't show anything but a 403). Now if I make an index.html and put in an html redirect, the link loads just fine. An index.html with the same php redirect script loads a blank page and goes nowhere.
The index.php redirect page:
It almost seems like apache isn't recognizing index.php files as valid default pages BUT, if you type that link in the redirect into a browser manually, it opens with no errors. FYI the above link is a fictional link but shows the format of what the link really is.
Server stats:
Suse Enterprise 9.3
Apache2 (not sure of the exact version, too lazy to find out but definitly not the newest)
PHP 5.1.1
PHP 4.0.1
zend.ze1_compatibility_mode = On is set in php.ini
Here's the twist: an older index.php, which contained nothing more than a redirect to another folder, doesn't work if the php5 module is loaded with apache but does work with php4. Yes, I kept the old module around should anything bizarre like this pop up. When I compiled php5, I let it use the default location of /etc for the php.ini file, same as php4, so that either module that is loaded would use the same settings.
Other than the bizarro redirect issue, everything else works fine. When I open the default link, apache spits back the normal error of Access Forbidden (I have apache set to deny file viewing so if there's no default or index file, it won't show anything but a 403). Now if I make an index.html and put in an html redirect, the link loads just fine. An index.html with the same php redirect script loads a blank page and goes nowhere.
The index.php redirect page:
Code:
<?php
header('Location: http://server/website/index.php');
exit;
?>
It almost seems like apache isn't recognizing index.php files as valid default pages BUT, if you type that link in the redirect into a browser manually, it opens with no errors. FYI the above link is a fictional link but shows the format of what the link really is.
Server stats:
Suse Enterprise 9.3
Apache2 (not sure of the exact version, too lazy to find out but definitly not the newest)
PHP 5.1.1
PHP 4.0.1
zend.ze1_compatibility_mode = On is set in php.ini