Jump to content

.pl file runs in shell but Internal Error in Apache?


essjay_d12

Recommended Posts

I have included that and I still get the same error
(13)Permission denied: exec of '/usr/local/koha/intranet/cgi-bin/mainpage.pl' failed

The code I included in config is the following.....
[code]
<Directory "/usr/local/koha/intranet/cgi-bin/">
AddHandler cgi-script .pl
AddHandler cgi-script .pl
</Directory>
[/code]

Any other ideas? or see whats wrong?
I have added a basic html file and it still says permission denied, so it must be a permission problem.

i thought id also let you know the following information... in my httpd.conf  file i include another conf file koha-httpd.conf

within this file we state the virtualhosts - inside this we create a scriptalias for the cgi-bin location
ScriptAlias /cgi-bin/koha/ /usr/local/koha/intranet/cgi-bin/

I was wondering if this would effect the permissions in any way?

  • 2 weeks later...
.htaccess files go into the folder which you want to be affected by settings specified in them. In your case, in the cgi-bin folder.
But it really sounds to me that Apache just can't access this folder, make sure your local permissions are set correctly. Check which user Apache is running as, usually "www" or something similar and change ownership of the files/folder to that user with chown.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.