Jump to content

php_memory limit changes via .htaccess ?


Recommended Posts

So i keep getting these errors during payment

Warning: touch() [function.touch]: Utime failed: Permission denied in /var/www/vhosts/---/httpdocs/subdomains/shop/classes/Tools.php on line 2995

Warning: touch() [function.touch]: Utime failed: Permission denied in /var/www/vhosts/---/httpdocs/subdomains/shop/classes/Tools.php on line 2995

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /var/www/vhosts/---/httpdocs/subdomains/shop/tools/tcpdf/unicode_data.php on line 13316

While i have no idea what the function.touch error is at line 2995 i can do something about

the memory issue.

 

So i contacted my host, he told me to change it myself via the .htaccess file in the domain folder

 

so i download the .htacces file but what do i add and where do i add it,

before or after the end of presta shop or ??

 

and what do i add ? 

php_memory_limit 64mb;  ?   or ?

 

Right now i did this, and it does not work..

 

2 last lines of the .htaccess file..

 

 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
php_value memory_limit 64M
Edited by Vaupell (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...