Results 1 to 5 of 5

Thread: apache down after lts upgrade

  1. #1
    Join Date
    Sep 2007
    Location
    Santa Cruz, CA
    Beans
    92
    Distro
    Ubuntu 12.10 Quantal Quetzal

    apache down after lts upgrade

    So I know I probably should have left well enough alone. But I decided to perform an in place upgrade from 10.04 to 12.04 and now I'm paying for it.

    Generally everything else seems fine, except apache.

    When I try to start (as root) this is what I get.
    ve : /etc/init.d/apache2 start
    * Starting web server apache2 mktemp: failed to create directory via template `/var/lock/apache2.XXXXXXXXXX': No such file or directory
    chmod: missing operand after `755'
    Try `chmod --help' for more information.


    Thanks

  2. #2
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,133
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: apache down after lts upgrade

    Have you made sure that /var/lock exists and checked it's permissions?
    Code:
    mkdir -p /var/lock
    ls -l /var/lock

  3. #3
    Join Date
    Sep 2007
    Location
    Santa Cruz, CA
    Beans
    92
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: apache down after lts upgrade

    It already exists

    ve ~: ls -l /var/lock
    lrwxrwxrwx 1 root root 9 Jul 2 11:51 /var/lock -> /run/lock

  4. #4
    Join Date
    Sep 2007
    Location
    Santa Cruz, CA
    Beans
    92
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: apache down after lts upgrade

    It already exists

    ve ~: ls -l /var/lock
    lrwxrwxrwx 1 root root 9 Jul 2 11:51 /var/lock -> /run/lock

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,314
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: apache down after lts upgrade

    Have you tried starting apache2 via upstart, which is the norm in 12.04? Rather than /etc/init.d, use the command "sudo service apache2 start". Work any better?

    Does the www-data user than apache2 runs as have write privileges to /run/lock? On my machine that directory is writable by everyone just like /tmp is:

    Code:
    drwxrwxrwt  3 root       root         60 Jul 11 21:25 lock
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •