Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







How To Add Cron To Restart Apache Server Every Three Hours


My host is experiencing "issues" with my WordPress. It keeps going above their upper limit of open MySQL connections. So, while I am diagnosing it, I need to restart the server every few hours to avoid it going down.

How do I write a cron to restart Apache every 3 hours?


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Auto Restart Apache On Cron
ive got a fairly beefy server but at the moment its hosting alot of resource intensive sites (unfortunatly i dont currently have a choice on where to run them all) and apache is crashing to the point its taking upto 2 mins to load pages within about 24hours but once restarted is fine again. so im wondering if anyone can suggest a way to automaticly restart apache via a cron job every 24hours or so?

View Replies!   View Related
Cron To Delete Files Every 24 Hours
I want to setup a crontab to delete a file every 24 hours, I am not the best in crontab so was wondering if one of you could please give me the command I should use?

View Replies!   View Related
How To Set Up Cron Job To Replace Index File Every 3 Hours...
I would like to replace my index file every three hours, with a specified file on the server thats in a different folder (someone keeps putting unwanted stuff in my index file) Can someone explain to me how this is done?

View Replies!   View Related
Cron Job Not Working, Restart Services
I'm having a bit of trouble with one cron job that doesn't seem to work.

I have others scripts that run hourly fine. However this one does not.

The script:

restart_monitoring.sh

Code:
#!/bin/bash
service iptables stop
service iptables start
/root/bandwidth_rules.sh
/root/portforward_config.sh
exit
The two scripts at the end just load a lot of iptables rules back in.

The cron job should run hourly (59th minute)

The cron job entry

Code:
59 * * * * /root/restart_monitoring.sh
I have restart crond to enable the new job, still doesn't run.

The job is to restart iptables, thus flushing all rules that I have running, then reloading them. I have figured out the problem to be with the "service iptables stop/start" command, it doesn't seem to like doing this...?

View Replies!   View Related
How To Set Up Cron Job To Restart Mysql
How to set up cron job automatic restart mysqld at specified time. My case, mysqld will auto restart every 23 hours running.

How to set up this cron job?

View Replies!   View Related
Howto: Automatically Verify Cron / Crond Is Running And Restart If Not
This one's pretty simple really, but given the fact that I'm constantly running into crond stops with CPanel servers (no clue why, or where, but it's happening), I'll post this here. If it helps someone, then great, if not, hey, no worries.

Firstly, login as root to your server through ssh, however you usually do .

Next, the script (we'll call it /bin/croncheck.sh). Use whatever editor you choose to create the file.

#!/bin/bash .......

View Replies!   View Related
How To Add An IP In VMWare Server 2? Add On The VPS Directly Or First On The Host?
I have configured and install VMWare Server on my server and currently trying to install Plesk. I have gotten the network working so I can download.

I want to give the VMWare Virtual Machine it's own IP so I can connect via PuTTY instead of the console, which e.g. does not let me paste url's (plesk download url is long).

I am planning to host a few websites on the Plesk Virtual Machine. I have added the IP my network provider given me using 'setup' in CentOS and it's listed in /sbin/ifconfig, but does not work yet.

Do I first need to add the ip to the host server self? Or can a VPS directly use an ip?

(PS: Do I use too many hard breaks in my texts?)

View Replies!   View Related
Restart Apache
I have 8 apache servers that is sharing one httpd.conf file... When changes made in the httpd.conf, you have you restart httpd... How can I restart all 8 servers at the same time instead of logging into each server and do it manually?

View Replies!   View Related
Can't Restart Apache
We are unable to restart apache on our server, as a result no sites are accessible in the browser. Our host states we need to clear out the following files:

[root@server1 logs]# ls -lAh|grep -v ' 0 '
total 1.9G
-rw-r--r-- 1 root root 92M Jul 17 07:55 access_log
-rw-r----- 1 root root 463K Dec 9 2007 audit_log
-rw-r--r-- 1 root root 1.2G Jul 17 07:57 error_log
-rw-r--r-- 1 root root 6 Jul 17 07:42 httpd.pid
-rw-r--r-- 1 root root 92K Feb 18 2008 ssl_engine_log
-rw-r--r-- 1 root root 535M Jul 17 07:46 suexec_log
-rw-r--r-- 1 root root 10 Jul 17 03:21 suexec_log.offset
-rw------- 1 root nobody 5.6M Dec 10 2007 suphp_log

Is it ok to simply delete these files? If so, will they recreate
themselves?

View Replies!   View Related
Apache Down - Can't Restart
I'm running Apache 2.0.52 on a CentOS 4.4 server.

Running two static sites and one CMS.

I have no trouble logging in through SSH
Also no problem accessing webmin on port 10000

I've tried to restart Apache httpd
And tried to reboot the server...

Nothing.

I recently did a Yum Update,
also removed ISPconfig - it's probably the latter thats the problem, although I haven't used it - at all - just playing around setting up PHPmyadmin, Squirrelmail and a couple of email accounts.

But the only error log output I get is that there are no virtual servers for 88.198.81.186:80 and 88.198.81.187:80 and Unable to open logs | unable to start piped log program

Since the update and removal of ISPconfig 4-5 days ago there hasn't been any issues. I haven't done anything. Yet I do think might be some of the old ISPconfig settings acting up.

View Replies!   View Related
Cant Restart Apache Httpd
I am trying to restart my apache since i made changes to my php.ini file.

I tried using this command /etc/init.d/httpd restart which didnt work for me..any ideas guys? Its a basic dedicated server from a hosting company..

View Replies!   View Related
Apache Restart Every 5 Minutes
Code:
[Sat Jul 28 21:40:09 2007] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
[Sat Jul 28 21:45:08 2007] [notice] caught SIGTERM, shutting down
[Sat Jul 28 21:45:18 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jul 28 21:45:18 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:18 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:18 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:18 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:18 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:18 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:18 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [notice] Digest: generating secret for digest authentication ...
[Sat Jul 28 21:45:19 2007] [notice] Digest: done
[Sat Jul 28 21:45:19 2007] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sat Jul 28 21:45:19 2007] [notice] LDAP: SSL support unavailable
[Sat Jul 28 21:45:19 2007] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:45:19 2007] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
[Sat Jul 28 21:50:08 2007] [notice] caught SIGTERM, shutting down
[Sat Jul 28 21:50:08 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jul 28 21:50:08 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Sat Jul 28 21:50:08 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
........

View Replies!   View Related
Apache Won't Restart (FreeBSD 6.1)
Server runs FreeBSD 6.1 and WHM/CPanel. Everything was working as usual, no changes were being made to the server, and all of a sudden all the web sites went down. WHM and CPanel and SSH remained accessible.

Restarting Apache (HTTPD) through WHM gives an error: "httpd has failed, please contact the sysadmin."

Rebooting the server didn't help, httpd still won't restart.

Attempting to do it via SSH gives this error:

server# /etc/rc.d/init.d/httpd restart
/etc/rc.d/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/lib/mysql/libmysqlclient.so.14: Undefined symbol "gethostbyname_r"
/etc/rc.d/init.d/httpd restart: httpd could not be started

# tail -f /usr/local/apache/logs/error_log
only shows some standard http errors for files not being found.

View Replies!   View Related
Apache Restart Issue
I am having an issue with apache. Want to know how people are running huge forums having 700 800 users online at a time.

I am currently running a single forum having peak users upto 250, making posts and downloading files from within forum. Its running on dual opteron with 2 gig ram and its database is hosted on another cross connected dual opteron + 2 gig ram server.

Although there are enough resources, no load is there but still apache just crahsed and restarts after 4 min interval. As it seems apache gets out of resources and crashes.

how to allow apache to use more ram and cpu so that it simply don't crash.

View Replies!   View Related
How Can I Auto Restart Apache If Load >= 5
is there a way to automate apache restart when my server's load reached 5+ sever load?

View Replies!   View Related
Apache/httpd Wont Restart
I keep trying to restart Apache but it wont restart... I run a command line to restart it, but nothing happens. Here is what I have tried:

Quote:

-bash-3.1# chroot /home/fatehost.net/runtime_layeredpanel/
fatehost:/# /etc/
bash: /etc/: is a directory
fatehost:/# /etc/init.d
bash: /etc/init.d: is a directory
fatehost:/# /etc/init.d/httpd-users
Usage: /etc/init.d/apache2 start|stop|restart|reload|force-reload
fatehost:/# /etc/init.d/httpd-users start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80
no listening sockets available, shutting down
Unable to open logs
fatehost:/# /etc/init.d/httpd-users restart
Forcing reload of web server: Apache2httpd (pid 5955) already running
.
fatehost:/# /etc/init.d/httpd-users force-reload
Forcing reload of web server: Apache2.
fatehost:/# /etc/init.d/httpd force-reload
Forcing reload of web server: Apache2.
fatehost:/# /etc/init.d/httpd-users restart
Forcing reload of web server: Apache2httpd (pid 13475) already running
.
fatehost:/#
fatehost:/# /etc/init.d/httpd-users start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80
no listening sockets available, shutting down
Unable to open logs
fatehost:/# /etc/init.d/httpd-users stop
Stopping web server: Apache2.
fatehost:/#
fatehost:/# /etc/init.d/httpd-users start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80
no listening sockets available, shutting down
Unable to open logs
fatehost:/#
fatehost:/# sudo /etc/init.d/httpd-users stop
bash: sudo: command not found
fatehost:/# su root /etc/init.d/httpd-users restart
Forcing reload of web server: Apache2httpd (pid 20391) already running
.
fatehost:/# /etc/init.d/httpd-users reboot
Usage: /etc/init.d/apache2 start|stop|restart|reload|force-reload
fatehost:/# reboot
WARNING: could not determine runlevel - doing soft reboot
(it's better to use shutdown instead of reboot from the command line)
shutdown: timeout opening/writing control channel /dev/initctl
init: timeout opening/writing control channel /dev/initctl
fatehost:/# WARNING: could not determine runlevel - doing soft reboot
bash: WARNING:: command not found
fatehost:/# (it's better to use shutdown instead of reboot from the command line)
> shutdown: timeout opening/writing control channel /dev/initctl
> init: timeout opening/writing control channel /dev/initctl
>
fatehost:/# /home/fatehost.net/runtime_layeredpanel
bash: /home/fatehost.net/runtime_layeredpanel: No such file or directory
fatehost:/#

View Replies!   View Related
Apache Auto Restart Many Times
Apache service auto restart many times ( every minute ).

View Replies!   View Related
Apache Crashes And Does Not Restart; Every Day
I am running CPanel and WHM, and every morning, I need to restart apache manually in order to work. Then it works for the whole day. It crashes I guess, but I don't know why. What logs do I need to check?

View Replies!   View Related
Restart Apache At High Load
write a cronjob so that apache will restart when the server reaches a load of 20.

View Replies!   View Related
What Would Cause Apache To Restart And Not Compile PHP
Today I got the devastating and heart-stopping news that all administraters fear most: "I'm looking at your website, and something's terribly wrong!!!"

The person went on to say that each page was just "filled with code ro something." When I finally saw it myself I discovered that my raw PHP pages were being served to the end user with no compilation --all of my top secret code; a real nightmare.

I went to look at the error logs and found that for several restarts Apache had not been compiling PHP.

It usually looks like this:

Quote:

[Wed Apr 18 18:35:11 2007] [notice] bandwidth monitoring enabled (mapping file: /etc/virtualhosting/mappings/apache.domainmap)
[Wed Apr 18 18:35:11 2007] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_gzip/1.3.19.1a mod_fastcgi/2.2.10 mod_jk/1.2.0 mod_perl/1.24_01 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b configured -- resuming normal operations
[Wed Apr 18 18:35:11 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Apr 18 18:35:11 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Apr 18 18:35:11 2007] [notice] FastCGI: process manager initialized (pid 16385)

But now it looked like this:

Quote:

[Sun Apr 22 04:02:18 2007] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_gzip/1.3.19.1a configured -- resuming normal operations
[Sun Apr 22 04:02:18 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Apr 22 04:02:18 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/a1b2c3d4e5f6g7h8i9/nonexistentfile.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/adxmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/adserver/adxmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/phpAdsNew/adxmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/phpadsnew/adxmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/phpads/adxmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/Ads/adxmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/ads/adxmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/xmlrpc/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/xmlsrv/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/blog/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/drupal/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/community/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/blogs/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/blogs/xmlsrv/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/blog/xmlsrv/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/blogtest/xmlsrv/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/b2/xmlsrv/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/b2evo/xmlsrv/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/wordpress/xmlrpc.php
[Sun Apr 22 21:21:57 2007] [error] [client 209.85.60.98] File does not exist: /var/www/html/phpgroupware/xmlrpc.php
[Mon Apr 23 04:02:21 2007] [notice] SIGUSR1 received. Doing graceful restart

WTH?

I could be WAAAY off base, but my first reaction was that I'd been hacked -- someone had found a way to disable PHP so they could find sensitive information in raw PHP pages. That could be totally wrong.

At any rate, even if I never learn why Apache sometimes will compile without PHP (and some other modules) without me telling it to do so, I'd like to be prepared for an embarassment like like this.

Is there any way, say, in the .htaccess file (or anywhere, anyway), I can tell Apache not to serve **ANY** pages unless the PHP module is present?

View Replies!   View Related
Restart Apache (module Php5_module Error)
I am experiencing this problem right now. None of my website is running. But httpd status says running. What's wrong?

[root@cent cron]# apachectl restart
[Mon Apr 13 20:10:11 2008] [warn] module php5_module is already loaded, skipping

[root@cent cron]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Mon Apr 13 20:10:55 2008] [warn] module php5_module is already loaded, skipping

[root@cent cron]# service httpd status
httpd (pid 24100 24099 24098 24097 24096 24094) is running...

View Replies!   View Related
Apache Does Not Restart After Editing Httpd.conf
I am having a problem on my VPS. I am running the latest version of Apache on Windows Server 2K3, and after editing httpd.conf to allow virtual hosts (#Include /conf/extra/httpd-vhosts.conf) and trying to restart the service, an error appears saying the operation failed.

I have even tried restarting/starting the service via services.msc

If I am not using the default httpd.conf Apache will not restart at all... it is very strange. I have also tried doing a repair of the installation of Apache.

View Replies!   View Related
How To Restart Apache Periodically On Linux Centos 5
Sometimes my apache gets hanged due to memory leak or persistence connection, then needs to be restarted manually, how can I make this process automatic, that is it get restarted whenever it got hanged or shutdown?

View Replies!   View Related
My Apache Any 1h Going To Down And I Force Run Restart Httpd
i ask of cpanel.net that why : my apache any 1h going to down and i force run restart httpd

cpanel :
Howdy,

This is occurring because your server is consistently hitting the maximum
allowed concurrent connection limit, defined by MaxClients in httpd.conf:

[root@part7 ~]# grep MaxClient /usr/local/apache/logs/error_log | tail -5
[Mon Oct 22 13:07:46 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 13:32:03 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 14:03:29 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 14:16:07 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 16:48:36 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[root@part7 ~]#

You will need to adjust this setting to a value which better accommodates your
server to prevent any further downtime.

View Replies!   View Related
Apache Auto-restart Script (crontab)
I have root ssh access to a server and we notice when doing a bash ./mysq-backup script to dump the data from the web site's databases into .sql and .tgz them that httpd goes down sometimes. That, and sometimes it seems that httpd goes down in other situations. All fine, we will figure out why. But ..

It would be nice to run a crontab to check every 15 minutes if httpd is running, if not, to restart it.

Right now I when I notice the site is down I log into the ssh as root and type: service httpd restart. If it is up it will then first stop it, and restart it. I can look at the screen and see it happen, so I feel pretty safe doing this. One of my concerns is that when I am not at the screen and it stays down .. I do not notice this and downtime increases. And we don't want to just crontab service httpd restart, so a bash script to check for the pid and restart if it down .. would be nice.

I thought this would work:
(chmod 755 httpdcheck)

Code:
delta:~ root# cat httpdcheck
#!/bin/bash

if [ ! "$(pidof httpd)" ]
then
echo "Could not find pid of httpd - restarting"
service httpd restart
else
echo "Found pid of httpd - NO need to restart"
fi
delta:~ root#
And I have this crontab entry:

Code:
delta:~ root# crontab -l
*/5 * * * * /root/httpdcheck | mail my@email
delta:~ root#
When testing, I did service httpd stop and waited 5 minutes and I received the email : could not find it, restarting. But when I go to the web site in browser it remains down. I have to login to ssh and do service httpd start manually to really load it.

Manually loading btw .. shows it works as bash script just fine, so I dont't know why it won't work when run from cron?

Code:
delta:~ root# ./httpdcheck
Could not find pid of httpd - restarting
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
delta:~ root#

So .. when is it going wrong? Am I forgetting something?

View Replies!   View Related
Apache Restart Fails After Upgrade To Php5
I upgraded to php 5.2.3 and it broke my apache somehow.

Here is the error i get in WHM when tring to restart.

Code:
Waiting for httpd to restart.... . . . . . . . . . . finished.

httpd statusroot 14613 1.0 2.1 23736 22060 ? S 02:55 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
root 14626 1.2 1.0 20896 10408 ? Ss 02:55 0:00 /usr/local/apache/bin/httpd -DSSL

httpd: [ != HTTP/1..] httpd has failed, please contact the sysadmin
Im running CentOS with apache 1.3 and trying to run Php5 with whm 11.2.0 and cpanel 11.6.0.

Ive tried everything from loading the least amount of modules to trying to go back to php 4.3 but nothing seems to work and i get the same error no matter which way i go.
My zend is the latest required for php5 too.

Here is a tail from my apache error log.

Code:
[Sat Aug 4 02:55:13 2007] [notice] FastCGI: process manager initialized (pid 14627)
[Sat Aug 4 02:55:13 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.3 mod_gzip/1.3.26.1a mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 F$
[Sat Aug 4 02:55:13 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Sat Aug 4 02:55:13 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sat Aug 4 02:55:28 2007] [notice] child pid 14633 exit signal Segmentation fault (11)
[Sat Aug 4 02:56:14 2007] [notice] child pid 14634 exit signal Segmentation fault (11)

View Replies!   View Related
Cron - Not Working - Apache
I did not realize the significance of the Apache sub-forum. I thought perhaps this would be a more general Server management query, but I realize now I should have posted in Apache forum.

I have been banging my head against the wall for the last couple of days trying to get cron jobs working. It's actually making me quite depressed, a lot of people are waiting on me to get this working, and for the life of me I see no light. I'm not a stupid person, i'm a PHP developer, and have some linux skills. This is the single most annoying issue I have had to deal with simply because I cannot find any troubleshooting methods to my issue.

I have tried every different combination of command under the sun and I cannot get any sign that the cron is running the commands.

I own a "virtual" dedicated server with a hosting company, I have full root access. Linux / Apache

The script file is a PHP file which simply mail() an email saying that cron is working, I am yet to receive this mail that was executed by cron.

I have ensured there are no errors in this simple PHP file, I have executed the script from the shell and all is well there..

So, firstly I tried to setup the cron table from CPanel, on the account where the script resides.

I used the following command combinations:
Code:
0-59 * * * * /usr/local/bin/php /home/username/public_html/cron.php
0-59 * * * * php -q /home/username/public_html/cron.php
0-59 * * * * php /home/username/public_html/cron.php
0-59 * * * * cd "/home/username/public_html/"; php cron.php
0-59 * * * * wget [url]
with time combinations of:
* * * * *
to get the command to be executed evey minute, for testing purposes.

All these commands work fine when executed through the shell.

I set the mail address for cron output to be my mail address also.

I do not get any mail from cpanel with an overview of the cron executions.

I then gave up trying to get cron to work on that account, and decided to go root.

I logged into the shell via root, checked the cron table for root. I edited the root cron table (that contains commands for various cpanel scripts etc) to include a command to execute the php script, even with the script residing on the root directory.

I also added MAILTO="myemail@email.com" to the first line of the cron table.

I do not get any emails of the cron actions.

How can I check if the cron scheduler is working when I get no sign that the cron commands are being executed, and when I do not receive any cron emails? What methods are there for me to troubleshoot this issue?

Could it be possible that cron shedular is not active on my server?

I have lurked the net with great detail to find any method to troubleshoot my issue, and all the related pages I find are to do with troubleshooting the commands. I know my commands are fine, there is some other issue here.

View Replies!   View Related
Leaseweb: 43 Hours Server Down! What Can I Do
I'm not a direct client of Leaseweb, but it's not a secret that my domain is pointing at their servers.

I purchased a shared hosting plan from a reseller and since more than 43 hours my domain is down! My provider (the reseller) said he's waiting for Leaseweb support... according to my informations, in more than 24 hours they just made a reboot of the server!

I'm really bored of waiting with no chance of intervention! My provider says he can't do anything from his side, i can't contact Leaseweb cause i'm not a client... please, help, what can i do?

I need my site back online!

View Replies!   View Related
Server Spec Within The Next 24 Hours
• Located in the USA

• Linux Ubuntu 7.1/8.04 VPS

• HyperVM Control Panel

• IP Address – 32 (must be u.s ips)

• 128Meg – 256Meg Dedicated RAM (minimum)

• 100 – 150Gig Bandwidth (minimum)

View Replies!   View Related
Anyway To Auto Reboot Server Every 6 Hours?
anyway to auto reboot server every 6 hours?

will this effect on the server?

i'm running on CentOS 5 and whm

View Replies!   View Related
Host Which Would Set Up Server Or VPS Fast (up To 1-2 Hours)
Somebody posted a video in my website which got viral. Many big websites (like gizmodo) embeded it and I've maxed out my 100mbit/s connection. Traffic is increasing and my website started crashing.

I want to move that video to other server ASAP so my website would stop crashing.

Do you know any host which would set up server or VPS fast (up to 1-2 hours)?

View Replies!   View Related
Email Arrive With -2 Hours Difference From Server Time Config.
On a rhel 5.3 + cpanel server, i have a time problem.

Web apps, as joomla show articles with a -2 hours time difference, or even webmail clients like roundcube are showing a wrong time when an email arrives. It seems this apps are not picking up the server time.

Both things (joomla and webmail) should use the configured server time.

I know Joomla can be fixed using the time zone option, and webmail too.. but in a server with over 300 websites, there are many joomlas installations and even more mailboxes...

/etc/sysconfig/clock have the right time zone.

View Replies!   View Related
Server Restart
I'm on my first VPS with Virtuozzo / WHM and I'm wondering about what some general guidelines regarding best practices are in regards to restarting services and or the server. Specifically, I'm wondering what a good time frame it to restart the server and sevices.

I've been told VZ doesn't need to be restarted, but I figured that by restarting VZ, I restart everything at once... is this bad? How often should I do this or not do this?

Alternatively, if I just restart specific services, what is your experience on a good timeline and what services are important to restart?

I've read that mysql doesn't need to be restarted, but am wondering EXIM, http server, dns server, pop3 server, imap server, etc.... specifically what good schedule would be regarding restarting.

I'm simply trying to avoid issues that may occur due to not restarting and trying to be proactive as my clients are extremely important to me... ...

View Replies!   View Related
Remotely Restart A Server By IP
I don't know if this is possible after searching on the internet for solutions. Here is the problem. I recently logged off my colocated server 2 days ago, and have been trying to log into it again like I always do using remote desktop. Each time I try it gives me this following error: "This computer can't connect to the remote computer. Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator."

I've had this server colocated for about 5 months now and I've never had any issues connecting remotely to it. Seems like Remote Desktop got broken somehow, or it's being blocked? I am an admin with logins/passwords etc. The OS is Windows Server 2003 R2, I'm not connected to a remote reboot console. I don't want to have to call the data center for remote hands on support for a restart if that's not going to fix the issue, from what I've heard they charge quite a bit.

View Replies!   View Related
Add More Ram To My Server
I just want to know when i need to add more Ram to my server. by looking at the result of the command TOP , how can i know i need to add more rams for my server.?

View Replies!   View Related
Cannot Restart MySQL, HTTPD And Server
I am not being able to restart the server, or MySQL or httpd via SSH.

PHP Code:

root@server [~]# /etc/init.d/httpd fullstatusLooking up localhostMaking HTTP connection to localhostAlert!: Unable to connect to remote host.lynx: Can't access startfile http://localhost/server-statusroot@server [~]# 

PHP Code:

root@server [~]# /etc/init.d/mysql reload/etc/init.d/mysql: line 244: kill: (3375) - No such processtouch: cannot touch `/var/lib/mysql/server.lubnan.us.pid': Read-only file system 

View Replies!   View Related
How To Add IP Addresses To CentOS Server?
How to add an IP adress to CentOS server?

I can't find 'how to"

How can I add secondary adress using SSH?

What command?

View Replies!   View Related
Should I Add 2nd Nameserver IP On Server
My provider just gave 1 IP and to be use as shared IP for every accounts created in the server. I also assigned that IP for my nameserver ns1.domain.com at my registrar.

I was instructed also by my provider to use the next IP for the second nameserver which I also created at my registrar and created dns zone at the whm. All of the domains using that two IPs are working but I dont know why when I ping the second dns its not working. from Intodns.com its also showing nameserver 2 as an error..

My question is, do I need to add the second IP on the server/whm? you see when I go to WHM and click Show IP Address Usage I only see the first IP shared to all other domains. Somehow I'm expecting to see the second IP on the screen.

Anyone can enlighten me? the server I got should have been a full management but my provider is somehow responding so slow.

View Replies!   View Related
Add Footer To Any Email Sent Through Server
Our customer ask me if is possible to set a default footer to add to any emails that is sent true server SMTP..

Is possible to set MTA to make this?

View Replies!   View Related
Restart The Server, It Resets The Hosts File
i've added a few bits to my hosts file, via ssh, and every time i restart the server, it resets the host file,

View Replies!   View Related
ProFTPD 1.3.0a Server Append/Restart Not Permitted
I try to upload a big file between 300 and 500 MB by FTP to my dedicated server but connection is broken and when I try to do the resume it's not allowed how can I enable upload big files and resume files in ProFTPD 1.3.0a or am I missing something inthe conf file ?.

Here is the log: ..........

View Replies!   View Related
IPMI Is Enought Or Should I Add KVM For One Server
I am going to purchase SuperMicro server with IPMI card which I can do remote control...but should I add KVM swtich for extra backup?

If so, what kind should I get for 1-3 servers? IP based? Any recommendation?

View Replies!   View Related
Automatically Restart Mysql After High Server Load
Anyone know a good script that I can run with cron or something? Mysql seems to be the #1 problem with a lot of my web sites, a restart usually fixes it right away for me, but I can't keep restarting my servers everyday manually.

View Replies!   View Related
DNS Server (BIND) Restart After Short Time
i have strange problem in my server

in some times all sites stopped and didn't work

when i do restart to DNS Server (BIND)

after done it works good

View Replies!   View Related
Windows Server 2003 Installed. How To Add Websites
I have a Windows Server 2003 package installed on a server. I own a number of websites that are being hosted some place else. How do I get my websites set-up to run on my new server?

View Replies!   View Related
Howto Add IP Permanently To Your Dedicated CentOS Server
Any straight up easy way. So they stay permanent?

Can I simply use system-config-network and add each IP one at a time.

View Replies!   View Related
Host Will Only Update Domain Name Server (DNS) In Batches, Takes Several Hours For A DNS Change, Normal?
Host will only update DNS in batches, takes several hours for a DNS change, is that normal?
Well today my mail stopped working and it turns out the A record for mail was deleted. How it got deleted I don't know.

I called my host and after speaking to 2 techs, they said that have added my request to a batch, and that would update in a few hours.

I said to him, batch? What can't you do it instantly?

He said thats not the way their DNS works and any DNS change would affect thousands of other sites they are hosting.

Does anyone know what kind of dns system these people could possibly have where they can not reload a single zone?

And by affected, I think he means the sites will go down for a minute or so, while it relaods every zone. Is this really the case, or are these people just idiots?

View Replies!   View Related
Scripts To Auto Restart Server When CPU Reaches A Limit
way to restart httpd when my CPU or http connection is reaching a limit? I would rather have it restarted then having it down.

View Replies!   View Related
Is Your ISP Supposed To Add Reverse DNS For A Dedicated Server
I've been having a problem for the last year: most of my pages are indexed by the IP address - not domian name and I suspect it is because of the lack of reverse DNS

Is my ISP supposed to add reverse DNS or should I buy one from dyndns as I am using their DNS service

View Replies!   View Related
How To Cron On Windows Server?
I truly love the 'cron' feature on Linux servers. This way I can schedule php scripts to do repetitive tasks on my website, but I plan to develop a asp.net website.

Is this kind of scheduling scripts possible on Windows servers? Else how do I perform repetitive automatic tasks? It would be a shared hosting.

View Replies!   View Related
Virtual Private Server (VPS) Wont Restart - Disk Quota Exceeded
An automatic backup in plesk has filled up the disk space in my VPS. It seemed to crash first of all - couldn't access my website, then i tried to restart it. It wont restart and comes up with the error below.

As i can't get into plesk i don't know how to delete these old backup files, seem to be in a catch 22. Help

Jul 17, 2008 01:05:33 PM Start Process Completed
Jul 17, 2008 01:05:33 PM Click here to open/close operation details.Start VPS #48606643 Failed
Jul 17, 2008 01:05:33 PM Operation start with the VPS(s) VEID48606643 is started.
Jul 17, 2008 01:05:33 PM Starting VE ...
Jul 17, 2008 01:05:33 PM vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244]
Jul 17, 2008 01:05:33 PM VE is mounted
Jul 17, 2008 01:05:33 PM Setting devperms 20002 dev 0x7f00
Jul 17, 2008 01:05:33 PM Setting devperms 20007 dev 0xac8
Jul 17, 2008 01:05:33 PM Adding port redirection to VE(1): 4643 8443
Jul 17, 2008 01:05:33 PM Adding IP address(es): 212.227.251.151
Jul 17, 2008 01:05:34 PM ERROR: Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0
Jul 17, 2008 01:05:34 PM bash: line 264: echo: write error: Disk quota exceeded
Jul 17, 2008 01:05:35 PM vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244]
Jul 17, 2008 01:05:35 PM VE is unmounted
Jul 17, 2008 01:05:35 PM VE start failed
Jul 17, 2008 01:05:35 PM Operation start with the VPS(s) VEID48606643 is finished with errors: #1004 Error invoking vzctl utility: Starting VE ... vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] VE is mounted Setting devperms 20002 dev 0x7f00 Setting devperms 20007 dev 0xac8 Adding port redirection to VE(1): 4643 8443 Adding IP address(es): 212.227.251.151 ERROR: Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0 bash: line 264: echo: write error: Disk quota exceeded vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] VE is unmounted VE start failed . Failed
Jul 17, 2008 01:05:35 PM Complete Process Failed

View Replies!   View Related
Cron Issues On VPS Server
I have a VPS Setup which is running Cpanel, everything works fine apart from some of my clients Cron Jobs.

Each user is trying to get cron to run a script to update a page. if they run the script from a browser then it works fine and the page is updated, however if they let cron run the script, it does not run and they get an error email from the server. E.g.

*************************

Subject: Cron <xxx@xxx> php -f /home/xxx/public_html/1min.php
From: "Cron Daemon" <xxx@xxx.xxx.co.uk>
Date: Fri, January 18, 2008 12:55 am
To: xxx@xxx.co.uk
Priority: Normal
Options: View Full Header | View Printable Version | Download this as a file

No input file specified.

*********************

I have check the server and everything seems to be fine, I have cron jobs running as part of WHMCS which all work fine, I just cant find the error.

View Replies!   View Related
Dedicated Server - How To Setup CRON
I'm trying to help out a friend with a dedicated server setup however we both don't know too much about it. We've setup apache, perl, sql all the standard stuff but cannot for the life of us setup a CRON job for a particular script.

The dedicated server control panel is: WHM Accelerated.

Our current websites have been setup on the server under the same user account (master).

There doesn't seem to be the usual "CPANEL" options which you usually get with shared hosting however.

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved