Solved

apache question

Posted on 2012-03-26
3
227 Views
Last Modified: 2012-06-22
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?
0
Comment
Question by:DantechIT
3 Comments
 
LVL 5

Expert Comment

by:stephencolson
ID: 37772796
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?
0
 
LVL 15

Expert Comment

by:babuno5
ID: 37775026
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
0
 
LVL 13

Accepted Solution

by:
LinuxGuru earned 500 total points
ID: 37775143
Whats the exact error message? If you are facing out of memory error you need to increase the memory limit in your server php.ini.

You can use the following command to locate php.ini

php -i | grep php.ini

Open in new window


Above will output the loaded php.ini file. Now edit the php.ini and increase the value of memory_limit.

memory_limit = 128M

Open in new window

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apache error.log 19 59
PHP: Insert Data into MySQL 5 56
Remote desktop Ubuntu from Windows 10 5 98
How to use question mark (?) in filename with html 25 73
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question