Koozali.org: home of the SME Server

web server and server-manger are down....

boss_hog

web server and server-manger are down....
« on: April 26, 2005, 08:05:28 PM »
Hey Yall,
SME 6.0x, Dual p2@333, 384mg ram, 2 SCSI discs, RAID1. This box has been running without issues for about 13 months.

Followed the instructions in the Troubleshooting FAQ to increase the upload limit. The text below is from the FAQ:
Anything using php should have it's limit set high to 50Mbyte with these 4 lines of code.

    /sbin/e-smith/config setprop php PostMaxSize 50000000
    /sbin/e-smith/config setprop php UploadMaxFilesize 50000000
    /etc/e-smith/events/actions/conf-php
    /etc/rc.d/init.d/httpd-e-smith graceful

No harm will be done ... just adjust 50000000 if you want less or more. If the machine slows down, maybe even starts thrashing you may want to give also time&space:

    /sbin/e-smith/config setprop php MaxExecutionTime 1800
    /sbin/e-smith/config setprop php MemoryLimit 100M /etc/e-smith/events/actions/conf-php
    /etc/rc.d/init.d/httpd-e-smith graceful

Raising the http upload size in squid

    mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf

Place template fragment into temlplate directory:

    echo "request_body_max_size 20 MB" > /etc/e-smith/templates-custom/etc/squid/squid.conf/85request_body_max_size

Expand (activate) Template:

    /sbin/e-smith/expand-template /etc/squid/squid.conf

Restart squid to enable new settings:

    /etc/init.d/squid restart
end FAQ.

I am now unable to access the Server-Manager Panel or my primary website. When I try to restart/start httpd I get the following error:
[root@zenon333 root]# /etc/rc.d/init.d/httpd-e-smith graceful
Stopping httpd:                         [FAILED]
Starting httpd: Allowed memory size of 100 bytes exhausted (tried to allocate 52 bytes)  [ FAILED ]

I am not sure how to repair the problem or to undo the changes that I made.
Any help would be appreciated.
Joe

Offline hordeusr

  • ***
  • 68
  • +0/-0
web server and server-manger are down....
« Reply #1 on: April 26, 2005, 09:31:59 PM »
maybe it's set to 100 and not 100M?  Post your /etc/php.ini file so we can see what php is actually doing.

boss_hog

web server and server-manger are down....
« Reply #2 on: April 26, 2005, 09:57:19 PM »
**Thanks A Lot** hordeusr,
by you asking me to post the file I found the problem!
I typed 2 lines from the FAQ as one long line. It made a line in php.ini " Memory... 100M/etc/e-smith/..."
Oops.
Did the Upload FAQ over from scratch and BINGO!
Thanks Again.
Joe