ShineDesign Posted September 14, 2004 Report Share Posted September 14, 2004 So I changed my DocumentRoot in my httpd2.conf and httpd2-perl.conf to point to /var/www/data, as that is the folder all my perl scripts are pointing to within my website. Though, now whenever I try to access my company website http://www.componentconcepts.com, it gives a 403 Forbidden error message. All permissions are the exact same for /data as they were for /html, which was the original DocumentRoot (and worked also, only the perl scripts didn't of course). What is going wrong here? Quote Link to comment Share on other sites More sharing options...
fissy Posted September 14, 2004 Report Share Posted September 14, 2004 (edited) first, does the user 'apache' have access to that folder? IF so try adding this somewhere at the bottom of the config file: <Directory /var/www/data/> order allow,deny allow from all </Directory> You shouldn't *really* need that, but just try it for now while i think of a proper fix edit: sorry discount my first sentence, i skimread Edited September 14, 2004 by fissy Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted September 14, 2004 Author Report Share Posted September 14, 2004 User Apache should have access, as the permissions are set as (from the GUI) User (show entries, write entries, enter) Group (show entries, enter) Others (show entries, enter) I added the directory command at the bottom of my httpd2.conf file, still no luck. Quote Link to comment Share on other sites More sharing options...
fissy Posted September 15, 2004 Report Share Posted September 15, 2004 perl scripts need execute permissions? i don't know, only ever use php. is there an index.html file in there you're trying to access? Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted September 15, 2004 Author Report Share Posted September 15, 2004 perl scripts need execute permissions? i don't know, only ever use php. is there an index.html file in there you're trying to access? The perl scrips are looking for and returning results to display on the page from /data, so that's why I need the root to be /var/www/data. There is an index.html file, yes. There's alot of other files as well :) hehe. Quote Link to comment Share on other sites More sharing options...
fissy Posted September 15, 2004 Report Share Posted September 15, 2004 (edited) Not Found The requested URL /index.html was not found on this server. <<<apache advertising removed>>> Apache doesn't think there is anything in there, which is possibly why you get the 403. It may see that there is no index.html, then try to auto index (display a directory listing), find its not allowed and so show the 403. i don't really know though, i've just got back from the pub edit: you might wish to get rid of all that advertising information about perl and openssl etc, its a mild security hazard Edited September 15, 2004 by fissy Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted September 15, 2004 Author Report Share Posted September 15, 2004 haha, no problem. There are a ton of files in that directory though, including index.html. I'm not sure why it's not finding it. Weird. Quote Link to comment Share on other sites More sharing options...
fissy Posted September 15, 2004 Report Share Posted September 15, 2004 have you restarted apache since altering the configuration? Apart from that, the log files and waiting for someone with a clue to come along are your best bets. Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted September 15, 2004 Author Report Share Posted September 15, 2004 Ok, got it all to work. The resolution was easy...I was running apache under my normal user, which for some reason didn't have permission (even though it says it does) to access that. So I ran apache after su'ing to root, and it works. Now all I gotta do is fix the dang internal server error when viewing the products page! Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted September 15, 2004 Author Report Share Posted September 15, 2004 Ok...I restarted the server and now my 403 forbidden error is back. I restarted the apache as root, and the 403 is still there. I'm stumped now, any ideas? Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted September 15, 2004 Author Report Share Posted September 15, 2004 Anybody know how this can be fixed? Currently, if I go to 127.0.0.1 locally, it gives the same forbidden error. (through Konqueror, running from root) Though if run "konqueror /var/www/data/index.html" the site comes up just fine. My permissions are set to allow read and execute access in user, group and other. All permissions are fine, the apache server was started from root, I can't think of anything else that could be causing this. Anybody? Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted September 16, 2004 Author Report Share Posted September 16, 2004 Turns out "DocumentIndex index.html" was not set. Shows up fine now. 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.