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
ADVERTISEMENT
Jan 26, 2008
i received 4 emails like this today, and now my sites are offline. what does "cpsrvd failed - A restart was attempted automagicly." mean and why are my sites now offline?
View 4 Replies
View Related
Jul 18, 2008
cpanel was automatically send me this email.
cpsrvd failed @ Fri Jul 18 11:29:52 2008. A restart was attempted automatically.
how to resolve this one?
View 7 Replies
View Related
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
Jan 16, 2013
How to restart apache automatic every 12 hours ?
View 6 Replies
View Related
Feb 20, 2008
Is there any way to start plesk services automatically?
As my plesk control panel needs to be restarted every day..
View 5 Replies
View Related
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
May 30, 2005
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 14 Replies
View Related
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
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
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
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
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
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
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
View Related
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
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
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
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
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
Jul 25, 2009
I did a Graceful Server Reboot, but it seems httpd service not running yet,
I got this error after try to restart Apache..
"
Restarting Apache Web Server
Waiting for httpd to restart..............finished.
httpd (/usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd) running as root with PID 3319
httpd has failed, please contact the sysadmin.
"
and my Log:
[root@XXXXX ~]# tail -f /usr/local/apache/logs/error_log
Failed to start up concurrent users module!
[Sat Jul 25 20:39:51 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/loca l/apache/bin/suexec)
[Sat Jul 25 20:39:52 2009] [warn] pid file /usr/local/apache/logs/httpd.pid over written -- Unclean shutdown of previous Apache run?
[Sat Jul 25 20:39:52 2009] [crit] (28)No space left on device: Unable to create or access scoreboard (anonymous shared memory failure)
shmget() failed: No space left on device ....
View 14 Replies
View Related
Aug 12, 2008
I have httpd down right now without any error outputted on errors_log
my server is with 4 Quad-Core Intel Xeon 2.66GHz (16 CPu) and 16GB of RAM. Is running CentOS Linux 5.1 and Apache/2.2.8. The site that will be running in this server has an average of 360,000 pageviews daily, so we want to make sure to tweak the configuration at its best.
my httpd.Conf:
Include "/usr/local/apache/conf/includes/pre_main_global.conf"
Include "/usr/local/apache/conf/includes/pre_main_2.conf"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the #
# configuration file. To have modifications retained, all modifications must be checked into the #
# configuration system by running: #
# /usr/local/cpanel/bin/apache_conf_distiller --update #
# To see if your changes will be conserved, regenerate the Apache configuration file by running: #
# /usr/local/cpanel/bin/build_apache_conf #
# and check the configuration file for your alterations. If your changes have been ignored, then they will #
# need to be added directly to their respective template files. #
# #
# It is also possible to add custom directives to the various "Include" files loaded by this httpd.conf #
# For detailed instructions on using Include files and the apache_conf_distiller with the new configuration #
# system refer to the documentation at: [url] #
# #
# This configuration file was built from the following templates: #
# /var/cpanel/templates/apache2/main.default #
# /var/cpanel/templates/apache2/main.local #
# /var/cpanel/templates/apache2/vhost.default #
# /var/cpanel/templates/apache2/vhost.local #
# /var/cpanel/templates/apache2/ssl_vhost.default #
# /var/cpanel/templates/apache2/ssl_vhost.local #
# #
# Templates with the '.local' extension will be preferred over templates with the '.default' extension. #
# The only template updated by the apache_conf_distiller is main.default. #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
LoadModule auth_passthrough_module modules/mod_auth_passthrough.so
LoadModule bwlimited_module modules/mod_bwlimited.so
LoadModule frontpage_module modules/mod_frontpage.so
LoadModule bw_module modules/mod_bw.so
LoadModule evasive20_module modules/mod_evasive20.so
Include "/usr/local/apache/conf/php.conf"
Include "/usr/local/apache/conf/mod_bandwidth.conf"
LoadModule security2_module modules/mod_security2.so
#Include "/etc/httpd/conf/modsecurity.conf"
ErrorLog "logs/error_log"
DefaultType text/plain
<Directory "/">
Options All
AllowOverride All
</Directory>
<Directory "/usr/local/apache/htdocs">
Options Includes Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Files ~ "^error_log$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<FilesMatch "^.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
<IfModule log_config_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
CustomLog "logs/access_log" common
<IfModule logio_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
</IfModule>
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the #
# configuration file. To have modifications retained, all modifications must be checked into the #
# configuration system by running: #
# /usr/local/cpanel/bin/apache_conf_distiller --update #
# To see if your changes will be conserved, regenerate the Apache configuration file by running: #
# /usr/local/cpanel/bin/build_apache_conf #
# and check the configuration file for your alterations. If your changes have been ignored, then they will #
# need to be added directly to their respective template files. #
# #
# It is also possible to add custom directives to the various "Include" files loaded by this httpd.conf #
# For detailed instructions on using Include files and the apache_conf_distiller with the new configuration #
# system refer to the documentation at: [url]#
# #
# This configuration file was built from the following templates: #
# /var/cpanel/templates/apache2/main.default #
# /var/cpanel/templates/apache2/main.local #
# /var/cpanel/templates/apache2/vhost.default #
# /var/cpanel/templates/apache2/vhost.local #
# /var/cpanel/templates/apache2/ssl_vhost.default #
# /var/cpanel/templates/apache2/ssl_vhost.local #
# #
# Templates with the '.local' extension will be preferred over templates with the '.default' extension. #
# The only template updated by the apache_conf_distiller is main.default. #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
PidFile logs/httpd.pid
LockFile logs/accept.lock
# Defined in /var/cpanel/cpanel.config: apache_port
Listen 0.0.0.0:80
Timeout 300
User nobody
Group nobody
ExtendedStatus On
ServerAdmin soso@soso.com
ServerName server.soso.org
LogLevel warn
ServerSignature Off
RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect
RewriteLock /usr/local/apache/logs/rewrite_lock
UserDir public_html
DirectoryIndex index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/usr/local/apache/logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
<IfDefine SSL>
# Defined in /var/cpanel/cpanel.config: apache_ssl_port
Listen 0.0.0.0:443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
#AddHandler cgi-script .cgi .pl .plx .ppl .perl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-tar .tgz
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlc .wmlc
AddType application/vnd.wap.wmlscriptc .wmlsc
<Location /whm-server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
# SUEXEC is supported
Include "/usr/local/apache/conf/includes/pre_virtualhost_global.conf"
Include "/usr/local/apache/conf/includes/pre_virtualhost_2.conf"
# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
NameVirtualHost *
# Default vhost for unbound IPs
<VirtualHost *>
ServerName server.soso.org
DocumentRoot /usr/local/apache/htdocs
ServerAdmin soso@soso.com
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
</VirtualHost>
# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
# SSL
<IfDefine SSL>
</IfDefine>
# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 7
DOSSiteCount 100
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 300
</IfModule>
NameVirtualHost xxx.xxx.152.250:80
<VirtualHost xxx.xxx.152.250:80>
ServerName soso.org
ServerAlias soso.com www.soso.com
ServerAlias eco.soso.org www.eco.soso.org
ServerAlias soso.info www.soso.info
ServerAlias soso.biz www.soso.biz
ServerAlias soso.cc www.soso.cc
ServerAlias www.soso.org
DocumentRoot /home/soso/public_html
ServerAdmin webmaster@soso.org
## User soso # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup soso soso
</IfModule>
<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/soso:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
php5_admin_value open_basedir "/home/soso:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/soso:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/soso:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/soso:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup soso soso
</IfModule>
CustomLog /usr/local/apache/domlogs/soso.org-bytes_log "%{%s}t %I .
%{%s}t %O ."
CustomLog /usr/local/apache/domlogs/soso.org combined
</VirtualHost>
ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
Alias /bandwidth/ /usr/local/bandmin/htdocs/
Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAliasMatch ^/?securecpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAliasMatch ^/?securecontrolpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
ScriptAliasMatch ^/?webmail/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/?whm/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAliasMatch ^/?securewhm/?$ /usr/local/cpanel/cgi-sys/swhmredirect.cgi
Include "/usr/local/apache/conf/includes/post_virtualhost_global.conf"
Include "/usr/local/apache/conf/includes/post_virtualhost_2.conf"
-------------------------------------------------------------------------------------------------------------
my.cnf
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
safe-show-database
old_passwords
back_log = 75
skip-innodb
max_connections = 1500
key_buffer = 1024M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 4000
thread_cache_size = 512
wait_timeout = 14400
connect_timeout = 10
tmp_table_size = 64M
max_heap_table_size = 64M
max_allowed_packet = 64M
net_buffer_length = 16384
max_connect_errors = 10
thread_concurrency = 32
read_rnd_buffer_size = 786432
bulk_insert_buffer_size = 8M
query_cache_limit = 5M
query_cache_size = 144M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
default-storage-engine = MyISAM
[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
nice = -10
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 64M
[myisamchk]
key_buffer = 1024M
sort_buffer = 384M
read_buffer = 256M
write_buffer = 256M
[mysqlhotcopy]
interactive-timeout
-----------------------------------------------------------------------
top :
------------------------------------------------------------------------
top - 18:27:31 up 2:51, 2 users, load average: 1.91, 2.55, 2.58
Tasks: 533 total, 2 running, 531 sleeping, 0 stopped, 0 zombie
Cpu(s): 7.0%us, 3.6%sy, 0.0%ni, 89.1%id, 0.1%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 16632148k total, 2014536k used, 14617612k free, 102904k buffers
Swap: 4192924k total, 0k used, 4192924k free, 737684k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22527 mysql 5 -10 1228m 174m 3040 S 81 1.1 22:52.61 mysqld
3717 nobody 16 0 31248 13m 4052 S 6 0.1 0:01.08 httpd
3680 nobody 16 0 31380 13m 4060 R 4 0.1 0:03.07 httpd
3748 nobody 15 0 31044 13m 4052 S 4 0.1 0:01.02 httpd
3687 nobody 15 0 31324 13m 4064 S 4 0.1 0:01.53 httpd
3774 nobody 16 0 31324 13m 4056 S 4 0.1 0:00.72 httpd
3797 nobody 15 0 31324 13m 4060 S 4 0.1 0:02.20 httpd
3850 nobody 15 0 31380 13m 4068 S 4 0.1 0:02.11 httpd
3858 nobody 15 0 31020 13m 4060 S 4 0.1 0:02.91 httpd
3861 nobody 16 0 31252 13m 4116 S 4 0.1 0:01.46 httpd
3900 nobody 15 0 31332 13m 4056 S 4 0.1 0:01.22 httpd
3649 nobody 15 0 31316 13m 4060 S 3 0.1 0:01.06 httpd
3696 nobody 15 0 31020 13m 4052 S 3 0.1 0:01.20 httpd
3654 nobody 15 0 31308 13m 4124 S 3 0.1 0:02.05 httpd
3707 nobody 16 0 31552 13m 4060 S 3 0.1 0:02.03 httpd
3711 nobody 15 0 31072 13m 4060 S 3 0.1 0:02.52 httpd
3790 nobody 15 0 31376 13m 4064 S 3 0.1 0:02.00 httpd
3794 nobody 15 0 31048 13m 4060 S 3 0.1 0:01.10 httpd
3897 nobody 15 0 30764 13m 4404 S 3 0.1 0:01.76 httpd
3907 nobody 15 0 31316 13m 4060 S 3 0.1 0:02.35 httpd
3884 nobody 15 0 31156 13m 4056 S 2 0.1 0:00.99 httpd
3664 nobody 15 0 31308 13m 4060 S 2 0.1 0:01.97 httpd
3838 nobody 15 0 31340 13m 4056 S 2 0.1 0:00.88 httpd
--------------------------------------------------------------------------------------------------
root@server [~]# netstat -lpan | grep :80 | wc -l
1657
root@server [~]#
----------------------------------------------------------------------------------------------
what to change to optimize this web server and solv this problem?
View 14 Replies
View Related
May 25, 2008
my apache crashed and I trying to restart apache from SSH, when I run "service httpd start" I didn't get any message and I come back yo command prompt, but the httpd is down yet
View 10 Replies
View Related
Mar 30, 2007
If I typed ' Service httpd start ' Receive below error
mixing * ports and non-* ports with a NameVirtualHost address is not supported , proceeding with undefined results
All I have added couple of IP address
View 3 Replies
View Related
Dec 31, 2007
i usually recive this error message
httpd on host.*********** failed
and server apache fail
how i can fix the error
View 7 Replies
View Related
Feb 3, 2007
I'm unable to start my apache after installed ionCube, that mean my http is down now.
Code:
root@sv3 [~]# /etc/init.d/httpd start
/etc/init.d/httpd start: httpd could not be started
root@sv3 [~]#
View 13 Replies
View Related
Dec 20, 2007
When I restart it via WHM I see this :
Waiting for httpd to restart.... . . . . . . . . . . finished.
httpd status
root 12200 1.0 1.1 25748 24076 ? S 09:25 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
httpd has failed, please contact the sysadmin.
and when I restart it in via SSH , I get it :
[root@saman ~]# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 21424 of /usr/local/apache/conf/httpd.conf:
ScriptAlias takes two arguments, a fakename and a realname
/etc/init.d/httpd restart: httpd could not be started
View 8 Replies
View Related
Jun 8, 2008
Suddenly Apache started acting weird, I rebooted the server, Disabled suexec, and a lot more thing to make it work..
But I'm not able to figure it out.
View 5 Replies
View Related