PDA

View Full Version : Internal Server error Saving settings with "$"


GoodOmens
09-01-2009, 08:05 PM
I have a strange error in one of my forums where if I save any settings (or send any emails) with a $ in them I get an internal server error (From the Admin page). These are the template holders.

Posting messages to the forum works fine (Although haven't tried adding the dollar sign).

I would normally think it's a mod security error, however I have another forum on the same server with very similar settings and I get no error.

The htaccess files in the two settings are almost identical and I've tried re-uploading the files on the "bad" server.

I also have PHP safe mode enabled on the two.

I've tried adding:


<IfModule mod_env.c>
SetEnv MODSEC_ENABLE Off
PassEnv MODSEC_ENABLE
</IfModule>

#vbulletin
php_flag magic_quotes_gpc off


To no avail. I've also tried disabling plugins via the config file and still get the same error. I'm running php 5 and Apache 2.x

Like I said this works on one install but not the other install on the same server.

snakes1100
09-01-2009, 08:35 PM
Did you tail the error_log for apache or the error log for the site in question?

Also, if need be set LogLevel debug in either httpd.conf or the conf file for the site if your using a control panel for the server.

Nav to the page while tailing the error log and see what it spits out.

Example
tail -f /var/log/httpd/error_log | grep "youriphere"

GoodOmens
09-01-2009, 11:13 PM
I checked with my host provider and they had made some security changes to my other domain that weren't on the domain I had problems with.

After they copied the settings everything is working fine.