Forum Moderators: phranque

Message Too Old, No Replies

SELinux: Getting "forbidden" error when running CGI files

         

haimanti

9:32 am on Mar 15, 2008 (gmt 0)

10+ Year Member



Hello All,

I am using Apache 2.0 on Fedora Core 7 system. I have created directories under /var/www/vhost/example.com for making virtual host. Under example.com i created some needed directories. I have created a .cgi file scripted by python and store it in cgi-bin folder. I have checked the chmod of the file & folders which are read, write & executable. Also checked SELinux file context. But still I am getting FORBIDDEN ERROR. I don't know what else i should do to run CGI files.
Please help me out. I need it to be fixed very urgently.

Thanks
Haimanti

[edited by: jdMorgan at 5:53 pm (utc) on Mar. 17, 2008]
[edit reason] example.com [/edit]

phranque

10:32 am on Mar 15, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], Haimanti !

it might be that your server is set up to prevent directory browsing and you have a directory-type url without specifying a DirectoryIndex.

haimanti

5:39 am on Mar 17, 2008 (gmt 0)

10+ Year Member



Thanks for the reply. But can you please specify it more clearly?