Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Douglas on April 05, 2004, 07:05:41 PM

Title: SEO Friendly URLs not working...
Post by: Douglas on April 05, 2004, 07:05:41 PM
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.
Title: Re: SEO Friendly URLs not working...
Post by: bostasp on April 05, 2004, 07:18:26 PM
Don't you have to have mod_rewrite enabled for them to work as well?
Title: Re: SEO Friendly URLs not working...
Post by: Douglas on April 05, 2004, 07:30:23 PM
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)
Title: Re: SEO Friendly URLs not working...
Post by: [Unknown] on April 05, 2004, 07:32:33 PM
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]
Title: Re: SEO Friendly URLs not working...
Post by: Douglas on April 05, 2004, 08:18:19 PM
Okay, so it's related to suEXEC, then?  Cause it worked fine before I implemented suEXEC.
Title: Re: SEO Friendly URLs not working...
Post by: [Unknown] on April 06, 2004, 10:12:02 AM
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]
Title: Re: SEO Friendly URLs not working...
Post by: dschwab9 on April 06, 2004, 11:21:02 PM
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.
Title: Re: SEO Friendly URLs not working...
Post by: [Unknown] on April 06, 2004, 11:22:42 PM
Yes, and perchild is one of those multithreaded unstable ones.

-[Unknown]
Title: Re: SEO Friendly URLs not working...
Post by: Douglas on April 09, 2004, 06:07:06 PM
Confirmed that phpSuEXEC is the culprit.  I left everything as is, removed phpSuEXEC, and now the SEO friendly URLs work again.