I upgraded from PHP v4.3.2 to 4.4.1, and upgrade MySQL from 3.23.58 to 4.1.15, and while Serendipity can pull the blog entries from the MySQL db okay, the css file is not being loaded as the style sheet is not being applied. From the error_log:
does not exist: /home/httpd/vhosts/unsafeworld.com/httpdocs/uwreports/serendipity.css
Also, the category links don't work:
http://www.unsafeworld.com/uwreports/ca ... -Terrorism
Same type of entry in the error_log:
File does not exist: /home/httpd/vhosts/unsafeworld.com/httpdocs/uwreports/categories
I suspect this is more related to the PHP upgrade than the MySQL upgrade, I just wanted to mention both.
Serendipity CSS file not working after PHP/MySQL upgrade
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Serendipity CSS file not working after PHP/MySQL upgrade
This is answered in our FAQ, please read: http://www.s9y.org/11.html#A22
(It seems you also upgraded your Apache, and now URL Rewriting doesn't work anymore)
Regards,
Garvin
(It seems you also upgraded your Apache, and now URL Rewriting doesn't work anymore)
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Actually the RedHat kernel was upgraded, but not Apache (it''s still 2.0.46).
URL rewrite is working on the server, since archives and calendar work:
http://www.unsafeworld.com/uwreports/ar ... -Know.html
http://www.unsafeworld.com/uwreports/ar ... 11/18.html
I read the FAQ question, and that fixed the CSS error. I changed it back to use mod_rewrite, and all works except the categories links:
http://www.unsafeworld.com/uwreports/ca ... eparedness
From the error log:
File does not exist: /home/httpd/vhosts/unsafeworld.com/httpdocs/uwreports/categories
The .htaccess file under /uwreports shows a rewrite rule for /categories:
# BEGIN s9y
ErrorDocument 404 /uwreports/index.php
DirectoryIndex /uwreports/index.php
php_value session.use_trans_sid 0
php_value register_globals off
RewriteEngine On
RewriteBase /uwreports/
RewriteRule ^(archives/([0-9]+)-[0-9a-z\.\_!;,\+\-]+\.html) index.php?/$1 [L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+\.rss) index.php?/$1 [L,QSA]
RewriteRule ^({PAT_PERMALINK_FEEDAUTHORS}) index.php?/$1 [L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]
<Files *.tpl.php>
deny from all
</Files>
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
URL rewrite is working on the server, since archives and calendar work:
http://www.unsafeworld.com/uwreports/ar ... -Know.html
http://www.unsafeworld.com/uwreports/ar ... 11/18.html
I read the FAQ question, and that fixed the CSS error. I changed it back to use mod_rewrite, and all works except the categories links:
http://www.unsafeworld.com/uwreports/ca ... eparedness
From the error log:
File does not exist: /home/httpd/vhosts/unsafeworld.com/httpdocs/uwreports/categories
The .htaccess file under /uwreports shows a rewrite rule for /categories:
# BEGIN s9y
ErrorDocument 404 /uwreports/index.php
DirectoryIndex /uwreports/index.php
php_value session.use_trans_sid 0
php_value register_globals off
RewriteEngine On
RewriteBase /uwreports/
RewriteRule ^(archives/([0-9]+)-[0-9a-z\.\_!;,\+\-]+\.html) index.php?/$1 [L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+\.rss) index.php?/$1 [L,QSA]
RewriteRule ^({PAT_PERMALINK_FEEDAUTHORS}) index.php?/$1 [L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]
<Files *.tpl.php>
deny from all
</Files>
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
To shed some light: Serendipty 0.9.1 fixed the Permalink rewrite rules, which previously did not allow Uppercased category URLs 
It seems that your ErrorDocument directive didn't work anymore, because that acted as a fallback to show category links in 99% of all installations
Regards,
Garvin
It seems that your ErrorDocument directive didn't work anymore, because that acted as a fallback to show category links in 99% of all installations
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/