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?
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.