Need help with server configuration, php.ini apache files I believe, for URLs

Started by inthe80s, October 25, 2004, 10:34:50 PM

Previous topic - Next topic

inthe80s

I just moved to a new server, my old one got comprimised by a hacker last month.  I'm in the process of setting up the messageboard on the new server, and have succesfully moved all the sql files and everything else.  The old server had the pretty URL feature on (Show URLs without ?'s).  I went from one Apache server to another, and I believe the problem lies with either cgi.fix_pathinfo in the php.ini file or    Options Includes   AcceptPathInfo On  in my httpd.conf.  I've made those changes, but it doesn't appear to be fixing the problem.  I know the rest of the server is working ok, because I can disable the flag and the server works fine with the ? style links.  Since my site has been pretty well spidered, I really don't want to have to lose all the old links and would like to be able to use the simplified URLs again.

any ideas on what I may still be doing wrong, or how to troubleshoot to see which steps have taken effect? 
Running SMF since May '04.  Started with YaBB on Oct 2001.


inthe80s

Running SMF since May '04.  Started with YaBB on Oct 2001.

[Unknown]

So, if you turn on the option, it shows the URLs properly... but going to them gives you an error?  What sort of error?

This one?
http://www.inthe00s.com/index.php/

That's not good.  That would mean that:
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo

Is off... otherwise this would work: (to my understanding.)
http://www.inthe00s.com/info.php/test

-[Unknown]

inthe80s

Quote from: [Unknown] on October 26, 2004, 08:55:19 PM
So, if you turn on the option, it shows the URLs properly... but going to them gives you an error?  What sort of error?

This one?
http://www.inthe00s.com/index.php/

That's not good.  That would mean that:
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo

Is off... otherwise this would work: (to my understanding.)
http://www.inthe00s.com/info.php/test

-[Unknown]

yup, accept paths was off for some reason.  I created an .htaccess in the root directory with:

AcceptPathInfo On


and nothing else, and it solved the issue.  I thought I had tried that in the httpd.conf file, but I guess it didn't work.  I have the added headache of trying to understand the interaction of PLESK in there (it makes all kinds of include files for the virtual web hosting, which is a little tricky to decipher).  I think the AcceptPaths and the modification to the php.ini were both needed, but I'm not positive (incase someone else has a similar issue later on).

anyways, thanks a lot for the help in tracking that down.  I really appreciate all the work the team does on the support of the software.
Running SMF since May '04.  Started with YaBB on Oct 2001.

Advertisement: