Link to home
Start Free TrialLog in
Avatar of DantechIT
DantechIT

asked on

apache question

We have a VPS server and one drupal site hosted on it.

There is some issue with regards to the Apache configuration, the website runs out of memory and shows fatal error sometimes.

The hosting people have replied below:




--------Switch to worker or event and use the "ulimit -s 128" (add the ulimit line at the beginning of the apache init script: /etc/init.d/httpd after you switch to event or worker)------



Can someone explain how to do this please?
Avatar of stephencolson
stephencolson
Flag of United States of America image

Is the error that PHP is running out of memory? This can be a common error for Drupal sites, and it isn't an Apache problem. Likely, you need to increase the memory_limit variable of your php.ini. Can you tell me what this variable is currently set to?
here is more info about why you should switch to worker model of apache and php

http://brian.moonspot.net/2008/02/13/apache-worker-and-php/
http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2

You will need to recompile apache and php to enable the same
ASKER CERTIFIED SOLUTION
Avatar of Linux Guru
Linux Guru
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial