Help with apache 2.0
Well, I've recently decide to completly leave windows behind, so now I'm doing things to help expand my knowledge with linux, amongst other things.
I've just downloaded apache 2.0 and did the following commands. #./configre #make #make install That got it ready to go (I think so anyway) The apache docs say to alter the httpd.conf file but I don't know anything about it, so if someone could help me out with things like, what to change...things like that. Another thing, I tried the next step in the apache docs which is to run this command #./apachectl start And got this error in return... 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 If anyone could help me out with what I'm doing wrong, things I should do, things I should know, any advise really, It'd be greatly appreciated. By the way, if anyone is wondering I'm using slackware 9.1 and 2.4.22 kernel. Regards, The_Messiah |
Not being an Apache expert, I'd suggest you take a look in the config file and make sure the ip address is specified. That error message makes me think it is trying to bind to an incorrect ip address (0.0.0.0). I think the config line is something like
Listen 192.168.0.5:80 (assuming your IP address is 192.168.0.5) |
httpd.conf is full of helpful comments which are remarkably clear. Just print it out (all 19 pages) and read through it. Also reference the Apache documentation for any details that are not clear (httpd.apache.org/docs-2.0/).
Regarding your problem, it sounds like a problem with a “Listen” directives. If you added any ports for Apache to monitor, you may have added a conflict. In general, you will usually only find one defined Listen Directive (“Listen 80") out of the box. Look at httpd.apache.org/docs-2.0/mod/mpm_common.html#listen for info about Listen directives. |
I took Jordan's advise and changed the ip's, I made them 127.0.0.1.
Then I ran that "./apachectl start" I got no feedback so I went to http://localhost/ and found that I was successful. The page said this-- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. So what I'm asking is where should I go from here, I think running a SSL server would be handy. I'd also like to play around with php. I was also wondering, when I go to http://localhost/ and it shows that test page, where is it getting that from? I can't find it in my apache folder (I might not be looking hard enough) |
Quote:
Quote:
Again, if you want to know more about configuring Apache, start reading through httpd.conf or get detailed help from http://httpd.apache.org/docs-2.0/. |
Quote:
If you have specific questions, I'll be glad to help to the best of my limited ability. WhatsHisName is correct, you must look in your apache config file to find out where the root of your web server is. It's likely under /var/www or I think SuSE might put it under /srv/www ... You can specify this whereever you like but I'd leave it as the default until you know what you are doing thoroughly. I'm glad all is well, good luck. J. |
Quote:
|
If you got the test page, then you have it somewhere. You'll have to look around to find it.
|
All times are GMT -5. The time now is 06:06 PM. |