Page 1 of 1

php.ini settings getting overriden [Solved]

PostPosted: 17. January 2013 18:28
by nemesisjack
I set up an install of XAMPP to build an ecommerce site using OpenCart. I put the OpenCart install on C:\xampp\htdocs\opencart\upload and I set the php.ini file in it and set memory_limit = 1G and max_execution_time = 600.

The problem I'm having is that these settings are getting overwritten by something in XAMPP. When I run phpinfo(), it shows memory_limit as 128M and max_execution_time = 30

Re: php.ini settings getting overriden

PostPosted: 17. January 2013 18:45
by Altrea
Hi nemesisjack,

nemesisjack wrote:The problem I'm having is that these settings are getting overwritten by something in XAMPP.

Thats not correct. Changing values in php.ini works pretty well, if you do it the right way:
  • Change the correct configuration file (can be found in phpinfo setting Loaded Configuration File)
  • Change the correct line in that configuration line (some lines are just for commentary (commented out by a leading semicolon ; ))
  • give it a valid value for that setting
  • save the file
  • Restart yourApache after your change

best wishes,
Altrea

Re: php.ini settings getting overriden

PostPosted: 17. January 2013 19:03
by nemesisjack
I found the problem:

I was changing settings on the php.ini file provided by OpenCart. I had to change them on the one at C:\xampp\php\php.ini