Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Unable to restart apache

  1. #11
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: Unable to restart apache

    O.K. so your ports.conf file is the default. The point I was trying to make is, I suggest, still valid. The reason you don't see anything with "netstat -tulpn" is because it is apache itself binding to the port and then trying to bind to it again. Why? I don't know, but I would suggest to continue looking at your config files.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  2. #12

    Re: Unable to restart apache

    That sounds possible. I had the same issue on Friday, then for some reason after a couple of hours, everything started working again.

  3. #13
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: Unable to restart apache

    For example: I was able to create the same error by messing with /etc/apache2/sites-available/default.
    Code:
    doug@s15:/etc/apache2/sites-available$ sudo service apache2 restart
     * Restarting web server apache2         (98)Address already in use: 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.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  4. #14

    Re: Unable to restart apache

    This is /etc/apache2/sites-avai;lablexxxxxxxx.info

    can you identity any possible errors

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName courseworkbank.info
    ServerAlias www.xxxxxxx.info
    DocumentRoot /var/www/courseworkbank
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /var/www/courseworkbank/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    </VirtualHost>
    Last edited by howefield; July 29th, 2015 at 11:10 AM.

  5. #15
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Unable to restart apache

    Perhaps you can explain your setup a bit more. Is this a virtual machine? How many physical/virtual network adapters? Can you post /etc/network/interfaces?
    Do you have a service bound to a specific adapter?

    I see you have at least two public ip addresses. *.*.*.92 responds to pings and is hosting website at the moment. *.*.*.93 does not respond to pings.
    Are both ip's behind the same firewall/non firewall? I think your problem is not with Apache2.

    According to your website, it does seem apache or a different web server is running. Do you have Nginx or something else installed.

    What's the output of:
    Code:
     ps aux | grep apache2
    Last edited by volkswagner; March 24th, 2014 at 12:37 PM.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  6. #16

    Re: Unable to restart apache

    Found the issue.
    While trying to configure a website for a different ip address I inserted this at the top of /etc/apache2/sites-enabled/website.file

    Listen *:80
    Listen 1.2.3.4:80

    Fixed now and thanks all

Page 2 of 2 FirstFirst 12

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
  •