SEO Friendly URLs not working...

Started by Douglas, April 05, 2004, 07:05:41 PM

Previous topic - Next topic

Douglas

PHP 4.3.5
phpsuEXEC installed.
suEXEC installed.
Apache 2.x (latest version)
Safe Mode off.

Search Engine Friendly URLs don't work on SMF.
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

bostasp

Don't you have to have mod_rewrite enabled for them to work as well?

Douglas

That's working just fine for another site right now.  I didn't have any .htaccess files on the site that it doesn't work (which is on the same site where I'm using .htaccess for rewriting files).

It was working fine before I made changes (added both suEXEC's, and upgraded PHP today)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

[Unknown]

It doesn't work in CGI (or therefore suExec) mode, only in Apache ISAPI mode.

This will be less of a problem when the perchild module for Apache 2 becomes stable, because it is basically suExec on steroids and ISAPI.

-[Unknown]

Douglas

Okay, so it's related to suEXEC, then?  Cause it worked fine before I implemented suEXEC.
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

[Unknown]

Exactly.  How suExec works is it forks a new PHP for every request.  This is actually very slow and *will* increase load.... but it means you don't have to deal with "nobody".

A more perfect solution has been written for Apache 2.  It has a bunch of child processes, just like with ISAPI, but separated by virtual host.  Meaning, you get all the benefits of suExec without the downsides.  Except it has another downside: it is not stable yet, nor do some consider Apache 2 to be.

The problem you're having with URLs is that, for some reason, they only work on ISAPI mode.  This has to do with Apache, not SMF.

-[Unknown]

dschwab9

Apache 2 is stable as long as you run it in prefork mode (I've been using it in production a year now with zero problems).  The multi-threaded and other modes still have issues.

[Unknown]

Yes, and perchild is one of those multithreaded unstable ones.

-[Unknown]

Douglas

Confirmed that phpSuEXEC is the culprit.  I left everything as is, removed phpSuEXEC, and now the SEO friendly URLs work again.
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

Advertisement: