Increasing PHP Memory for the website

Many times we've seen that when we browse websites on the Linux server, a white page shows up that mostly means that more PHP memory is required, as allowed on the server, but we still first need to check this with the server-side PHP logs.

If this problem is confirmed with the logs then the reason is this: on the Linux shared server we've allowed a  maximum of 40 MB of memory on the server. But we can gain some more memory with the .htaccess file.

We need to use the directive below to increase the PHP memory in the .htaccess file under the domain folder :-

php_value memory_limit 56M

That's it !! This will solve the PHP memory issues for your website.

Sachin Tuesday 18 June 2013 - 8:49 pm | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.