Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/88631-htaccess-question/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/88631-htaccess-question/#findComment-456807
Share on other sites

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.)

Link to comment
https://forums.phpfreaks.com/topic/88631-htaccess-question/#findComment-456834
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.