Results 1 to 4 of 4
I installed Apache using
Code:
# apt-get install apache2
But I didn't know how to work it, so I went to the apache website, and unpacked apache to /usr/lib/apache/ then ...
- 09-08-2008 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
Can't control Apache
I installed Apache using
But I didn't know how to work it, so I went to the apache website, and unpacked apache to /usr/lib/apache/ then ranCode:# apt-get install apache2
Like it told me to in the instructions, but it gave me this:Code:# /usr/lib/apache/bin/apachectl start
So I decided to check to see what program was using this port so I used netstat (I forgot the actual command), and guess what came up? Apache.Code:httpd: 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 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
So I opened a browser and went to "localhost:80" and a webpage came up that said "It works!" just like apaches suppose to do. So I tried to close apache using:
But this came up:Code:# /usr/lib/apache/bin/apachectl stop
And so I tried opening localhost:80 and it still said "It works!"Code:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName httpd (no pid file) not running
So I decided to remove apache completely:
And it removed one package, but it still works!Code:# apt-get remove apache2
I have no Idea how this is happening, and I have no idea how to shut it down.
- 09-08-2008 #2
the installed service controller should be in /etc/init.d
the config files for apache should also be in /etc, probably under apache2 folder
- 09-08-2008 #3Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
So, what do I do with these files? I want accomplish either of two things: Have control over the apt-get install or use the one I installed. I believe both have their strengths and weaknesses. The apt-geted one is supported by ubuntu, but the one I installed is easy to control, because its all in one file I believe, I actually know what file is being shared on the webserver, and have edited the index.html. And its a newer version, so I'd rather use the one I installed. So how do I get rid of or disable the other one?
- 09-11-2008 #4Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
Ok, I fixed it. I needed to do:
I think thats it, maybe something like that. Anyway I that got rid of the old Apache installation completely. Read my other posts to see what I did exactly.Code:# apt-get autoremove
I'm posting this for people to find this thread if they have the same problem.


Reply With Quote