#35207 [Opn->Fbk]: mod_rewrite not working properly
| From: | tony2001@php.net | Date: | Mon, 14 Nov 2005 09:08:45 +0000 |
| Subject: | #35207 [Opn->Fbk]: mod_rewrite not working properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88133@lists.php.net to get a copy of this message | ||
ID: 35207
Updated by: tony2001@php.net
Reported By: adsh at univ dot kiev dot ua
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: FreeBSD 4.11
PHP Version: 4.4.1
New Comment:
Why did you decide it happens only when mod_rewrite is On?
Please add this line: var_dump(getcwd()); before the include(); and
paste it's output here.
Previous Comments:
------------------------------------------------------------------------
[2005-11-14 00:49:12] adsh at univ dot kiev dot ua
If I replace libphp4.so to version 4.4.0 all work fine!
I don't use absolute paths.
mod_rewrite is on - You can test this URL (mod_rewrite referer
protection):
http://adsh.ukrweb.net/blog/upload/isa_server_2000.jpg
You can see more info in this ULR:
http://servous.se/punbb/viewtopic.php?pid=1329
------------------------------------------------------------------------
[2005-11-14 00:41:02] tony2001@php.net
The error message is quite descriptive.
Did you try to see if the file "inc/config.php" is really there?
Did you try to use absolute paths?
Why did you decide it happens only when mod_rewrite is On?
Try to give some more info about the issue.
------------------------------------------------------------------------
[2005-11-14 00:01:04] adsh at univ dot kiev dot ua
A recompile libphp4.so to version php4-STABLE-200511131945 (4.4.2-dev).
No results, the same error:
URL to test: http://adsh.ukrweb.net/blog/article/15/
Errors:
[Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Warning:
main(inc/config.php): failed to open stream: No such file or directory
in /home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16,
referer: http://adsh.ukrweb.net/blog/
[Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Fatal
error: main(): Failed opening required 'inc/config.php'
(include_path='.:/home/test/php') in
/home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16, referer:
http://adsh.ukrweb.net/blog/
include_path is set in php.ini for some other scrips.
With version 4.4.0 I nave no any rewrite errors.
------------------------------------------------------------------------
[2005-11-13 23:17:43] johannes@php.net
Please use a snapshot from http://snaps.php.net - we can't
support versions with external modifications
------------------------------------------------------------------------
[2005-11-13 23:10:14] adsh at univ dot kiev dot ua
I can do it when FreeBSD port been updated:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php4/
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35207
--
Edit this bug report at http://bugs.php.net/?id=35207&edit=1