essjay_d12 Posted January 29, 2007 Share Posted January 29, 2007 I have a perl file that runs fine when executed in shell, but not when i try to open it in firefox. Is this a problem with apache config?error logs read .... Permission deniedthanksd Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 29, 2007 Share Posted January 29, 2007 Yes - it is a problem with your apache config.You will need to add something along the lines of:<Directory /path/to/your/cgi-bin/>AddHandler cgi-script .cgiAddHandler cgi-script .pl</Directory>-steve Quote Link to comment Share on other sites More sharing options...
essjay_d12 Posted January 31, 2007 Author Share Posted January 31, 2007 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? Quote Link to comment Share on other sites More sharing options...
essjay_d12 Posted January 31, 2007 Author Share Posted January 31, 2007 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.confwithin this file we state the virtualhosts - inside this we create a scriptalias for the cgi-bin locationScriptAlias /cgi-bin/koha/ /usr/local/koha/intranet/cgi-bin/I was wondering if this would effect the permissions in any way? Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 31, 2007 Share Posted January 31, 2007 Well - its not a great idea - but chmod 777 the file temporairly to test and see.-steve Quote Link to comment Share on other sites More sharing options...
essjay_d12 Posted February 12, 2007 Author Share Posted February 12, 2007 chmod 777 and still i get internal server error! Quote Link to comment Share on other sites More sharing options...
steviewdr Posted February 12, 2007 Share Posted February 12, 2007 Put the following in a htaccess file:AddHandler cgi-script .plOptions +ExecCGI-steve Quote Link to comment Share on other sites More sharing options...
essjay_d12 Posted February 20, 2007 Author Share Posted February 20, 2007 How do I go about doing that - I have put it in the httpd config file, but how and where to I put a htaccess file? Quote Link to comment Share on other sites More sharing options...
daq Posted February 21, 2007 Share Posted February 21, 2007 .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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.