Announcement

Collapse
No announcement yet.

apache autostart problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    apache autostart problem

    On my new Kubuntu 11.10 64 bit apache won't start by default. /etc/init.d/apache2 exists and the rc directories list apache entries (e.g. /etc/init.d/S91apache2). But I am confused whether the apache2 script actually starts the service at boot. Therefore I set up my own script which looks like:

    #!/bin/bash
    /etc/init.d/apache2 start

    I put it in the S95 runlevels: sudo update-rc.d apache-startup start 95 2 3 4 5 .

    Now, the script sits in the runlevels, but it doesn't do its job. I still have to start apache2 manually:

    sudo service apache2 start

    * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    [ OK ]
    /var/log/error.log looks like this:

    ...
    [Fri Jan 06 22:34:13 2012] [notice] caught SIGTERM, shutting down
    [Sat Jan 07 11:41:50 2012] [notice] Digest: generating secret for digest authentication ...
    [Sat Jan 07 11:41:50 2012] [notice] Digest: done
    [Sat Jan 07 11:41:50 2012] [notice] Apache/2.2.20 (Ubuntu) DAV/2 PHP/5.3.6-13ubuntu3.3 with Suhosin-Patch configured -- resuming normal operations
    [Sat Jan 07 11:43:12 2012] [notice] caught SIGTERM, shutting down
    [Sat Jan 07 12:12:50 2012] [notice] Digest: generating secret for digest authentication ...
    [Sat Jan 07 12:12:50 2012] [notice] Digest: done
    [Sat Jan 07 12:12:50 2012] [notice] Apache/2.2.20 (Ubuntu) DAV/2 PHP/5.3.6-13ubuntu3.3 with Suhosin-Patch configured -- resuming normal operations
    [Mon Jan 09 08:42:21 2012] [notice] caught SIGTERM, shutting down
    [Mon Jan 09 09:13:08 2012] [notice] Digest: generating secret for digest authentication ...
    [Mon Jan 09 09:13:08 2012] [notice] Digest: done
    [Mon Jan 09 09:13:08 2012] [notice] Apache/2.2.20 (Ubuntu) DAV/2 PHP/5.3.6-13ubuntu3.3 with Suhosin-Patch configured -- resuming normal operations
    [Tue Jan 10 09:03:47 2012] [notice] Graceful restart requested, doing restart
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

    What is wrong? How can I get this thing to autostart?
Working...
X