Solved

apache question

Posted on 2012-03-26
3
222 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now