logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: apache2 doesn't start
Author
htamayo



Joined: 11 Dec 2008
Posts: 2

PostPosted: Thu 11 Dec '08 23:31    Post subject: apache2 doesn't start Reply with quote

Hi, After an OS upgrade (Debian Etch to Debian Sid), i can't start apache2, at this time, I've already done these:

1. I've checked if apache2 is running:
Code:

tamayo@350z:~$ ps ax | grep apache2
 3856 ?        Ss     0:01 /usr/sbin/apache2 -k start
 3983 ?        S      0:00 /usr/sbin/apache2 -k start
 3984 ?        S      0:00 /usr/sbin/apache2 -k start
 3985 ?        S      0:00 /usr/sbin/apache2 -k start
 3986 ?        S      0:00 /usr/sbin/apache2 -k start
 3987 ?        S      0:00 /usr/sbin/apache2 -k start
11632 pts/0    S+     0:00 grep apache2


2. I've checked the apache2.conf file and it seems ok:

Code:

ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" $
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combin$
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/
ServerName 350z
<Directory />
  Options None
  AllowOverride None
</Directory>

<Directory /var/www/nomina>
  AllowOverride None
  order allow,deny
  allow from all
  Options Indexes Includes FollowSymLinks
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

DirectoryIndex login.php index.php



3. I've tried to reload the service, (/etc/init.d/apache2 reload) and I got this:

Quote:

Reloading web server config: apache2[Thu Dec 11 15:21:47 2008] [warn] NameVirtualHost *:80 has no VirtualHosts


But I understand that is a warning, not an error, but still apache doesn't work. I go to the browser and type http://localhost and nothing, it tries to lookup in the internet not in the host

My question is:
What should I do to fix this problem?

Regards
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 12 Dec '08 19:03    Post subject: Reply with quote

I think there is a symlink in /etc/apache2/sites-enabled/ to a config file with a vhost. So you should remove the symlink or edit the file behind that symlink to fix it.

reason: When ever there is a vhost the main host is not used by apache only the vhost(s)

If you still have a question please ask again.
Back to top
htamayo



Joined: 11 Dec 2008
Posts: 2

PostPosted: Mon 15 Dec '08 21:26    Post subject: my apache2 error.log Reply with quote

Hi, i had the same problem, at this time I couldn't fix it, here is my error log, I think nothing is wrong, but if you have any suggestions, please tell me:

Quote:

[Fri Dec 12 12:02:11 2008] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-5 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 $
[Fri Dec 12 15:49:30 2008] [notice] caught SIGTERM, shutting down
[Mon Dec 15 07:55:01 2008] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-5 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 $


Regards
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 16 Dec '08 19:24    Post subject: Reply with quote

Hi htamayo,
is there more in your error log than [Fri Dec 12 15:49:30 2008] [notice] caught SIGTERM, shutting down ?about the error you get?
Back to top


Reply to topic   Topic: apache2 doesn't start View previous topic :: View next topic
Post new topic   Forum Index -> Apache