CentOS 5 Server :: Need To Restart Apache If File Doesn't Exists

Jun 6, 2009

I'm running CentOS 5.3 64bit and from the get go I've had problems with the Apache server.More specifically, on what seems to be a random occurance, the apache server stops to respond.The process is still running, but nothing happens with it, and it is not responding.The /var/logs/httpd/error_log is blank for the occurance and only shows an entry after I give it a restart.So I'm a bit confused about what is going on.With that said, I need to make sure the httpd is working one way or another.I don't want to force a restart service every 10 minutes as this seems a bit too much.However, I do want to have the following:

run a crond every minute to do:If it fails, then do service httpd restart (and log the failure and restart to a file and email me a message).Any pointers on how to do that?It ain't the pretty solution, but it will save me from a very angry user until I'll figure what is the real cause for this failure.

View 5 Replies


ADVERTISEMENT

Programming :: Restart Apache If File Doesn't Exists?

Jun 6, 2009

I'm running CentOS 5.3 64bit and from the get go I've had problems with the Apache serverMore specifically, on what seems to be a random occurance, the apache server stops to respond.The process is still running, but nothing happens with it, and it is not responding.The /var/logs/httpd/error_log is blank for the occurance and only shows an entry after I give it a restartSo I'm a bit confused about what is going on.With that said, I need to make sure the httpd is working one way or another.I don't want to force a restart service every 10 minutes as this seems a bit too much.However, I do want to have the following:run a crond every minute to do:

rm -Rf /root/testarea/*
wget http://ip/work.gif
then check if work.gif exists.

[code]...

View 1 Replies View Related

CentOS 5 Server :: Pid File Exists Ang Logged Caught SIGTERM, Shutting Down?

Apr 11, 2011

status is httpd dead but pid file exists ang logged caught SIGTERM, shutting down.

View 1 Replies View Related

General :: File Exists And Yet It Doesn't?

Jul 11, 2011

I have a rather strange issue I'm attempting to fix here. One of the servers I work with had a log file reach 2GB in size and stopped logging. The software which is logging to said file cannot be stopped or restarted and does not provide a way to rotate log files -- poor design, I know. So in my infinite wisdom (or stupidity, however you want to read that), I truncated the log file in place with:

Code:
>vmsproxy.log
When I realized the log file was not being appended to, I checked lsof output and it

[code]...

View 7 Replies View Related

CentOS 5 Server :: Webmin Doesn't Show Apache Modules?

Apr 26, 2010

this might not be a Centos related issue, but since I'm using Centos I guess it doesn't hurt to ask; I've used Ubuntu before and haven't encountered this. So, I've just installed Centos and Webmin and now I'm trying to configure the server. Problem is that on the Apache configuration page I don't have the option (should be there) to configure the Apache modules. I've attached a file to show where the modules option should (as before) appeared.

View 6 Replies View Related

General :: Doesn't Show The File That Exists?

Sep 10, 2009

we have installed vignette software on the linux box and would like to uninstall it. To uninstall it we need to delete one file named vpd.properties. When we used locate vpd.properties, the file is found in 2 places. But when we used the ls -a in those locations the file is not seen. basically we want to remove that file. If we do rm vpd.properties, this also doesn't work. Also when we used find -H vpd.properties the file is not found. What is wrong here. I am sure the file vpd.properties will be added to file system as part of vignette. Can anyone suggest what could be wrong here.We logged in as root user to remove this file. Installation is done twice using root and vignette user ids. Thats why file is located in 2 places.

View 3 Replies View Related

Ubuntu :: Error : Module.h File Doesn't Exists

Jun 21, 2010

1)I had download one hello.c for start working for Device drivers , and compile it . . I am using linux kernel 2.6.xx getting this error :

Error : linux / module.h file donesnot exists .

2) ad build the kernel and still getting the same error .

View 1 Replies View Related

Server :: Change Of Apache Httpd.conf Doesn't Work On CentOS/RedHat?

Jun 30, 2010

I've been trying to make install apache 2.1.8 and php 5.2.3 and work on them. After updating and installing some dependence files, apache and php could both be installed.

Then I tried to configure them. I added the following content to the end of Apache httpd.conf:

Code:

Then I run /path/to/apachectl start, and saw the message:

Quote:

Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

Then I remembered that I didn't include the rewrite module while making install apache. So I removed the 2 lines I just added to httpd.conf.

But, after running /path/to/apachectl stop and start again, I could still see:

Code:

When I use firefox to open http://host_ip:8080/, I could see "It works!". But when I open http://host_ip:8080/hello.php (the file is already under htdocs), firefox said
Quote:

Failed to Connect

Why and how to solve it?

I noticed that for some stupid reason, the conf file wasn't updated at all and the 2 erroneous lines were still there.

View 91 Replies View Related

CentOS 5 Server :: Applying CSS File To Apache Directory Listings

Apr 8, 2011

I'm having trouble applying a CSS file to my Apache directory listings. I am running Apache 2.2.3, and have the following lines in my httpd.conf file:IndexOptions FancyIndexing FoldersFirst IconsAreLinks IgnoreCase VersionSort NameWidth=* HTMLTable IndexStyleSheet "css/dir.css"

View 2 Replies View Related

CentOS 5 :: Error Inserting /lib/raid456.ko: -1 File Exists

May 22, 2009

I've upgraded my raid array, and to make it boot I had to regenerate the initrd image (the root was on the raid drive)using

mkinitrd <img file> <kernel version>

after that at boot i always receive this error:

error inserting /lib/raid456.ko: -1 file exists

View 1 Replies View Related

OpenSUSE Install :: File System Becomes Read-only, Cannot Restart Apache?

Jan 2, 2010

running 11.0,Linux 2.6.25.20-0.5-paeusing a 3ware 9500 adapter - raid 5 array with hot sparethe system is only 6 weeks old.several days ago, apache would stop responding. trying a restart gives:

/etc/init.d/apache2 start
/bin/mktemp: failed to create file via template `/tmp/apache2.nb6xHyzlga2e': Read-only file system

[code]....

View 7 Replies View Related

CentOS 5 Server :: Apache 'server-status' 404 Not Found + Munin Apache Stats?

Oct 14, 2010

I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.

first, system info:
monitored server:
CentOS 5.3 2.6.18-128.1.1.el5

[code]....

View 7 Replies View Related

Ubuntu :: Directory Exists But Bash Says It Doesn't - No Such File Or Directory

Aug 19, 2011

I've run into a problem with my bash program.

Code:a mkdir -p /home/chris/Downloads/ARCHIVE/`date -I` find /home/chris/Downloads* -mtime +14 -exec "cp {} /home/chris/Downloads/ARCHIVE/`date -I` ;

It's meant to move old files from my Downloads folder into an archive file (later tar them). The directory exists, I've used $PWD and nautilus and ls to make sure it's there, yet for every file it gives

Code: find: `cp /home/chris/Download/foo.bar /home/chris/Downloads/ARCHIVE/2011-08-19': No such file or directory I tried to test it on a different destination, specifically my home folder. IT still gave me the error.IS it a bad syntax within find or something else? I'm running a 32-bit system with 11.04

View 4 Replies View Related

Ubuntu Servers :: 8.0.4 Server Apache Overload/Crash On Restart?

Jun 6, 2010

bit of a server noob having built a server to hold a php website for a client hosting at home, I have some experience, but VERY limited and don't speak fluent server.My problem is that overnight each day apache on my clients server stops responding. I can still access via putty / webmin.The best I can see it, it seems that apache 2 opens too many child processes and chokes the system. My reasoning for this is:-Though I have max child set to 20 with a keep alive of 30 there are dozens of child processes 'apache2 -k start' running, some of which were started 9.5 hours ago.

-I can stop apache, though that doesn't kill these child processes. I can terminate the parent process which does kill the child processes, however restarting apache after killing the child processes results in a system crash. Rebooting the server remotely after apache has stopped responding also results in a server crash. That is NO response on any port.I would be happy to display any pertinent server config/logs etc if anyone can help me troubleshoot this?

View 2 Replies View Related

Server :: Service HTTPD Status Dead But PID File Exists

Apr 14, 2011

I am using CentOS 5.6 with Apache 2.2.17. The Apache was compiled from source using RPM build to comply with PCI requirements. Also Plesk 9.3 is used as a control panel, but other than the config files the Apache is pretty standard. When the httpd is started, there are no errors reported in /var/log/messages or in the error_log, and the httpd starts, shows up in ps and the pid file exists in /var/run/httpd.pid.

However when you check the status 'service httpd status' you get 'httpd dead but subsys locked'. You can add websites normally, and the proper config files are generated so I am pretty sure this isn't a control panel issue as I have other servers running the same control panel and Apache 2.2.16 compiled and installed the same way as the 2.2.17 and there are no problems.

View 1 Replies View Related

CentOS 5 :: Remove A User From The System Using The Domain Userdel Guest Error "mailbox File Already Exists"

Jan 6, 2010

when a remove a user from the system using the domain userdel guest the user gets removed but the /home/guest doesn't get removed so i remove it by command rm -rf /home/guest then i recreate the user by giving in the command useradd guest now it gives the error mailbox file already exists what does it mean when it says so though this command creates the user.

View 3 Replies View Related

General :: Difference Between Restarting/stopping Apache Using 'service Httpd Restart/stop' And Apachectl Restart/stop

Oct 11, 2010

whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?

View 1 Replies View Related

Ubuntu :: Dual Monitors Nvidia X Server Doesn't Save After Restart

May 11, 2010

I have dual monitors running successfully with my BFG GeForce 8400GS and NVIDIA X server settings. The only problem is every time I restart, the settings go back to default, so I have to setup the dual monitors again.

View 5 Replies View Related

CentOS 5 :: Apache Error 403 - "Forbidden You Don't Have Permission To Access /bb/ On This Server" - 5.2 With Apache 2.2.3

Jan 20, 2011

I am installing Big Brother on a CentOS 5.2 running the default Apache 2.2.3. When I try to access any web page I get the following error: Forbidden You don't have permission to access /bb/ on this server. Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80 So far I have:

1) Set the Directory options to FollowSymLinks
2) Verified all directory and file permissions are at 755
3) Set permissions temporarily to 777 and received same error so I am assuming the issue is in a config file somewhere
4) in hhtpd.conf verified <Files ~ "^.ht"> is correct
5) verified the "default" directory is correct (/var/www/html)

I have read and tried several ideas in posts listed on the web but to no avail and am at a loss as to what to look for next..

View 3 Replies View Related

CentOS 5 Server :: Server Hangs Whenever Restart Ethernet Interface?

Sep 6, 2011

I've started facing the weirdest problem. I have to restart the ethernet interface a couple of times a day and everytime i do that the server locks up completely and i have to hard reboot it.info: recently shifted to a new server, all new components and new installation, OS version CentOS 5.6

View 1 Replies View Related

Server :: File "named.stats" Exists In Bind9 Under Solaris 5.8?

Sep 17, 2010

I want to know if the file "named.stats" exists in bind9 under solaris 5.8?

View 1 Replies View Related

Server :: Server Apache Doesn't Work

May 21, 2011

Server Apache doesn't work.Note the LOG line,you cannot modify or delete "logs/"

View 1 Replies View Related

Debian Multimedia :: GDM Goes To Tty On Restart / Doesn't Restart

Apr 5, 2010

Whenever I choose "Restart" from the GDM screen, GDM appears to shutdown, and the first TTY is displayed with a login prompt at the bottom (assuming I haven't used that TTY). I am by no estimation a patient individual, but I waited a solid minute or two for something to happen, but nothing ever did. I end up logging in as root on that TTY and running "shutdown -r now" to get the job done. This is a shared computer, and ideally any user should be able to perform shutdown options graphically from GDM.The only mentioned workaround doesn't apply to me as I am using the nvidia driver, not intel.

View 1 Replies View Related

Ubuntu :: Doesn't The Chkconfig Command Exists?

Mar 11, 2010

doesn't the chkconfig command exists for ubuntu? or is it only for red hat systems?

View 9 Replies View Related

General :: Rkhunter.conf Doesn't Exists?

Feb 12, 2011

I get this warning when running rkhunter:The file rkhunter.cond foes not exist on the system, but it is present in the rkhunter.dat file.However, the conf file does exist as I just edited it.Any ideas on why this error occurs?[root#] locate rkhunter.conf/etc/rkhunter.conf

View 15 Replies View Related

CentOS 5 Server :: Reboot The Server With Centos 5.5 The SMB Deamon Doesn't Start?

Feb 22, 2011

when I reboot the server with centos 5.5 the SMB deamon doesn't start?

View 2 Replies View Related

CentOS 5 Hardware :: Added HDD - Server Fails To Restart

Apr 27, 2010

I have a issue that could get me fired, so I would appreciate your input. My knowledge about linux is limited
The company I work for has a Dell Poweredge 6850 that keeps pretty much everything (databases, websites, etc). The server had a Virtual Drive created from 2 Physical Drives. Since the HDD space was getting low, we got a new drive, inserted it, formatted and rebooted the system. But the system now refuses to start, giving an FAILED message, something related to EXT2 partition that cannot be read at /dev/hda1

View 1 Replies View Related

Server :: How To Get Any Mail Generated From Apache Site On Centos Server

Jul 22, 2011

I am running a CentOS 5.6 Server with a website and Forum. The website has a contact form and users can email various people in the organization. I have setup sendmail to send any mails like this to my email address on a Windows machine.The problem is that there emails don't have a header which has the senders original email header. It comes from localhost on my sendmail. How can I get any mail generated from the apache site to ALSO send mail to root on the Centos Server? That way I should be able to see the header and report the spammer or block them.

View 2 Replies View Related

Server :: Block Connections To Apache If Client Doesn't Have Valid Request Headers?

Feb 8, 2011

My server gets ddos attacks. I dig into access logs and I saw that attacker ips doesn't have valid requests headers, like their browser application info or requested url info.I want to close those connections immediately, and if it's possible block those ips for a time period.Can I do that with Apache and iptables?I searched on the internet but couldn't find useful results. Probably couldn't search for the right words.

View 2 Replies View Related

CentOS 5 :: Allow Php To Create File, Chown -R Apache Folder

Apr 6, 2010

I have a php script that I want to create a file and allow it to be downloaded. I know the dangers of chmodding a directory to 777 so I am trying to avoid this.

What I have done is logged in through ssl as root.

Navigated to the directory where the directory I want to chown is located. I then perform:

chown -R apache directory

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved