site is not loading, tried to install mediawiki

Hello,

I installed mediawiki using the sudo apt-get install mediawiki command but then I again i uninstalled it using the command line, also removed the symlink (i believe so). but the site (mcenter.org) is not loading anymore. what did i do wrong or missed?

And why i try to restart apache it shows this

98)Address already in use: make_sock: could not bind to address [::]:80
(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

14 Replies

Lets start with the basics

1) What distro are you running

2) /usr/sbin/httpd -S

3) grep -v "^#" /etc/apache2/apache2.conf

Lets start with this stuff first

I am running Ubuntu 10.04

And here is the out put i got

-bash: /usr/sbin/httpd: No such file or directory

@kyrunner:

Lets start with the basics

1) What distro are you running

2) /usr/sbin/httpd -S

Lets start with this stuff first

@shayonj:

I am running Ubuntu 10.04

And here is the out put i got

-bash: /usr/sbin/httpd: No such file or directory

@kyrunner:

Lets start with the basics

1) What distro are you running

2) /usr/sbin/httpd -S

Lets start with this stuff first

Sorry for number (2) that was for Centos I edited the post read Moore

Okay so here is the output (3) , (2) still shows the same thing .

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
    MinSpareThreads      25
    MaxSpareThreads      75 
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0</ifmodule> 

 <ifmodule mpm_event_module="">StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75 
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   0</ifmodule> 

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

AccessFileName .htaccess

 <files ~="" "^\.ht"="">Order allow,deny
    Deny from all
    Satisfy 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 %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %O" 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/

@kyrunner:

@shayonj:

I am running Ubuntu 10.04

And here is the out put i got

-bash: /usr/sbin/httpd: No such file or directory

@kyrunner:

Lets start with the basics

1) What distro are you running

2) /usr/sbin/httpd -S

Lets start with this stuff first

Sorry for number (2) that was for Centos I edited the post read Moore

btw, i killed the apache2 term so it does not show any error messages while restarting.

grep -v "^#" /etc/apache2/sites-available/default

grep -v "^#" /etc/apache2/sites-enabled/000-default

1. grep -v "^#" /etc/apache2/sites-available/default

 <virtualhost *:80="">ServerAdmin webmaster@localhost

    DocumentRoot /var/www/mauthe_main
     <directory>Options FollowSymLinks
        AllowOverride None</directory> 
     <directory var="" www="" mauthe_main="">Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        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 /var/log/apache2/error.log

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

    CustomLog /var/log/apache2/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> 

2.grep -v "^#" /etc/apache2/sites-enabled/000-default

grep: /etc/apache2/sites-enabled/000-default: No such file or directory

btw, the main host file for the domain (mcenter.org) is here

 <virtualhost *:80="">ServerName mcenter.org
      ServerAlias www.mcenter.org

      DocumentRoot /var/www/mauthe_main/
      <directory var="" www="" mauthe_main="">Options Indexes FollowSymLinks MultiViews +Includes
        AllowOverride all
        Order allow,deny
        allow from all</directory></virtualhost> 

any help ? :)
@kyrunner:

grep -v "^#" /etc/apache2/sites-available/default

grep -v "^#" /etc/apache2/sites-enabled/000-default

The apache2_config file looks fine. I'm thinking if he had a website that was working, and then he tried to install another website it overwritten his original settings. Then when he said he deleted the other website and he might of deleted the symbolic link. This is where I think the problem lies.

I could be wrong.

So what should i do. How to fix it ?

@kyrunner:

The apache2_config file looks fine. I'm thinking if he had a website that was working, and then he tried to install another website it overwritten his original settings. Then when he said he deleted the other website and he might of deleted the symbolic link. This is where I think the problem lies.

I could be wrong.

No clue about the specific's for a Deb based Apache setup (why they had to dork the standard httpd setup I'll never understand).

But….when ever you run into a brick wall, go back to square one and start over.

Your IP number takes you to the Apache welcome page, so Apache in general is working.

Since your domain URL is fubar'd, start there.

Reset your httpd/vhost config file (whatever it's called in Ubuntu) and make a VERY SIMPLE Config (no rewrites, no redirects, no symbolic links, no aliases), just the very BASIC domain setup.

When you get that working (i.e. you can browse to www.yourdomain.com) then make a backup copy of that config file.

Then add one (and only one) new addition to the config file. Does it work? Yes, make a new backup copy. No, restore the last working copy and try again.

And remember - every time you change the config file(s) you need to restart Apache.

@vonskippy:

No clue about the specific's for a Deb based Apache setup (why they had to dork the standard httpd setup I'll never understand).

But….when ever you run into a brick wall, go back to square one and start over.

Your IP number takes you to the Apache welcome page, so Apache in general is working.

Since your domain URL is fubar'd, start there.

Reset your httpd/vhost config file (whatever it's called in Ubuntu) and make a VERY SIMPLE Config (no rewrites, no redirects, no symbolic links, no aliases), just the very BASIC domain setup.

When you get that working (i.e. you can browse to www.yourdomain.com) then make a backup copy of that config file.

Then add one (and only one) new addition to the config file. Does it work? Yes, make a new backup copy. No, restore the last working copy and try again.

And remember - every time you change the config file(s) you need to restart Apache.

I totally agree. I build all my websites on Centos I don't know why Ubuntu got away from httpd

nope it did not help.

@kyrunner:

@vonskippy:

No clue about the specific's for a Deb based Apache setup (why they had to dork the standard httpd setup I'll never understand).

But….when ever you run into a brick wall, go back to square one and start over.

Your IP number takes you to the Apache welcome page, so Apache in general is working.

Since your domain URL is fubar'd, start there.

Reset your httpd/vhost config file (whatever it's called in Ubuntu) and make a VERY SIMPLE Config (no rewrites, no redirects, no symbolic links, no aliases), just the very BASIC domain setup.

When you get that working (i.e. you can browse to www.yourdomain.com) then make a backup copy of that config file.

Then add one (and only one) new addition to the config file. Does it work? Yes, make a new backup copy. No, restore the last working copy and try again.

And remember - every time you change the config file(s) you need to restart Apache.

I totally agree. I build all my websites on Centos I don't know why Ubuntu got away from httpd

@kyrunner:

@vonskippy:

No clue about the specific's for a Deb based Apache setup (why they had to dork the standard httpd setup I'll never understand).

I totally agree. I build all my websites on Centos I don't know why Ubuntu got away from httpd

Because in a complicated system it's easier to manage a small file for each vhost than a single monolithic config file.

What they do, anyone could do on any system (it's just using includes in the main config file), they just "standardized" locations for this stuff. This also allows for the a2ensite/a2dissite and a2enmod/a2dismod commands to easily enable/disable vhosts and modules.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct