how do i increase the allowed memory usage

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

how do i increase the allowed memory usage

Postby benjwalsh » 29. April 2011 17:56

got the error.. this is only a test server so id like to increase this how do i do that
Allowed memory size of 67108864 bytes exhausted (tried to allocate 2097152 bytes)
benjwalsh
 
Posts: 2
Joined: 29. April 2011 17:53

Re: how do i increase the allowed memory usage

Postby benjwalsh » 29. April 2011 18:09

also how can i increase this
Fatal error: Maximum execution time of 60 seconds exceeded in Unknown on line 0
benjwalsh
 
Posts: 2
Joined: 29. April 2011 17:53

Re: how do i increase the allowed memory usage

Postby itsfridaymoanin » 06. May 2011 01:32

You need to edit the php.ini file at /Applications/XAMPP/xamppfiles/etc/php.ini

Here, you can search for and edit any php configuration directives including:
Code: Select all
max_execution_time = 60     ; increase the max execution time to 60 seconds and
memory_limit = 128M      ; increase the memory limit to 128 Megabytes

Finally, you will need to restart Apache in XAMPP Control

For these directives, you could alternatively set them at runtime by including the following code:
Code: Select all
ini_set('max_execution_time', 60);
at the beginning of your script.

Good luck!
itsfridaymoanin
 
Posts: 2
Joined: 06. May 2011 00:53


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests