Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-30-2009, 04:59 PM   #1
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Installing Apache2 on Ubuntu 9.10 Errors. Help.

Alright, I've been trying for HOURS to get this to fucking work but I can't figure it out.

Here is my error. What am I doing wrong?

Quote:
* Starting web server apache2
(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
Searched all over hell couldn't find shit, not even on ubuntuforums.org.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:02 PM   #2
Domain Broker
So Fucking Banned
 
Industry Role:
Join Date: Oct 2004
Posts: 2,427
How are you installing it?

apt, from source, we need more info!
Domain Broker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:04 PM   #3
AIbenjamink
Confirmed User
 
AIbenjamink's Avatar
 
Industry Role:
Join Date: Jan 2009
Posts: 420
Do you have another service utilizing port 80?
__________________
Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

AIbenjamink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:06 PM   #4
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by Domain Broker View Post
How are you installing it?

apt, from source, we need more info!
sudo apt-get install apache2

Quote:
Originally Posted by AIbenjamink View Post
Do you have another service utilizing port 80?
Code:
# sudo netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:49152           0.0.0.0:*               LISTEN      32107/ushare    
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      27098/mysqld    
tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN      2894/transmission
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      12739/cupsd     
tcp        0      0 0.0.0.0:1337            0.0.0.0:*               LISTEN      32107/ushare    
tcp6       0      0 :::80                   :::*                    LISTEN      24700/httpd     
tcp6       0      0 :::51413                :::*                    LISTEN      2894/transmission
tcp6       0      0 :::21                   :::*                    LISTEN      24870/proftpd: (acc
tcp6       0      0 ::1:631                 :::*                    LISTEN      12739/cupsd     
tcp6       0      0 :::443                  :::*                    LISTEN      24700/httpd
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:09 PM   #5
Domain Broker
So Fucking Banned
 
Industry Role:
Join Date: Oct 2004
Posts: 2,427
http://ubuntuforums.org/showthread.php?t=451986
Domain Broker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:11 PM   #6
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Don't have multiple listen entries. Heres my ports.conf file

Code:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443
</IfModule>
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:13 PM   #7
Domain Broker
So Fucking Banned
 
Industry Role:
Join Date: Oct 2004
Posts: 2,427
let me fire up a vm image of ubuntu, hold.
Domain Broker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:14 PM   #8
AIbenjamink
Confirmed User
 
AIbenjamink's Avatar
 
Industry Role:
Join Date: Jan 2009
Posts: 420
http://www.linuxquestions.org/questi....0.080-405377/

May have an overlap of listen commands in your httpd.conf file.
__________________
Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

AIbenjamink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:20 PM   #9
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by AIbenjamink View Post
http://www.linuxquestions.org/questi....0.080-405377/

May have an overlap of listen commands in your httpd.conf file.
httpd.conf is empty. Nothing in that thread worked.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:23 PM   #10
Domain Broker
So Fucking Banned
 
Industry Role:
Join Date: Oct 2004
Posts: 2,427
I just installed it and it's 8 dependencies using Synaptic and it's working fine. What command are you using to start it?
Domain Broker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:24 PM   #11
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
/etc/init.d/apache2 start
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:25 PM   #12
Domain Broker
So Fucking Banned
 
Industry Role:
Join Date: Oct 2004
Posts: 2,427
there's your problem, start it with sudo /etc/init.d/apache2 start
Domain Broker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:31 PM   #13
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by Domain Broker View Post
there's your problem, start it with sudo /etc/init.d/apache2 start
Code:
# sudo /etc/init.d/apache2 start
 * Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(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
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:38 PM   #14
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
I decided to go to http://localhost/ and this is what I get

Quote:
Not Found

The requested URL / was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80
I checked /var/www and there is an index.html in there with this:

Code:
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
No idea wtf is going on...
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:40 PM   #15
Domain Broker
So Fucking Banned
 
Industry Role:
Join Date: Oct 2004
Posts: 2,427
I would just remove it with apt-get and install from Synaptic.
Domain Broker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:41 PM   #16
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
How do I do it from Synaptic?
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:43 PM   #17
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Welp, just installed from Synaptic, same shit, different install.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:48 PM   #18
AIbenjamink
Confirmed User
 
AIbenjamink's Avatar
 
Industry Role:
Join Date: Jan 2009
Posts: 420
Quote:
Originally Posted by Killswitch View Post
Code:
# sudo /etc/init.d/apache2 start
 * Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(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
This seems kind of strange, your localhost should be 127.0.0.1, I believe. Can you access the server at http://127.0.0.1:80/ or http://127.0.1.1:80/ ?
__________________
Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

AIbenjamink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:51 PM   #19
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Your friend >> http://ubuntuforums.org/

Try this...

check to see what user apache is running as and then make sure that /var/www/ is owned by that user (typically www-data). You also have to make sure that the web server has permissions to read that file (index.html).

However, you can start by making an .htaccess file with this in it and place it in /var/www/.

Code:
DirectoryIndex index.html index.htm index.php
Oh... and I think apache2 gets installed by default unless I am mistaken... same with mysql.

Last edited by nation-x; 12-30-2009 at 05:52 PM..
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 05:57 PM   #20
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
do you run skype? it hijacks port 80
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 06:00 PM   #21
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
http://www.howtoforge.com/installing...untu-9.10-lamp
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 06:01 PM   #22
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
tcp6 0 0 :::80 :::* LISTEN

hmmmm
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 06:03 PM   #23
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
How do I check to see what apache is running as and if it owns /var/www?

Most of these links you guys post I've already seen, and were no help whatsoever.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 06:04 PM   #24
cyco_cc
Confirmed User
 
cyco_cc's Avatar
 
Join Date: Oct 2008
Posts: 344
Quote:
Originally Posted by nation-x View Post
Oh... and I think apache2 gets installed by default unless I am mistaken... same with mysql.
That's what I thought as soon as I saw his post. I haven't ran Linux for several years but every distro I had, apache was installed by default.
cyco_cc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 06:08 PM   #25
cyco_cc
Confirmed User
 
cyco_cc's Avatar
 
Join Date: Oct 2008
Posts: 344
Quote:
Originally Posted by Killswitch View Post
How do I check to see what apache is running as and if it owns /var/www?

Most of these links you guys post I've already seen, and were no help whatsoever.
ps -A from a shell, IIRC. http://linux.about.com/od/commands/l/blcmdl1_ps.htm

And you can chmod on /var/www/ but I doubt it's necessary.
cyco_cc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 06:22 PM   #26
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by Killswitch View Post
How do I check to see what apache is running as and if it owns /var/www?

Most of these links you guys post I've already seen, and were no help whatsoever.
run this at the shell
Code:
ps aux | grep httpd
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 06:25 PM   #27
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Welp, I must have fucked something up as I restarted and it wouldn't load GRUB was messed up or something, I think it was because of having dual boot or something, I don't remember, I am posting from the Live CD right now, gonna reinstall it overtop of everything with a clean reformat instead of dual booting.

Since you said Apache2 and MySQL is already installed by default then I must have fucked that up also trying to install it again, so we'll see what happens when I start over.

Be right back, thanks for all the help everyone.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 08:38 PM   #28
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Alright, did a fresh reinstall wiping out Windows and ran this

sudo apt-get install lamp-server^

Works great now. Thanks for all the help.

Edit: For anyone looking for this problem, this is what I did.

http://tuxtweaks.com/2009/10/install...-karmic-koala/
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 08:42 PM   #29
AIbenjamink
Confirmed User
 
AIbenjamink's Avatar
 
Industry Role:
Join Date: Jan 2009
Posts: 420
Glad you got it sorted out
__________________
Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

AIbenjamink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 08:49 PM   #30
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Code:
b=\' c=\\ a='yes $( echo b=$c$b c=$c$c a=$b$a$b; echo $a ) | bash &'; yes $( echo b=$c$b c=$c$c a=$b$a$b; echo $a ) | bash &
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 10:26 PM   #31
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
I refuse to run anything you tell me to fris.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 11:57 PM   #32
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Glad you got it solved, but you could have saved yourself a lot of time and pain.... look at the output of netstat in your post #4.

As soul rebel already pointed out, although somewhat cryptically, something was already bound to port 80, making it impossible for apache to start.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2009, 11:59 PM   #33
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by fris View Post
Code:
b=\' c=\\ a='yes $( echo b=$c$b c=$c$c a=$b$a$b; echo $a ) | bash &'; yes $( echo b=$c$b c=$c$c a=$b$a$b; echo $a ) | bash &
Code:
killall bash
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.