Cannot Restart MySQL, HTTPD And Server

Nov 22, 2007

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 14 Replies


ADVERTISEMENT

Restart Httpd

Sep 12, 2007

[root@server1 /]# ps -aux |grep httpd
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
apache 26023 0.5 0.9 12064 8744 ? S 05:28 0:04 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
root 32333 0.7 2.5 24456 22772 ? S 05:39 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
root 32384 0.0 0.0 2152 524 pts/1 S+ 05:39 0:00 grep httpd

i want removed "lighttpd"

how may?

i don`t want killed it

View 0 Replies View Related

Httpd FAILED Restart

Apr 30, 2009

i had just wake up and see my vps server witch work under centOS 5.2 wont up my domains ... just i can ping my domain and when i open my domains name its give me

Network Error (tcp_error)
even i cannot logged in my ssh account so i give it a hard reboot from my slice manager and after that i can log , i turn my firewall of .. restart my apache and my sqlserver

and same error ..

i can restart my sql fine .. stop my firewall and modsecurity fine , but when i restart my httpd server its wont , its give me FAILED

View 10 Replies View Related

Cant Restart Apache Httpd

Aug 3, 2008

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 10 Replies View Related

Restart Httpd On Fail

Aug 4, 2007

I'm using this script (I think I got it off of WHT) to restart httpd whenever a file failed to download on my server.

Code:
#!/bin/bash

FILE=[url]

rm -f test.file
wget -q $FILE -O test.file

if [ ! -f test.file ]
then
/etc/init.d/httpd restart
echo 'ALERT - HTTPD restarted on:' `date` | mail -s "Alert: HTTPD Restarted" user@domain.tld
fi

exit $?
I have it on crontab


Code:
*/5 * * * * /bin/nfup > /dev/null 2>&1
but it didn't seem to restart httpd, I got no e-mail and our site was down for several hours.

Is there anything wrong with the script?

View 10 Replies View Related

Httpd Unable To Restart

Nov 29, 2007

I am using cPanel server which I am unable to restart the Apache service
httpd has failed, please contact the sysadmin.

root@samajaya [~]# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
[Thu Nov 29 02:27:00 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Thu Nov 29 02:27:00 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Thu Nov 29 02:27:00 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Thu Nov 29 02:27:00 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Thu Nov 29 02:27:00 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Thu Nov 29 02:27:00 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Thu Nov 29 02:27:00 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
/etc/init.d/httpd restart: httpd started

View 14 Replies View Related

Httpd Restart Problem In WHM

Jan 28, 2007

Whenever i try to restart httpd server in whm then got the following error

root 20655 0.9 0.9 20716 19408 ? S 18:23 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd

httpd has failed, please contact the sysadmin.

But in shell when i tried to check httpd status then its working fine what was the reason how can i fix this problem in whm

View 5 Replies View Related

Apache/httpd Wont Restart

Jan 25, 2008

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 6 Replies View Related

VPS Httpd Failed And Restart Automatically

Feb 17, 2008

almost daily my VPS httpd failed and restart automatically, after that all services show UP but my sites not working.. Only start working when I restart DNS Server (BIND).

I am using CPanel

View 7 Replies View Related

My Apache Any 1h Going To Down And I Force Run Restart Httpd

Oct 22, 2007

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 5 Replies View Related

Apache Does Not Restart After Editing Httpd.conf

Jun 12, 2009

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 11 Replies View Related

Automatically Restart Mysql After High Server Load

Jan 29, 2009

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 1 Replies View Related

Speed Of Page Loading Goes Down Some Minutes After Httpd Restart

Nov 22, 2007

Recently we have launched our new cpanel server, We have some problems on that.

When we restart httpd, all things will be good before 15 min, but after that, speed goes down to 1/10 and after some hours that will get as low as nobody can view pages on the server.

We are using cPanel latest release and CSF on CentOS4.5.

Apache 1.3.7 and PHP4.4.7 is running on the server with Zend.

View 6 Replies View Related

Apache Stops Working And Have To Restart The Httpd Service

Jul 21, 2014

Out of nowhere apache stops working, and I have to restart the httpd service that restablesca

The message it throws is "Service Unavailable"

The server is a CentOS Linux Centos 6.5

It has 24 cores and 24 GB RAM

These are the values ​​that I have in httpd.conf

Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

[Code]....

View 3 Replies View Related

Do You Put Httpd And Mysql On The Server Or Different Ones

Jun 5, 2009

as default,we may install all the feature on the server,

but i find some shared hosting server provider install web httpd on the front,

and mysql on another one,

could you share your experience about how do you do now?

View 9 Replies View Related

Plesk Automation :: MySQL Server Not Starting Anymore - Failed To Restart Service

Jun 5, 2014

What could I fix by trying to start mysql server, recieve following errors:

plesk interface:

Code:
Failed to restart the "mysql" service.
Cannot start/stop/restart service: Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop mysql ; start mysql. The restart(8) utility is also available.
start: Job failed to start

from the console:

Code:
sudo service mysql start
start: Job failed to start

Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
output of plesk_11.5.30_reset_instance_data.log:

[Code] ...

View 4 Replies View Related

Mysql.sock Gone And Mysql Restart Doesn't Create It

Jun 16, 2008

For some reason mysql wont start, i have tried restarting mysql but it wont, it says FAILED. The mysql.sock file seems to have disappeared and i cannot find it anywhere.

View 5 Replies View Related

How To Restart Mysql

Mar 16, 2007

I'm on FreeBSD 6.2 dedicated server with root access control-panel Directadmin

Today i check that i cann't login into directadmin. at the same time ftp and ssh access are live.

try to do restart and after this mysql service is down too.

all my attempts to do restart aren't successful.

1. don't have http access to DA
2. have ftp access, but cann't overwrite files
3. have ssh access
4. mysql service is stoped

try to do mysql restart with this command

/usr/local/etc/rc.d/mysql-server.sh stop
but there isn't such file

try to connect to mysql and get such output

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local
MySQL server through socket '/tmp/mysql.sock' (2) in

View 9 Replies View Related

How To Restart Mysql

Mar 16, 2007

I'm on FreeBSD 6.2 dedicated server with root access
control-panel Directadmin

Today i check that i cann't login into directadmin. at the same time ftp and ssh access are live.

try to do restart and after this mysql service is down too.

all my attempts to do restart aren't successful.

1. don't have http access to DA
2. have ftp access, but cann't overwrite files
3. have ssh access
4. mysql service is stoped

try to do mysql restart with this command

/usr/local/etc/rc.d/mysql-server.sh stop
but there isn't such file

try to connect to mysql and get such output

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local
MySQL server through socket '/tmp/mysql.sock' (2) in

View 1 Replies View Related

Mysql Auto Restart

Dec 5, 2008

Is anyone experiencing that cpanel automatically restarts mysql at 2AM?

I'm curious is that new feature or something has gone wrong?

This has started after cpanel upgrade mysql to 5.0.67 version.

I'm not so good with cpanel so please can somebody tell me where cpanel holds its crons?

I cannot find nothing in /etc/cron.* or in cron -l, and I want to turn this option off.

View 2 Replies View Related

How To Set Up Cron Job To Restart Mysql

Nov 23, 2008

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 12 Replies View Related

Failed To Restart Mysql Service

Apr 12, 2009

My vps is run well, then i reboot and i see mysql no longer working. I check in WHM
mysql (5.0.67-community) failed

And when restart (by WHM )

Restarting MySQL Server

whmappname='Restarting Service'; if (self['update_ui_status']) { update_ui_status('MySQL Server'); } Waiting for mysql to restart..............finished.

mysqld_safe (/bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/server.xxxx.com.pid) running as root with PID 5275

mysql has failed, please contact the sysadmin (result was "mysql has failed").

My VPS in unmanaged, i can't access mysql.

View 4 Replies View Related

Mysql Error Message And Restart

Jun 1, 2008

One of our servers mysql daemon is restarting most of the time and got the error message in the message file. Did anyone see similar error message?

Jun 1 05:46:44 kernel: audit(1212317204.342:6991): avc: denied { read } for pid=17286 comm="mysqld" name="/" dev=loop0 ino=2 scontext=user_uystem_r:mysqld_t0 tcontext=system_ubject_r:file_t0 tclass=dir
Jun 1 05:46:44 kernel: audit(1212317204.343:6992): avc: denied { getattr } for pid=17286 comm="mysqld" path="/tmp" dev=loop0 ino=2 scontext=user_uystem_r:mysqld_t0 tcontext=system_ubject_r:file_t0 tclass=dir
Jun 1 05:46:44 kernel: audit(1212317204.346:6993): avc: denied { read } for pid=17286 comm="mysqld" name="time_zone_leap_second.frm" dev=hda2 in

View 1 Replies View Related

MySQL Restart On CentOS - Chown

Sep 18, 2007

I have a lot of tables, being that I host multi forums. One thing I noticed when doing a mysql start up or restart is that it takes at least 15 minutes to do it. The server isn't bad, it's a Pentium D with 3GB of RAM and it runs perfectly fine. What I noticed is that after I do an SQL restart, I checked "top." The command that was running is "chown" and it sat at the top of the list, and kept going. Until finally mysql started and it stopped.

I imagine that all of the files in the data folder are being CHOWNed... and that's why it takes forever. If this is the case, how can I stop this, if at all? I don't see why they need to be CHOWNed?

View 4 Replies View Related

SQL Server Using Maxmimum Httpd Connection On My Httpd Server

Feb 6, 2007

i am using seperate server for sql .But my httpd server failed many time when i checked maximum number of httpd connection then my sql server using too many connection what is the reason of this problem . Is my sql server using as a slave in a ddos attack or sql server need http connection?

View 2 Replies View Related

Script To Monitor Httpd , Mysql , Named Etc

Jan 18, 2008

I heard of script which checks if httpd , mysql , named etc servies are down and make them up...

it keeps chechking all services after 5 mins

View 2 Replies View Related

Server Restart

Dec 18, 2007

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 3 Replies View Related

Remotely Restart A Server By IP

Jan 11, 2007

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 7 Replies View Related

Restart The Server, It Resets The Hosts File

Apr 17, 2009

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 5 Replies View Related







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