Ubuntu Servers :: Apache Processes Listed But Httpd Not Running?
Dec 5, 2010
I have written this script to monitor Apache2:
Code:
#!/bin/bash
#count lines that show apache2 but not the fgrep itself
let i=`ps aux | fgrep apache2 | fgrep -v grep | wc -l`
if [ "$i" -gt 0 ]
then
#log something
[Code]...
It has all been working fine until recently when Apache is becoming unresponsive. I manually ran ps to check and there were 3 processes. However when I ran apache2ctl graceful I got the message 'httpd not running, trying to start' Is there a better way to check if a daemon is up?
When I do " ps aux | grep apache " I can see that apache2 is running. But when I do the same thing for http or httpd there is nothing. I looked for this question in the forums but couldn't find it. I probably don't know just what to look for.I'm using the new Debian Squeeze, and was fooling around heavily with new software installations and modifications, and just noticed all of a sudden that I couldn't get on the internet - so I know I did something but don't know what.I can plug in a thumb drive with a bitnami joomla stack on it and run, " ~/tmp/joomla-1.6.0-0/./ctlscript.sh start "and that gets things going for the joomla stuff (apache, http, mysql, php), but that stuff is pretty self contained and does not effect the browser's attempt to reach the web.
I just did a clean install of FC12 x86_64 and want to configure tomcat to run behind apache httpd. What is the easiest way to accomplish this? I'm a newbie at server configuration so detailed instructions would be nice
I have just installed Fedora 11 on a "fresh machine" and everything works ok, except for Apache httpd the message seen in the error_log is the following: Name or service not known: mod_unique_id: unable to find IPv4 address of "myserver"
I have Apache Server working online under Fedora Core 6. But before I installed and configured everything, I've been testing in Fedora 12. The problem surges here, when I start the httpd service, every supuse 404 action on a web browser, takes me to localhost. I mean, if I enter google.com, no error, just goes to localhost, http://asdasd, no error, gives back localhost. I used to ignore the problem 'cause I thought it was a problem on my apache, but when I installed the Server on the Fedora Core 6 machine, I found that I have the same problem there. Of course, it only occurs when I am browsing through the same machine that has httpd started. Does anyone know how to change that??
While trying to run the file in PHP I am getting below error. httpd.conf not found Following directories (and its subdirectories) are accesible via Apache:
Can anyone explain to me why there are sometimes 10 or 15 processes with the same title and "stats" listed in htop? I'm guessing there are multiple threads running - but that many of them obviously couldn't be running concurrently.
Is there any sort of performance hit taken if a process uses say, 15 non-concurrent threads vs. 10 non-concurrent threads?
I'm looking to run some R scripts on a mysql database (engine =csv) from the apache webserver.
The goal is to record some statistics/numbers while someone is logged in, pass those numbers to r, run some statistics algorithms on the passed set of data and output an image file back to the logged-in user's html web page.
Doing this along with knowledge on how to call general r functions from within a php framework would be great.
Running CentOS 5 x64 And today my httpd is running very slow and I can't find a fix. Looked all over different forums
When starting httpd I get the message: /var/lock/subsys/httpd': No space left on device I checked that directory above and there is no file called httpd tried rebooting server
Can't do updates too: [root@u15438957 ~]# yum update Loaded plugins: fastestmirror, priorities rpmdb: unable to join the environment
While the redhat posts indicated selinux, when I checked it with sestatus (after first installing sestatus), it came back disabled. So what is locking down the /var/www directory?
I'm running both Apache on my site and Etherpad Lite, both on different domains. However, running them both on port 80 causes a conflict. I tried to use a reverse proxy in Apache (this is the configuration -- I'm not sure if I did it right), but it doesn't seem to do anything.
im looking for a program that lets me monitor server remote a check if apache is running and if its not send out a mail pretty much something like the Big Brother projeckt was before they went comercial i found a few projekts but most havent been updated for years anyone got a clue on any active projekt that does this?
We have apache installed at a directory other than the default location. There are two httpd.conf files on the server, one at the apache installation directory, and the other one is the default one at /etc/httpd/conf. The apache ran very well with the customized httpd.conf before, but after I installed php 5, the server seems taking the default httpd.conf and doesn't display the html pages which are installed at our apache directory. How to let the server know not to use the default httpd.conf and use the customized one instead?
When creating sub-domains, and creating log files for each domain, do I need to ensure that apache owns the log files, so that it can write to it? As I notice they are owned by root, obviously whom I used to make the file...
I'm wondering how I can enable LDAP support for my Ubuntu 10.04 LTS server running Apache 2 and PHP 5.3.2? What I'm trying to do is allow users on my existing company's LDAP system to login to my Elgg site automatically (and possibly have their details filled automatically).
I have one previously compiled apache server from source. I would like to know is there any option to get previous configuration file from /etc/httpd/.
I am trying to setup Fedira 12 Linux Apache in my home network. I am able to access the hosted website from inside my home network without any problem. I am facing the problem to access it from outside. At the moment i have connected the Apache directly to DSL modem for testing purpose. I was reading "The ISP may have blocked the HTTP port 80. So check it by connecting the Apache directly to DSL modem." The temporary network connections for testing purpose are as follows..
DSL modem (SIEMENS Speed Stream 4200)-->Fedora 12/Linux Apache Server
I am even unable to PING the real ip (IP for DSL modem).(Firefox gave me error message "Connection Timed out) I have tried to ping it from the internet.I can PING the DSL from Apache without any problem.
1. Why i am even unable to PING the real IP of DSL modem at my home.?
2. Is it possible to run/setup Apache by using this type of DSL modem?
3. DSL modem has real IP. DSL MODEM assigns private IP (192.168.x.x) to Apache. So when a http request form the internet came to DSL modem on port 80, will it forward to Apache automatically.? or i have to made any changes.(I can not see anything in DSL modem to change/modify), OR do I have to use another DSL MODEM/Equipment (router)? This setup is just temporary. The actual design is as follows
DSL MODEM(Speed Stream 4200)-->Fedora 12 Linux ROUTER--->Internal network with DNS/Apache Server
I've been trying to figure out how to set up my Apache 2 running on Ubuntu 9.10 to provide a reverse proxy so I can see my wifi network camera monitoring my dogs and still have access to my family website. First, I followed the suggestions from this thread on Ubuntu forums: [URL]. I set up a similar rule set at the end of my /etc/apache2/sites-available/default, restarted apache -- from which I got a response saying that Apache2 could not determine the server name -- and then tried logging into my server through its ip address. When I tried http://192.168.2.80/dogCam, I just got a 404 error. Here's what I added: (I also tried my domain name, but it also didn't work.)
When I looked at many other threads, I get recommendations to have my setup in httpd.conf. But, in both this server and a freshly installed Ubuntu laptop, my httpd.conf file is empty! I tried copying and pasting the recommended contents of the following thread, with the example proxy paths replaced with the ones I needed: [URL]. Straight-forward tutorials don't seem to apply, as Ubuntu has a blank httpd.conf file. I figured out that Ubuntu seems to load its modules by simply adding soft-links to the modules of interest from modules-enabled to modules-available. But, after a full day of trying to figure out what looks to be fairly simple and well-documented, I am at a loss for setting up this reverse proxy or even figuring out where to set ServerName to define my domain name to Apache2 in Ubuntu.
I googled upto my capability but cant find answer so asking you In one of my apache 2.0.52 machines, we are using worker MPM model. Even if I use 1 start servers, the # of http processes it starts is 5. No matter what value I pass in StartServers, I dont see more than 5-6 http processes
I have both apache and tomcat services running, both in their standard doors (tomcat 8080, httpd 80). I need to setup tomcat to run on door 80 instead of httpd. I changed httpd door with success to 8180. Now I want to change tomcat6 door to 80, and I did that by editing server.xml config file of tomcat. After restarting tomcat, the system tells me it's ok, but I can see that it's not running on 80, nor at any other door. A simple nmap search confirm that. What should I do to have tomcat running in door 80?
I am unable to examine Apache httpd error log from YaST2 because the lines are too long; the browser just truncates them and thus it does not show any description. The only option is to save it. However, when I chose that option, YaST2 encourages me to save it in /tmp, and as soon as I do that, the log becomes accessible to every user!