Web Wise Forum on Facebook Web Wise Forum on Twitter Web Wise Forum on Google+ Web Wise Forum on StumbleUpon Web Wise Forum on Digg
Domainmonster.com Domain Name Registration

Increase PHP Memory Limit using .htaccess

Web Hosting Forum - Discuss: Website Hosting, VPS Hosting, Webhost, Cloud hosting, Reseller Hosting and Free Web Hosting.

Increase PHP Memory Limit using .htaccess

Postby Barney » Fri Apr 04, 2014 12:36 pm

I had a few memory errors on my site recently.

I was asking my host for a while about how best to increase it.

They gave me this extremely simple line to add to my .htaccess file which allowed me to increase the memory limit (within their regulation of course!)

Code: Select all
php_value memory_limit 64M

This increased it to 64MB but I could go all the way up to 128 if I needed it!

Hope someone finds that useful!
Please PM me with any problems you are having with the forum. You can also email us here.
User avatar
Posts: 190
Joined: Mon Feb 06, 2012 2:04 pm
Location: Newcastle Upon Tyne

Re: Increase PHP Memory Limit using .htaccess

Postby Doogle » Fri May 09, 2014 9:30 pm

Really useful post, I wasn't aware that you could do this using the htaccess file, I do know it is a very powerful file though!
Junior Member
Posts: 24
Joined: Wed Sep 05, 2012 11:24 am

Return to Web Hosting Forum - Website Hosting - VPS Hosting - Webhost

Who is online

Users browsing this forum: No registered users and 1 guest