On 02/24/2010 08:57 PM, Wade Preston Shearer wrote:

> Does PHP have the mod_rewrite module compiled in?

I'm not sure:

# php -i | grep modules
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
# ls /usr/lib64/php/modules
curl.so      json.so      pdo_mysql.so   sqlite.so     xsl.so
dom.so       mbstring.so  pdo.so         wddx.so       zip.so
fileinfo.so  mysqli.so    pdo_sqlite.so  xmlreader.so
gd.so        mysql.so     phar.so        xmlwriter.so

that seems to tell me no.  However phpinfo() tells me it's loaded.  I
put it here:

http://chsalumni.net/phpinfo.php

At least until this is resolved.

I've now pointed FLFN.org back to the old server, and duplicated the
problem with http://chsalumni.net/ (on the same server) using wordpress.

If I go to Wordpress Admin, Settings, Permalinks, and use any
non-default setting, it creates a .htaccess file with this in it:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Once again, if I comment out every line except RewriteEngine On, I have
the same problem (with or without wrapping it in <IfModule
mod_rewrite.c>).  The vhost is almost identical:

<VirtualHost *:80>
    SuexecUserGroup    brasto brasto
    ServerName     chsalumni.net
    ServerAlias    www.chsalumni.net chs91.org www.chs91.org
    ServerAdmin    [email protected]
    DocumentRoot   /home/brasto/www/chsalumni
    <Directory /home/brasto/www/chsalumni>
        Options Indexes FollowSymLinks
        AllowOverride All
    </Directory>
    CustomLog      /var/log/httpd/brasto/chsalumni/access_log combined
    ErrorLog       /var/log/httpd/brasto/chsalumni/error_log
#    RewriteEngine On
#    RewriteCond %{HTTP_HOST} !^chsalumni\.net$ [NC]
#    RewriteRule ^(.*)$ http://chsalumni.net$1 [R=301,L]
</VirtualHost>

Again, if I turn on Rewrite Engine using the vhost and use the rule and
condition that are commented out right now, they work fine, but if I try
to use the rules and conditions in the .htaccess file within the vhost,
I get the bad request error, with nothing in the error logs anywhere.
With the .htaccess as it is and vhost as it is, I still get these
entries in the logs when requesting http://chsalumni.net :

tail -f /var/log/httpd/brasto/chsalumni/*

<snip to when page refresh occurs>

==> /var/log/httpd/brasto/chsalumni/access_log <==
67.182.203.21 - - [24/Feb/2010:23:38:48 -0700] "GET / HTTP/1.1" 403 5043
"http://chsalumni.net/wp-admin/options-permalink.php"; "Mozilla/5.0 (X11;
U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091201 SUSE/3.5.6-1.1.1
Firefox/3.5.6"

==> /var/log/httpd/brasto/chsalumni/error_log <==
[Wed Feb 24 23:38:48 2010] [error] [client 67.182.203.21] Options
FollowSymLinks or SymLinksIfOwnerMatch is off which implies that
RewriteRule directive is forbidden: /home/brasto/www/chsalumni/,
referer: http://chsalumni.net/wp-admin/options-permalink.php

==> /var/log/httpd/brasto/chsalumni/access_log <==
67.182.203.21 - - [24/Feb/2010:23:38:48 -0700] "GET /icons/apache_pb.gif
HTTP/1.1" 200 2326 "http://chsalumni.net/"; "Mozilla/5.0 (X11; U; Linux
x86_64; en-US; rv:1.9.1.6) Gecko/20091201 SUSE/3.5.6-1.1.1 Firefox/3.5.6"
67.182.203.21 - - [24/Feb/2010:23:38:48 -0700] "GET
/icons/powered_by_rh.png HTTP/1.1" 200 1213 "http://chsalumni.net/";
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091201
SUSE/3.5.6-1.1.1 Firefox/3.5.6"

This site I can leave broken for longer, so I'll leave it this way
hoping we can find a solution soon.  Of course, FollowSymLinks is set,
though I have not tested SymLinksIfOwnerMatch on this site like I did
the other.

Thank you all for your help.

Brandon

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to