One step forward and two steps back...

Prior to Snow Leopard, Leopard was known for a difficult situation where GDLibs were not installed in the version of the php module that shipped with the OS, and this was bad because it required recompiling PHP to work...something that is beyond the average person's skill set, I would say. The Entropy version of PHP finally came out, replacing the default one with GDLibs, etc and all was well, because while Clean URL's did not work out of the box, modifiying like two lines in the httpd.conf file and a restart allowed clean url's to work (that was in the workstation version of the software - in the server version, you just enabled the mod_rewrite module in the server admin and it worked automatically.

Comments

Anonymous’s picture

So in my past experience with Apache, setting AllowOverride None to AllowOverride All fixed a similar problem when you would edit that in httpd.conf. Apparently with Apache2 and/or in Snow Leopard Server specifically, you need to go and edit the /etc/apache2/sites/0000_any_80.conf file, not httpd.conf (though there might be a solution that would work in there as well). Open up that file and find the section that looks something like this...

grcolley’s picture

I don't know if the solution provided before worked for you or not, but I'm running Snow Leopard standard, not server and I had the same issue with Clean URLs not working.

After digging around in the httpd.conf file, I noticed that "AllowOverride" was set to "None" by default in my document root configuration. Although you have the rewrite module enabled, if this is set to "None" then .htaccess files will not be able to override the default configuration.

It *should* look like this:

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Library/WebServer/Documents">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>