|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
whenever i "Enable Spider-friendly URLs" i keep getting all sorts of errors with php program files not being found (eg, clicking any of the above menu items brings up an "input file not found" error.
i am presuming this is related to "PATH_INFO" environmental variable. so does anyone know: where is this set, and what is it set to?
Last edited by Rick; 10/23/2006 11:47 AM.
|
|
|
|
Joined: Jun 2006
Posts: 346
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 346 |
What version of PHP and apache are you running assuming you are on a Linux box?
I have been running spider friendly URLs since the first version of 7 without errors. It sounds like you have an apache or PHP issue, not a script issue.
|
|
|
|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
i ran spider-friendly urls with my previous system with no problems.
PHP Version is 4.3.11.
Apache/1.3.37 (Unix) mod_tsunami/3.0 FrontPage/5.0.2.2634
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
My .htaccess has the following: AcceptPathInfo on Please note however that I'm running: PHP Version 4.3.9 Apache/2.0.52 (CentOS) I believe however that AcceptPathInfo is an Apache 2.0 option (more info here). I'm not entirely sure of the equivelant to this in apache 1
|
|
|
|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
i've found out where to put this PATH_INFO environment variable (php.ini). now all i need to know is what value it has to have. any suggestions?
|
|
|
|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
this is rather depressing ... no-one here knows anything about this spider problem? my site is starting to lose traffic i suspect because of this, so it's not a small issue. at least not to me, anyway ...
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I'm not sure if your version of PHP has this option, but if php is running as a cgi, there is a setting in php.ini that can be changed to make sure PATH_INFO returns a value:
cgi.fix_pathinfo =1
|
|
|
|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
I'm not sure if your version of PHP has this option, but if php is running as a cgi, there is a setting in php.ini that can be changed to make sure PATH_INFO returns a value:
cgi.fix_pathinfo =1 thanks, that seems to have fixed it!
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Great! I get lucky once in awhile
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
odd, I have that commented out in mine and I know i'm running php as a cgi lol
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Myself I have the following in my htaccess to make this work: I'm not sure if it requires AllowOverride On for your site though (AllowOverride would be in your host block for your domain)
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Nightcrawler),
1,165
guests, and
234
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|