Solved

apache question

Posted on 2012-03-26
3
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

739 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