LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache server (https://www.linuxquestions.org/questions/linux-newbie-8/apache-server-458946/)

aenguillo 06-27-2006 07:30 PM

apache server
 
i've got another problem. it's on a webserver. i'm using apache 2.0.54 on a fedora core 4. things were running smoothly until there came a time that i have to upload new files. i don't upload using ftp. i upload files manually. i transfer html pages using a flash disk or a cd-rw. before, after i finish copying my new pages to the server, i could easily view them. got no problem with that. but lately, when i try to copy new pages in a new directory and view them in the web i get this Forbidden message:

You don't have permission to access /new_directory/directoryname2/page.htm on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.



but i found out that when i use an existing directory (i put my new pages in an existing directory)and try to access that page, it would work.

please help me... what's wrong with the server? what should i do?

thanks guys...

theNbomr 06-27-2006 07:50 PM

What is the owner:group and permissions of the afflicted directories and files? What is the uid of the apache server process?

--- rod.

gilead 06-27-2006 08:15 PM

Are you using selinux? If so, the thread here at http://www.linuxquestions.org/questi...99#post2291199 may be useful. As well as the restorecon command, it also refers to the chcon command.

aenguillo 06-27-2006 09:12 PM

thanks theNbomr and gilead. the restorecon command worked.
thanks so much guys. :)


All times are GMT -5. The time now is 02:03 AM.