Koozali.org: home of the SME Server

PHP Error

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
PHP Error
« 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
Kobus............

gbaird

Php error
« Reply #1 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

Buddha_Joe

PHP Error
« Reply #2 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.

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Re: Php error
« Reply #3 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.
Kobus............

Buddha_Joe

PHP Error
« Reply #4 on: March 04, 2005, 09:12:04 PM »
and you have restarted apache?

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
PHP Error
« Reply #5 on: March 04, 2005, 09:13:15 PM »
Quote from: "Buddha_Joe"
and you have restarted apache?


I restarted apache, mysql and the box
Kobus............

Buddha_Joe

PHP Error
« Reply #6 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.

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
PHP Error
« Reply #7 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
Kobus............

Buddha_Joe

PHP Error
« Reply #8 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?

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
PHP Error
« Reply #9 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.
Kobus............

Buddha_Joe

PHP Error
« Reply #10 on: March 04, 2005, 09:57:42 PM »
we all have those moments sometimes... LOL