![]() |
Run CGI Script from cgi-bin 500 error - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: Run CGI Script from cgi-bin 500 error (/thread-6783.html) Pages: 1 2 |
Run CGI Script from cgi-bin 500 error - mwlake - 05-22-2009 07:20 PM Hi All, Most likely I missed something simple but I am having a real Headache getting a simple hello.cgi script to run from the cgi-bin/ folder of my domain. Yes, Chmod is set 755, uploaded using ascii. From command-line in ssh no syntax errors in script. In my browser, when I type in the address field: http://www.domainname.com/cgi-bin/hello.cgi I always get 500 error - Internal Server Error. I assume ISPCP is blocking this for security reasons, the question is how to unblock. ISPCP 1.0.0 Omega build:20090225 Codename:Priamos Hope someone can help RE: Run CGI Script from cgi-bin 500 error - BeNe - 05-22-2009 07:30 PM Quote:Yes, Chmod is set 755, uploaded using ascii.You must also set the correct "vu20XX" User and Group for this file. Greez BeNe RE: Run CGI Script from cgi-bin 500 error - mwlake - 05-22-2009 09:08 PM BeNe, Thanks for your reply. cgi file is set for proper: chmod:755 chown:vu20xx chgrp:vu20xx and I'm still getting 500 error I had to delete and mkdir:cgi-bin maybe permissions for the cgi-bin/ folder are wrong. What should they be? chmod:??? chown:?? chgrp:?? cgi-bin/ also 755 and site ftp owner and group vu20xx should work but doesn't. I'm using a 64bit Ubuntu 8.04 LTS. mod_fcgi on ISPCP. Maybe during installation there were some silent errors, because the setup went smooth with no visible errors. Let me know what you'd suggest, please. I'll add your answer to my Knowledge database. RE: Run CGI Script from cgi-bin 500 error - BeNe - 05-22-2009 09:46 PM Are there any Log entries about the Error ? Check you default.error, suexec.log Quote:had to delete and mkdir:cgi-bin maybe permissions for the cgi-bin/ folder are wrong. What should they be? chmod:??? chown:?? chgrp:??ispCP itself creates this Folder, so there is no need to delete it. For example: Code: drwxr-xr-x 2 vu2002 vu2002 4096 Dec 18 12:20 cgi-bin Greez BeNe RE: Run CGI Script from cgi-bin 500 error - ephigenie - 05-26-2009 06:50 PM take a look in into your /var/log/apache2/error.log or the error-log for you specific domain. I'm quite sure you'll find the error there. mod_fcgi is for fastcgi and not for normal cgi-bin things.. Therefor you'll have to use mod_actions ... RE: Run CGI Script from cgi-bin 500 error - cmendes0101 - 12-17-2009 12:14 PM I'm also having this issue too. Everything seems correct. The apache logs do not show anything besides that a 500 came up RE: Run CGI Script from cgi-bin 500 error - motokochan - 12-17-2009 12:46 PM First, have you confirmed that this properly handles CGI mode? You can't just spit back raw output. The script has to return certain headers back in the output to Apache or you'll get a 500-series error. The site error logs are the best thing to check, they will usually have more detail. At least for me, the logs are in /var/log/httpd/users/. Filename format is domain-error.log. Also, check the suexec log, which for me, is at /var/log/httpd/suexec.log. RE: Run CGI Script from cgi-bin 500 error - cmendes0101 - 12-18-2009 02:40 AM Ok I found a different log that shows an actual error at /var/log/apache2/users/DOMAIN-error.log Code: [Thu Dec 17 04:26:32 2009] [error] [client 173.58.48.72] Symbolic link not allowed or link target not accessible: /var/www/virtual/DOMAIN/cgi-bin/mt This is for a different error RE: Run CGI Script from cgi-bin 500 error - kilburn - 12-18-2009 02:53 AM What does suexec.log say? Additionally, cgis should have 0750 or 0700 permissions, not 0755... RE: Run CGI Script from cgi-bin 500 error - cmendes0101 - 12-18-2009 06:57 AM (12-18-2009 02:53 AM)kilburn Wrote: What does suexec.log say? Additionally, cgis should have 0750 or 0700 permissions, not 0755... suexec.log does not have anything related in there. What permission should the actual cgi-bin folder have? I set it to 0750 I checked the other logs again now im getting this: [Thu Dec 17 20:47:30 2009] [crit] [client 173.58.48.72] (13)Permission denied: /var/www/virtual/chrismendes.us/cgi-bin/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable There is no .htaccess file in there. Should there have been? No other domain has htaccess either. |