Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Kobus on March 04, 2005, 08:54:15 PM

Title: PHP Error
Post by: Kobus on March 04, 2005, 08:54:15 PM
Can anyone help please

I saw this entry in the messages log and found my php website are no longer working.

Mar  3 17:29:29 esmith httpd: PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 32 bytes) in /home/e-smith/files/ibays/tpm/html/lib/pear/DB/mysql.php on line 294

Thanks
Title: Php error
Post by: gbaird on March 04, 2005, 09:05:30 PM
It shows what your problem is

Mar 3 17:29:29 esmith httpd: PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 32 bytes)

You will need to create a custom template
for your php.ini and increase the memory it is allowed

custom template goes in

/etc/e-smith/templates-custom/etc/php.ini

look at your current /etc/php.ini for the memory allowed
copy the text to the custom template
and expand the /etc/php.ini
Title: PHP Error
Post by: Buddha_Joe on March 04, 2005, 09:07:02 PM
I did a google search and found refrence to this error at the following site

http://www.phpwebsitemanual.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=17&MMN_position=34:34

It has something to do with a memory size limit. There are a few diffrent solutions provided that may work for you.
Title: Re: Php error
Post by: Kobus on March 04, 2005, 09:09:54 PM
Quote from: "gbaird"
It shows what your problem is

Mar 3 17:29:29 esmith httpd: PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 32 bytes)

You will need to create a custom template
for your php.ini and increase the memory it is allowed

custom template goes in

/etc/e-smith/templates-custom/etc/php.ini

look at your current /etc/php.ini for the memory allowed
copy the text to the custom template
and expand the /etc/php.ini


I already did all of this and set the mem to 32MB now i dont get any error messages but the php is still not working.
Title: PHP Error
Post by: Buddha_Joe on March 04, 2005, 09:12:04 PM
and you have restarted apache?
Title: PHP Error
Post by: Kobus on March 04, 2005, 09:13:15 PM
Quote from: "Buddha_Joe"
and you have restarted apache?


I restarted apache, mysql and the box
Title: PHP Error
Post by: Buddha_Joe on March 04, 2005, 09:15:34 PM
If you haven't already, take a look at that link.. There were a couple of other suggestions.
Title: PHP Error
Post by: Kobus on March 04, 2005, 09:20:01 PM
problem is i am running at least three different php cms solutions for diffierent clients and they are all broken
Title: PHP Error
Post by: Buddha_Joe on March 04, 2005, 09:24:21 PM
hmmmm... I'm at a loss... Now I am just guessing here... have you checked for a lock file?
Title: PHP Error
Post by: Kobus on March 04, 2005, 09:54:34 PM
Sorry guys i did something really stupid which I will not even post here.

your posts did help but it was not the problem.
Title: PHP Error
Post by: Buddha_Joe on March 04, 2005, 09:57:42 PM
we all have those moments sometimes... LOL