Avactis shopping card errors with Cpanel with Suhosin security patch activated

Cpanel, PHP No Comments »

Some fellas are experiencing errors with long form post data - when users press send button not all form fields are submitted. This is because Cpanel with suhosin patch does accept only max post vars of 200. Avactis shopping cart users may experience problems with country post data. The fix is very easy, you need to add the following string to your php.ini

On most Linux platforms your php.ini can be found /usr/local/lib directory. Full path: /usr/local/lib/php.ini

Add to the bottom of this file:

suhosin.post.max_vars = 2048

Remember to restart your Apache daemon and you should be set. You can check the new value with phpinfo(); function output. Cheers!

Turning Safe Mode off via httpd config

PHP No Comments »

The best way to quickly turn off the PHP safe mode for a particular virtual hosting service is to have
php_admin_flag safe_mode Off

within VirtualHost directive.

Quick and easy.Remember that some security checks will be automatically disabled if you define Safe_Mode off, but there are situations when some very specific scripts will break and can’t be run when Safe Mode is activated.

I hope this helps you! Enjoy!

Saving HTTP server bandwidth and increasing speed

PHP No Comments »

If you have some CPU power to spare and you are looking to save some $$$ on the bandwidth bill you have an option for PHP.

Open php.ini (usually located in /usr/local/lib/php.ini) and uncomment the following line:

output_handler = ob_gzhandler

With this value set you will redirect all output to the function, in this case ob_gzhandler that will compress output to the web clients that support using gzip or deflate encoding.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in