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


ADVERTISEMENT

Apache 2.2 And Httpd.conf

Mar 6, 2008

I recently updated to apache 2.2 and when I went to check

/usr/local/apache/conf/httpd.conf

I noticed that a lot of the stuff was missing from what I usually see in apache 1.3 Was a new file created when the update was finish? I used easyapache to make the update.

I was actually looking to change the

Keepalive
Timeout
MinSpareServers
MaxSpareServers
MaxRequestsPerChild
Etc...

But it doesn't look like it's in there.

View 2 Replies View Related

Apache 2 - Httpd.conf

Sep 15, 2008

how should I optimize httpd.conf on my server. Apache was set up by my friend, unfortunately it started to "stuck" lately during peak time. Browser is connecting to a website for a long time before it actually starts to load it.

My current setup:

Timeout 300
KeepAlive On
MaxKeepAliveRequests 300
KeepAliveTimeout 15
MinSpareServers 2
MaxSpareServers 5
StartServers 5
ServerLimit 650
MaxClients 650
Server:
Intel Quad-Core Xeon X3220 @ 2.40 GHZ
4x 2GiB Kingston ECC Not-Registred 667Mhz
2x 150GiB RaptorX 10k RPM, sw raid 1

View 12 Replies View Related

Apache Httpd.conf

Nov 10, 2007

tuning apache configurations, and would like to seek for some opinions on how I should optimize my httpd.conf

The server is primarily for downloads, serving file sizes that are around 100~200MB.

how I should configure my apache so it'll allow a better/faster/more stable environment?

Hardware Specs:
Intel Xeon 3220 Quad-Core (2.4Ghz)
2GB Ram

My current httpd.conf

ServerTokens None
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 20
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

# worker MPM
<IfModule worker.c>
StartServers 4
MaxClients 500
MinSpareThreads 25
MaxSpareThreads 100
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

View 4 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

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

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 Wont Start :: Httpd.conf File Was Empty

Apr 6, 2008

[root@server1 ~]# service httpd start
no listening sockets available, shutting down
Unable to open logs

CENTOS Enterprise 4.6 i686 on standard - WHM X v3.1.0

apache 2.2

httpd.conf file was empty... I'm recompiling right now.

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

Set Value For Httpd.conf

Jun 22, 2007

I have a box: Dual Opteron 248 - 2GB RAM, Centos 4.x, Cpanel / WHM, does anyone can help me set value in httpd.conf for better?

Set "Timeout"
Set "KeepAlive"
Set "KeepAliveTimeout"
Set "MinSpareServers"
Set "MaxSpareServers"
Set "MaxRequestsPerChild"
Set "HostnameLookups"

I've got many emails from cpanel that httpd fail, check in apache logs i cant find any error

View 1 Replies View Related

Httpd.conf

May 1, 2007

I tried that recently to install PHP 4 & PHP 5 on the same server - without any luck, i stumbled into a massive hole.

the existing httpd.conf was replaced and there was a backup made - stupid me accidently deleted this backup file and was left this a non-working copy of httpd.conf - if anyone can help me it would be much appreciated.

root@server1 [~]# /etc/init.d/httpd configtest
Warning: DocumentRoot [/dev/null] does not exist
Syntax OK

View 5 Replies View Related

Httpd.conf To Set My Virtualhosts

Nov 1, 2009

I always used httpd.conf to set my virtualhosts and it worked perfect. Untill now.

All domains I point to my IP get's pointed to first virtual host folder. And it doesnt care about other settings. My config:

Code:
<VirtualHost *>
ServerSignature Off
ServerAlias omgwtf.com
ServerAdmin rytis@s.lt
DocumentRoot /var/www
ServerName blahblah.com
Options -Indexes
</VirtualHost>

<VirtualHost *>
ServerSignature Off
ServerAlias blahblah.com
ServerAdmin rytis@z.lt
DocumentRoot /var/www/epo
ServerName blahblah.com
Options -Indexes
</VirtualHost>

And it doesnt care about that I set xyz.com to /var/www/epo, it just loads /var/epo.

I have restarted apache.

View 3 Replies View Related

Optimizing Httpd.conf...

May 26, 2008

I remember seeing a website/forum where you couldn't post your server stats and httpd.conf settings and experts would give advice on settings you should use.

Does anyone know the url to this site, or site similar to it

View 14 Replies View Related

Two Httpd.conf, What Are The Differences

Aug 11, 2008

my server is centos with whm/cpanel,

i find there are two httpd.conf in my server,

/etc/httpd/conf/httpd.conf

/usr/local/apache/conf/httpd.conf

i want to ask if i want to tune the httpd,

which one i should edit?

and what are the difference of them?

View 5 Replies View Related

Settings In Httpd.conf

Jun 10, 2007

how can i open this setting
safe_mode = Off
allow_url_fopen = On
disable_functions = None
register_globals = On
in one account in httpd.conf file

View 3 Replies View Related

Optimize Httpd.conf

Nov 19, 2007

I am running Plesk 8 Server, RH Linux EL4 3.0GHz 1GB Ram. My httpd.conf setting is as below:

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 150
MaxRequestsPerChild 1000
</IfModule>

best optimized values for my server. My server oftenly goes down due to large number of http processes.

View 4 Replies View Related

Httpd.conf For A Forum

May 24, 2007

if these settings are decent for a busy forum, if not what should be changed?

Timeout 25
KeepAlive On
MaxKeepAliveRequests 40
KeepAliveTimeout 10
MinSpareServers 8
MaxSpareServers 20
StartServers 12
MaxClients 150
MaxRequestsPerChild 140

I have around 50-100 members/guests online at a time, with at least 20 robots(Search engine bots) online.

View 2 Replies View Related

Need The Best Setting (httpd.conf And My.cnf )

Oct 17, 2007

Processor InformationProcessor #1 Vendor: GenuineIntelProcessor #1 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #1 speed: 2000.219 MHzProcessor #1 cache size: 4096 KBProcessor #2 Vendor: GenuineIntelProcessor #2 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #2 speed: 2000.219 MHzProcessor #2 cache size: 4096 KBProcessor #3 Vendor: GenuineIntelProcessor #3 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #3 speed: 2000.219 MHzProcessor #3 cache size: 4096 KBProcessor #4 Vendor: GenuineIntelProcessor #4 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #4 speed: 2000.219 MHzProcessor #4 cache size: 4096 KBProcessor #5 Vendor: GenuineIntelProcessor #5 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #5 speed: 2000.219 MHzProcessor #5 cache size: 4096 KBProcessor #6 Vendor: GenuineIntelProcessor #6 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #6 speed: 2000.219 MHzProcessor #6 cache size: 4096 KBProcessor #7 Vendor: GenuineIntelProcessor #7 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #7 speed: 2000.219 MHzProcessor #7 cache size: 4096 KBProcessor #8 Vendor: GenuineIntelProcessor #8 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #8 speed: 2000.219 MHzProcessor #8 cache size: 4096 KB
4GB RAM
150G Disk

View 1 Replies View Related

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.conf Help On A 256mb VPS By Webkeepers

Oct 22, 2009

I am using a VPS provided by webkeeprs, and actually my site got quite amount of traffic everyday, sometime when it at peak, by then website won't load, and got blank page.

Check with the resourses used, I only got 256mb in ram, and it always show "RED" and which had consumed 240mb on ram already at peak time.

Here is my setting of my httpd.conf file, I am looking for some expert who may give me a hand on this setting:

=============================================================
ServerTokens ProductOnly
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 180
KeepAlive On
MaxKeepAliveRequests 88
KeepAliveTimeout 3
<IfModule prefork.c>
StartServers 15
MinSpareServers 10
MaxSpareServers 20
ServerLimit 100
MaxClients 90
MaxRequestsPerChild 30
</IfModule>
#<IfModule worker.c>
#StartServers 1
#MaxClients 10
#MinSpareThreads 1
#MaxSpareThreads 5
#ThreadsPerChild 1
#MaxRequestsPerChild 0
#</IfModule>

Listen 80

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

Include conf.d/*.conf
ExtendedStatus Off
User apache
Group apache
#ServerAdmin email@msn.com
#ServerName
UseCanonicalName Off
DocumentRoot "/var/www/html"

<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
UserDir disable
</IfModule>

DirectoryIndex index.html index.html.var index.shtml index.cfm index.php index.htm
AccessFileName .htaccess

View 13 Replies View Related

For The RLimitCPU Directive In Httpd.conf

Jun 6, 2009

For the RLimitCPU directive in httpd.conf

when i set a limit say RLimitCPU 20 30

for a dual core or quad core, does that mean 20% of each cpu, so for a dual core its will be 40% total (20% x 2 cpu) or is it 20% total of all cpu?

View 1 Replies View Related

Disabling The Cgi Module In Httpd.conf

Jul 21, 2008

I like to disable the CGI Module in httpd.conf. Can you please help me to disable the CGI Module.

View 5 Replies View Related

Httpd.conf + IP-based Blacklist

Jan 19, 2008

I'd like to keep an IP blacklist, and have Apache enforce it. Because I want it to apply server-wide, I want to use it in httpd.conf, not .htaccess.

Rather than constantly editing httpd.conf by hand, I'd like to keep a file of IPs, and have Apache read that file and use it as the argument for a "deny from..." directive. Try as I might, I cannot find any documentation, nor any examples, of this usage. Is this something that's possible?

(It turns out that Apache doesn't honor /etc/hosts.deny, hence this question.)

View 8 Replies View Related

Httpd Daemon And Xinetd.conf

Nov 10, 2007

I can see that httpd is running, but I can't see it in xinetd.conf file or /etc/xinit.d/ directory.

Don't need to be in one of the configuration file?

View 6 Replies View Related

Modifying Httpd.conf Indirectly

Jan 5, 2007

Given that I am using cpanel, is there a way to modify httpd.conf so I can enable mod proxy without having to do it directly?

This is what I am instructed to do.

Quote:

Have you checked you have mod_proxy enabled? To enable mod_proxy uncomment it's LoadModule line in the httpd.conf file. You may have to ask your host.

View 5 Replies View Related

PHP Disabled Functions (HTTPD.conf)

Aug 7, 2007

is it possible to set the disabled functions list for PHP in apache's HTTPD.conf per virtual host? i want a bunch of functions disabled for everyone except the default host (me).

I tried the php_admin_value way and when i look at phpinfo() it shows that the master is disabled and the local is not disabled (exactly what i want) but they arnt actually enabled for me

View 14 Replies View Related

Recommend Httpd.conf Values

Aug 27, 2007

I have a linux vps with 384mb dedicated and 1GB burst RAM. I am using it to host phproxy web proxy sites. Can you please recommend good values for the following Apache/1.3.37 httpd.conf settings?

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 2
MinSpareServers 32
MaxSpareServers 64
StartServers 8
MaxClients 256
MaxRequestsPerChild 500

View 1 Replies View Related

Enable PHP Function Via Httpd.conf

Mar 6, 2007

I 'd like to enable php function "mail" via directive for specific account in httpd.conf
what's directive syntax for it,

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

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







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