Re: Interesting PHP5 redirect problem
| From: | Carey Brown | Date: | Sun, 11 Dec 2005 02:50:48 +0000 |
| Subject: | Re: Interesting PHP5 redirect problem | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16885@lists.php.net to get a copy of this message | ||
Nevermind, I figured out how to fix the problem. index.php was not added
to DirectoryIndex in httpd.conf but this same setup worked with
libphp4.so. Thus, the mystery continues but hey, it works, I'm not going
to look a gift daemon in the thread.
Carey Brown
IS Service Center
Extension 38580
>>> "Carey Brown" <Carey.Brown@parkview.com> 12/10/2005 17:48 >>>
Hello,
I upgraded from PHP4 to PHP5 by compiling the source code.
This code:
<?php
header('Location: http://server/website/index.php');
exit;
Carey Brown
IS Service Center
Extension 38580
?>
Works fine with the PHP4 module for Apache2 but with the PHP5 module,
the page comes up as a 403 file view forbidden (I have apache set to
search for valid index or default pages then throw this error so this is
normal). Normally I'd say that apache isn't recognizing index.php pages
as valid pages but if you type the url in manually, it opens properly.
It's only this redirect page that errors. If I put the above PHP script
in the body of an html page, the page loads as a blank and does
nothing.
Both PHP5 and PHP4 modules use the same ini and I did enable the zend
compatability option. Anyone have any ideas?