qwerty

Well-Known Member
Jan 21, 2003
215
2
168
One of our clients installed a script which comes with a .htaccess file with a whole bunch of settings. The following 3 lines prevent the script from running or the directory from being viewable at all

Options -Indexes
Options FollowSymLinks
Options FollowSymLinks -Indexes

It logs the following in the error log:

[Tue Aug 3 18:15:43 2004] [error] [client xxx.xxx.xxx.xxx] Options ExecCGI is off in this directory: /home/username/public_html/scriptdir/index.php

We are using phpSuExec and suexec as well.

Is there any way to get those 3 settings above to work on this server? Anything I try fails .. help would be appreciated
 

Faldran

Well-Known Member
May 28, 2002
135
0
316
Yes, replace those three lines with this one:

Options FollowSymLinks -Indexes +ExecCGI



When you set any of the options, it over-rides the ones in httpd.conf and thus you will have to manually add the ExecCGI to it, to make php work without getting 500 errors.
 

qwerty

Well-Known Member
Jan 21, 2003
215
2
168
Faldran said:
Yes, replace those three lines with this one:

Options FollowSymLinks -Indexes +ExecCGI



When you set any of the options, it over-rides the ones in httpd.conf and thus you will have to manually add the ExecCGI to it, to make php work without getting 500 errors.

Thanks a lot, worked.