mikelmao Posted July 22, 2009 Share Posted July 22, 2009 Hello, When i start apache and go my my webpage it says: Forbidden You don't have permission to access / on this server. im starting apache2 but it keeps giving me the error: Does anyone know what the problem could be? Note: /etc/apache2/httpd.conf is emty. i dono why but it is. could this be the problem:O? Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/ Share on other sites More sharing options...
trq Posted July 22, 2009 Share Posted July 22, 2009 /etc/apache2/httpd.conf is always empty be default on Debian, your configuration is within /etc/apache2/apache2.conf Can I see the output of... ls -l /var and ls -l /var/www ? Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/#findComment-880068 Share on other sites More sharing options...
mikelmao Posted July 22, 2009 Author Share Posted July 22, 2009 VAR: /var/www/: ALSO: Because of this problem pure-ftpd wont work iether.. MySQL will tho Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/#findComment-880072 Share on other sites More sharing options...
mikelmao Posted July 22, 2009 Author Share Posted July 22, 2009 woops - didnt do -l. now i get: VAR: /var/www/: Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/#findComment-880089 Share on other sites More sharing options...
trq Posted July 22, 2009 Share Posted July 22, 2009 /var/www shouldn't be your servers document root so I'm really not sure why you have so many files in there. We need to see any virtual host configs you have. There within /etc/apache2/vhosts (or similar, I'm not at my servers). Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/#findComment-880099 Share on other sites More sharing options...
mikelmao Posted July 22, 2009 Author Share Posted July 22, 2009 theres nothing with vhost in there. only: apache2.conf conf.d/ envvars httpd.conf mods-available/ mods-enabled/ ports.conf sites-available/ sites-enabled/ test/ i disabled the virtual host settings in apache2.conf tho. cause otherway i get: Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/#findComment-880106 Share on other sites More sharing options...
trq Posted July 22, 2009 Share Posted July 22, 2009 Your current virtual host configs are within sites-enabled. You seem to have a pretty messed up setup though hehe. I think the main issue seems to be that your trying to use /var/www as your document root, where really it should be something like /var/www/sitename (though that should still work). Still, we need to see your virtualhost configs. Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/#findComment-880121 Share on other sites More sharing options...
steviewdr Posted July 23, 2009 Share Posted July 23, 2009 It looks to me like a web control panel is installed ( webmin ). This can hook in scripts and config files into all sorts of places. It will take a bit of time to weed out all the custom configs webmin put in. If you use or used a webmin web control panel for your server, I suggest you google an uninstall how-to for webmin/web control panel. -steve Link to comment https://forums.phpfreaks.com/topic/166919-forbidden-you-dont-have-permission-to-access-on-this-server/#findComment-881141 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.