Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: 12.04 Upgrade - Apache Errors

  1. #1
    Join Date
    Jun 2010
    Location
    Panama City, FL
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Exclamation 12.04 Upgrade - Apache Errors

    I have just upgraded from 10.04 to 12.04. The upgrade has killed my installation of Apache.

    The errors I get are:
    -----
    * Starting web server apache2
    /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
    [Wed May 16 09:04:14 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
    (13)Permission denied: make_sock: could not bind to address [::]:80
    (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Action 'start' failed.
    The Apache error log may have more information.
    -----

    1st) I had Apache working fine on 10.04.
    2nd) I did not have any Virtual Hosts defined.
    3rd) Why did the OS Upgrade even mess with the Apache Server ???

    What has happened here ?? How can I fix it ???

    Thank you in advance.

    grpace
    Last edited by grpace; May 16th, 2012 at 05:53 PM.

  2. #2
    Join Date
    Jun 2010
    Location
    Panama City, FL
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Exclamation Re: 12.04 Upgrade - Apache Errors

    Look... This 12.04 is an LTS... Long Term Support...
    The installation of this killed my server...

    I expect some support...

    Why did this happen???
    Why did Ubuntu upgrade mess with Apache ???

    How do I fix it???
    I need some answers !!

  3. #3
    Join Date
    Dec 2008
    Beans
    256

    Re: 12.04 Upgrade - Apache Errors

    I just now ran into the same errors after a fresh install of 12.04, and it seems that I have to type
    Code:
    sudo service apache2 restart
    rather than
    Code:
    service apache2 restart
    for apache2 to restart with no problems.

    I guess something about the service command in 12.04 makes it require sudo now?

  4. #4
    Join Date
    Oct 2011
    Beans
    2

    Re: 12.04 Upgrade - Apache Errors

    I'm getting this issue too.

    apache2ctl -S
    Code:
    /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
    running

    sudo service apache2 restart

    and

    service apache2 restart

    both don't work

    they both return
    Code:
    * Restarting web server apache2
    Action 'start' failed. 
    The Apache error log may have more information.

  5. #5
    Join Date
    Nov 2011
    Beans
    15

    Re: 12.04 Upgrade - Apache Errors

    Tried just now to access my website and same problems for me.

    Tried to restart apache and got ..
    --------------
    service apache2 restart
    * Restarting web server apache2 /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
    /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
    (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Action 'start' failed.
    The Apache error log may have more information.
    ----------

    I will watch this post for help and provide it if I find an answer. Good luck folks

  6. #6
    Join Date
    Nov 2011
    Beans
    15

    Re: 12.04 Upgrade - Apache Errors

    Hey guys, very weird. When I posted at 1st I could not access the websites on my server. Now I can. So I restarted apache2 and guess what?

    Code:
    /usr/sbin/apache2ctl: 87: ulimit: error ... etc.
    Ya, the very same. But the server answers and ..
    Code:
    service apache2 status
    Apache2 is running (pid ####)
    I am staying on this until an answer comes.
    Googlebot found my own website before I did says the apache logs.

  7. #7
    Join Date
    Nov 2011
    Beans
    15

    Re: 12.04 Upgrade - Apache Errors

    Answer came. Thanks to google and the website http://ubuntuforum-br.org/index.php?topic=94983.15. It translates well from Portuguese.

    Now the terminal reports ..
    service apache2 restart
    * Restarting web server apache2
    ... waiting [ OK ]

    Nice!

    Now the terminal reports ..
    service apache2 restart
    * Restarting web server apache2
    ... waiting [ OK ]

    I had choosen to keep the old apache2.conf file during upgrade.
    old file: /etc/apache2/apache2.conf
    upgrade version: /etc/apache2/apache2.conf.dpkg-dist
    I simply commented out one of my custom changes to the old file like so ..
    Code:
    # @Myself: after phpmyadmin install per ubuntu LAMP guide ..
    #Include /etc/phpmyadmin/apache.conf

  8. #8
    Join Date
    Nov 2011
    Beans
    15

    Re: 12.04 Upgrade - Apache Errors

    Well .. today it's back. The problem in my case was temporarily gone. I made no changes and when I restarted to test things this morning the problem is back.

    What is the answer? I don't know. Seemed I did.

  9. #9
    Join Date
    Nov 2011
    Beans
    15

    Re: 12.04 Upgrade - Apache Errors

    Yes!!! .. I am a proven fool. Oooops, I highly suspect I am a victim of not remembering that root and other users produce different results.

    That is,
    Code:
    sudo service apache2 restart # no errors
    service apache2 restart      # errors, oppps!

  10. #10
    Join Date
    Jun 2010
    Location
    Panama City, FL
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 12.04 Upgrade - Apache Errors

    Hi, All... I'm the OP on this thread.

    When upgrading to 12.04, I saw a message during the upgrade process... As best as I can remember... Apache2 is broken. We're not restarting it. That made me wonder why, so I started digging to try to find out why. I *was* using sudo to start the server.

    The important errors:

    #1:
    -----
    * Starting web server apache2
    /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
    -----
    Something is wrong here... And no explanation as to what to look for.

    #2:
    -----
    [Wed May 16 09:04:14 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
    -----
    I was not using Virtual Hosts!
    After some digging, I found that NameVirtualHosts was defined in ports.conf.
    Comment-out that line and that error went away.

    #3:
    -----
    (13)Permission denied: make_sock: could not bind to address [::]:80
    (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Action 'start' failed.
    The Apache error log may have more information.
    -----
    There is a mysterious error going on here. On first glance, Permission denied, it would appear that the server was not being started by a root user... But I was !

    However, it seems that after a reboot the server starts and runs silently as a service... with no errors reported on the boot. But, that doesn't explain the errors. I *was* using sudo to try to start the server. By the way... It runs "hound dog slow" compared to 10.04.

    Now... It's my thoughts that is not a deliberate thing on the part of the Ubuntu team. I think during the upgrade process, they try to hook us up with the latest version of Apache. It's my thinking that version of Apache has these errors... Not the Ubuntu team themselves.

    But, still... My main point to begin with... An OS upgrade should not be messing with Apache. If we want to upgrade the Apache server, then we can do that ourselves.

    By the way...
    Would changing ownership of the apache2 folder and all sub-folders/files to myself as the owner instead of "root being the owner" prevent this from happening in the future ??

    grpace

    P.S. Thank all of you that has posted with the same errors. That lets me know I'm not delusional... At least not yet !
    Last edited by grpace; May 22nd, 2012 at 02:59 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •