Looktrne Posted January 30, 2008 Share Posted January 30, 2008 I have been updating a script for some customers... I have IP's blocked through .htaccess and a custome error code page when ip's are blocked... alot of the .htaccess look totally different from mine and when I try to use mine it locks up the server... like the code is incompatible how do I know what type of .htaccess file to use on what type of server? mine looks like this php_flag php_sessions On php_flag allow_call_time_pass_reference On php_flag magic_quotes_gpc On php_value memory_limit 64M php_value upload_max_filesize 5m <Files 403.shtml> order allow,deny allow from all </Files> ErrorDocument 403 /403.php but when I try to use on some servers no go.. they all seem to be apache servers Quote Link to comment Share on other sites More sharing options...
trq Posted January 31, 2008 Share Posted January 31, 2008 they all seem to be apache servers Funny that, seeing as .htaccess files store local apache configurations. ie; They are made for apache. As for your .htaccess file, I see nothing out of the ordinary. Are the servers different versions? And if so what are they? Quote Link to comment Share on other sites More sharing options...
Looktrne Posted February 3, 2008 Author Share Posted February 3, 2008 the servers have htaccess I was wondering do you think maybe they do not have access to set the php flags?? maybe it is not allowing the php to be changed through here because of security settings?? I dunno Quote Link to comment Share on other sites More sharing options...
trq Posted February 3, 2008 Share Posted February 3, 2008 The documentation for all php.ini directives can be found here. Some are specific to certain php versions and some can only be set in the global php.ini or httpd.conf file. I can't see any documentaion for php_session at all. Maybe thats an issue. As a side note, I would highly recommend disabling magic_quotes_gpc, its much better to escape incomming data yourself and it is being removed altogether in php6. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 3, 2008 Share Posted February 3, 2008 Check the web server log to find the reason why it crashes. Php setting only work in a .htaccess file when php is an apache_module. When php is running as a cgi wrapper, the php settings generate errors (which you will find in the log file.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.