Guest emetib Posted August 23, 2003 Report Share Posted August 23, 2003 ok, i bought the 9.1 prosuite a while ago. now that i have a server to play with i would like to get mdk's apache going. here's my problem. prometheus/home/chad $ httpd2 -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:* cerberus (/etc/httpd/2.0/conf/vhosts/Vhosts.conf:40) Syntax OK prometheus/home/chad $ httpd2 -t Syntax OK prometheus/home/chad $ httpd2 --help (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 http://cerberus and http://10.0.0.2 Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.1mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.47 OpenSSL/0.9.7a PHP/4.3.1 Server at cerberus Port 80 i'm trying to get virtual hosts going. so that i can have two servers running on here, one for the family, email, recipes, etc. and the other for me, web stuff, ftp, http, etc. now i just put one hostname in now just to get it going. what my problem is though is the 'forbidden'. i need to get access to this before i open up my router for forwarding. my router is set for dhcpd now, the ip for the server is 10.0.0.2. here's some more info- vhosts/Vhosts..- <VirtualHost *> ServerName cerberus ServerPath cerberus DocumentRoot /var/www/html/cerberus ErrorLog /var/log/httpd/cerberus-error_log CustomLog /var/log/httpd/cerberus-access_log common </VirtualHost> i do have a registered domain name, cerberus.cc. i just put the cerberus in for now and will change it later when i forward. when i change the * to the ip address it still doesn't work. the /var/www/html/cerberus is a symlink to where it resides, i have chmod 755 the /cerberus and the /cerberus/pub_html, yet still nothing. /etc/hosts.deny- ALL:ALL EXCEPT 127.0.0.1:DENY /etc/hosts.allow- sshd:ALL httpd:ALL when i comment out the hosts.deny i still get the same message. when i don't have the cerberus in i get the advx server test page. that's even if the hosts.deny is not commented out. i have the security set to higher, i don't know if this is the problem or not, hopefully not. i can get apache going with version 1.3 in debian, and 2.0 in red hat. i would like to use mdk since i bought the thing. if more info is needed just ask. i don't know if this makes any sense or not. i'm getting frustrated with it and i'm not sure how to explain what's up with it since i'm lost right now. thanks. Quote Link to comment Share on other sites More sharing options...
scoopy Posted August 25, 2003 Report Share Posted August 25, 2003 I tried to make sense of this, but I haven't done any virtual servers here, so I can just pass along my $.02 here. First, I would install webmin. This will become a good friend keeping things in order. Second, How are you testing things? From what I know, you would use 127.0.0.1 to test from the same machine; something like 192.168.x.x (or whatever router address you have) to test from another machine on same network; and then your actual IP from outside the network (as long as the correct ports are configured and forwarded through the router ) Seems you got at least the default server going, so you could do something like: /var/www/html/site1/index.html /var/www/html/site2/index.html /var/www/html/site3/index.html and access like this: www.cerberus.com/site1/ www.cerberus.com/site2/ www.cerberus.com/site3/ Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted August 26, 2003 Report Share Posted August 26, 2003 If you have webmin already installed and it won't work (comes with Mandrake), you can uninstall it and then install the newest version from webmin's web site. This will run a config app to allow you to setup webmin correctly.. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 26, 2003 Report Share Posted August 26, 2003 I don't really understand, but anyway, maybe this will help you: When you have a "access forbiden for /" error, or something like that, it often simply is because the location (either URL or filesystem directory) is not declared to be readable in the httpd.conf file. In the best case, all you have to do is to create a index.html file in this location. Else you have to check the whole httpd.conf file. Yves. Quote Link to comment Share on other sites More sharing options...
Guest emetib Posted August 27, 2003 Report Share Posted August 27, 2003 thanks for the replies. i tried webmin from the server actually, said that i needed to enable cookies, so i did, and it still didn't work. so i tried getting there from the workstation, it kept timing out. so who knows on that one. i have the basic, base site, somewhat up and running. now the problem that i'm having is that i want to be able to put in a symlink from /home/site to /var/www/html/site. it won't let me. now each time that i reboot, the settings on the vhost folders keeps changing back to rwx for user only. i can get it up by chmod 755 the folders, yet it would be nice not to have to do this. the pub_html stays at 755 but the main /home/site dir keeps going to 700. and it won't read unless it's 755. also, when i do reboot, the main site has to be told what is up once again. i just have to restart httpd, to get it going, once the machine is up all ready. that's something that doesn't make any sense to me. i think that i'm going to change the security to high, instead of higher, and see if that helps out the problems. i think that it will help out with the symlinks, yes i have it set to followsymlinks in the httpd2.conf. who knows, it's just getting more frustrating with every attempt to get it going how i would like it to be. well, take care. edit: here's one question though. when i do the httpd2 --help and it says that it can't bind to port 80, what's up with that. someone told me that i have to run it as root first and then change it back to apache, but when i change the user and group to root to start it up like that, it won't. it tells me not to do it and then says 'failed'. would someone know how to run as root first to make it bind to 80? is there just a command that i can put behind it to tell it to use root, a different user? thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.