Upgrade to PHP 5.3 with PHP-FPM 500 internal server error

cwfie

Verified User
Joined
Aug 3, 2005
Messages
91
Hi,

One of my clients get:

"500 Internal Server Error"

After an upgrade from PHP 5.2 to 5.3 (with PHP-FPM).

It's most likely related to the htaccess.

Example rules:
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteCond %{REQUEST_URI} !^/wordpress/
RewriteRule (.*) /domain.com/$1 [last]
RewriteCond %{HTTP_HOST} ^wordpress$
RewriteCond %{REQUEST_URI} !^/domain.com/
RewriteRule (.*) /wordpress/$1 [last]

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

Anyway knows the fix? Thanks! :)
 
You can use custom DNS template with it. If you have no virtual_host*.conf templates there, I'd suggest just trying pre-release binaries and "./build rewrite_confs" (and the previous commands given) to check if it solves the problem.
 
Thanks, tried it, it works now as I disabled:

#php_value memory_limit 64M

In the htaccess.

However the site is only text, the layout is not ok, as the location of the images/css etc. is not correct anymore.

Any advise? :)
 
May you contact me on skype? I think something is misconfigured there.
 
The problem was caused by "php_value" in .htaccess, it's not supported by default with htscanner=no set in the options.conf file.
 
Back
Top