Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri May 04, 2012 2:21 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
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

Code:
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


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 2:35 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
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


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 2:42 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
I am running Ubuntu 10.04

And here is the out put i got

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


kyrunner wrote:
Lets start with the basics

1) What distro are you running

2) /usr/sbin/httpd -S

Lets start with this stuff first


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 2:44 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
shayonj wrote:
I am running Ubuntu 10.04

And here is the out put i got

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


kyrunner wrote:
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


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 2:50 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
Okay so here is the output (3) , (2) still shows the same thing .
Code:
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 wrote:
shayonj wrote:
I am running Ubuntu 10.04

And here is the out put i got

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


kyrunner wrote:
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
Code:


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 2:56 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
btw, i killed the apache2 term so it does not show any error messages while restarting.


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 3:03 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
grep -v "^#" /etc/apache2/sites-available/default

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


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 3:36 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
1. grep -v "^#" /etc/apache2/sites-available/default

Code:
<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

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


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


Code:
<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>


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 4:25 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
any help ? :)
kyrunner wrote:
grep -v "^#" /etc/apache2/sites-available/default

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


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 4:52 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
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.


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 8:20 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
So what should i do. How to fix it ?

kyrunner wrote:
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.


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 8:33 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
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.


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 9:25 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
vonskippy wrote:
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


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 9:28 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 2:20 pm
Posts: 8
nope it did not help.



kyrunner wrote:
vonskippy wrote:
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


Top
   
 Post subject:
PostPosted: Sat May 05, 2012 9:48 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
kyrunner wrote:
vonskippy wrote:
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group