Are you getting the Fatal error out of memory report in Dolphin 7 like or similar to this:

Fatal error: Out of memory (allocated 524288) (tried to allocate 4864 bytes) in /home/xxxxxx/public_html/XXXX/XXXX/Somepage.php on line XX

Certain servers or hosting setups will allow you to increase or change php values by using a php.ini file. Other setups might allow changes by using .htaccess file.

If you have vps or dedicated hosting you can make the changes to the master php configuration file which will affect the entire server.

Some hosts allow you to make these changes with a php.ini file or .htaccess file and others don't.

You can simply ask your host if you are allowed to make changes to increase upload size, max execution time, etc. It's a common question. It's not like you are trying to do something sneaky. So just ask and whether you should use php.ini or .htaccess file type. Many of them will allow it. However, some might complain if you set a 128M or 256M memory limit manually.

If they tell you should use a php.ini file be sure to ask them if the main/root/home/public_html directory or folder will be sufficient to cover all other folders and directories. Or, do you need to put a php.ini file in each and every folder or directory. Some setups you need only the one, others you need to put php.ini in various folders or directories.

They might even tell you to put it in cgi-bin, or to use php5.ini. These are slightly less common. Just ask your host so you don't waste a lot of time for nothing.

If they tell you to put php.ini in any or all directory/folders you wish to increase here are some sample locations:

For Dolphin 7x:



These are just a few suggestions. You may not need any of them, and you may need php.ini in other directories or folders.

Basically folders/directories that might need larger values. Flash video application, ffmpeg, video comments, photos uploads, data migration (for 6.1x to 7.x), upgrade for upgrading to a newer version, etc.

If you are having difficulties with a brand new fresh install, you might even place a php.ini in the install folder (yoursite.com/install/php.ini).

If you are having problems with some Dolphin 7 Module in particular you might try placing a php.ini file with increased values in the particular folder or directory associated with it.

I have on occasion, even put a php.ini file in Dolphin 7 Administration directory or folder...http://www.yoursite.com/administration/php.ini to do away without of memory issues caused by a low memory limit setting.

If you happen to get an error report email or warning on a particular page about memory you need to pay attention to the file path.

Samples from Boonex Unity:

Fatal error: Out of memory (allocated 7340032) (tried to allocate 9 bytes) in /home/xxxxxx/public_html/templates/base/scripts/BxBaseSearchResultSharedMedia.php on line 91

<b>Fatal error</b>: Out of memory (allocated 524288) (tried to allocate 4864 bytes) in <b>/home/xxxxxx/public_html/inc/classes/Thing.php</b> on line <b>14</b><br />

You would want to increase the memory limit.

For php.ini file:

memory_limit = 128M


memory_limit = 256M

Optionally and recommended:

max_execution_time = 6000
max_input_time = 6000
memory_limit = 256M
post_max_size = 200M
upload_max_filesize = 200M

And place it in the folder or directory causing the memory issue. In the examples given above you would place it in:




Then try whatever you were doing again. If you receive the warning again, pay attention to the error path, and place a php.ini file in the particular folder or directory.

If your host has mod_php (apache dso module) configuration then you can generally add to the main .htaccess located at:

With the following:

php_value memory_limit 128M


php_value memory_limit 256M

Optionally which may also help for mod_php (apache dso module):

php_value upload_max_filesize 200M
php_value post_max_size 200M
php_value max_execution_time 6000
php_value max_input_time 6000
php_value memory_limit 256M


Some hosting setups or configurations it is necessary to put a php.ini in all folders or directories that could potentially require more memory, execution time, upload size, etc.

A php.ini file will generally be small and consume very little space anyway. But, again just ask your host if you need to put it in all directories or folders so you don't waste your time for nothing.

Good Luck!

Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Sponsored Links