3 replies [Last post]
keyone's picture
Offline
Joined: 10/01/2008
Juice: 95
Was this information Helpful?

I have tried to install ubercart several times and am having a problem with running out of memory limit on my shared server. (that is what appears in error log).

I can up the memory limit allowed in scripts by adding this line to htaccess...
php_value memory_limit 16M

However, when I do that and try to reinstall, Ubercart is overwriting my htaccess file in it's install process and crashes again. I even tried chmod'ing the htaccess file so Ubercart can't overwrite it, but it does anyway. I guess it's chmod the file itself before overwriting it. Blah.

The site seems to be working despite that it crashed and I only got a blank screen, not a nice "Done Installing" screen. What is missing and should I worry about it? (I am having trouble getting images to save - they will upload but not save).

keyone's picture
Offline
Joined: 10/01/2008
Juice: 95
Re: out of memory limit

Update: I installed Ubercart on another server that does not have such a memory restriction and all went smoothly. There are definitely some things missing in the other site that crashed during install. Can anyone tell me where to edit the install code so that when it creates it's own htaccess file, I can make it add the memory limit line of code?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: out of memory limit
keyone's picture
Offline
Joined: 10/01/2008
Juice: 95
Re: Re: Re: out of memory limit

Thanks, this one worked...

Add ini_set('memory_limit', '32M'); in your site's settings.php file

changing the htaccess file did not work because it was getting overwritten in the install process.

This is an awesome program. Much better than Joomla/VM!!!!!!!