Skip to main content

CGI problem WHM / cPanel running CGI script

Comments

7 comments

  • cPanelMichael
    Hello, What's the exact entry you see in /usr/local/apache/logs/error_log when the browser shows a 500 error message? Thank you.
    0
  • Wrafico
    Hello. I happend to have a similar issue trying to install an old Miva Empresa with suExec. I'm getting similar problems Did you ever solved this? How? When I add this (AddType application/x-miva .mv" and "Action application/x-miva /cgi-bin/miva) to the virtualhost conf, the test file diag.mv downloads. When I remove them the page shows a 500 error. If a add an apache handler directly in cpanel: either server-parsed o cgi-script with .mv extension, I get the file parsed partially, but the test doesn't work and the URL's in the links provide come out broken, like this: domain.com/&[%20s.documenturl%20]Test=sysvars">domain.com/&[ s.documenturl ]Test=sysvars Instead of like this: domain.com/diag.mv?Test=sysvars Any information will be greatly apreciated since I'm no expert in this matters eventhough I must get this up an running in a new server urgently. Thanks in advance.
    0
  • cPanelMichael
    When I remove them the page shows a 500 error.

    What do you see in /usr/local/apache/logs/error_log when the browser shows a 500 error message? Thank you.
    0
  • Per Meistrup
    Sorry for not being back (I'm the original OP, I did check first days, but as no reply I thought I would get an email notification if answered). My Error_log just says: [Sat May 30 11:24:18 2015] [error] [client 1.0.222.75] suexec failure: could not open log file [Sat May 30 11:24:18 2015] [error] [client 1.0.222.75] fopen: Permission denied [Sat May 30 11:24:18 2015] [error] [client 1.0.222.75] Premature end of script headers: miva [Sat May 30 11:24:18 2015] [error] [client 1.0.222.75] File does not exist: /home/helenettet/public_html/500.shtml Also checked Suexec_log: [2015-05-30 09:06:37]: uid: (503/helenettet) gid: (514/helenettet) cmd: miva [2015-05-30 09:06:56]: uid: (503/helenettet) gid: (514/helenettet) cmd: diag.mv [2015-05-30 09:06:56]: file has no execute permission: (/home/helenettet/public_html/cgi-bin/diag.mv) I have searched numerous forums around the web for an solution. Poster "Wrafico" above, seemed to have the same problem, and I today only found his posting in a Miva-forum of April 30th and till May 4th, where Miva says "Empresa 3 will still run on modern OS's, at least through CentOS 6; haven't tested on 7. It will even run on 64-bit," and kindly inform the simple 4-step set-up running the binary in the CGI-bin: 1) Put the 'miva' binary in the site's cgi-bin folder. 2) Create a miva.conf along side the binary in the cgi-bin folder with the following base config: securityoptions=7 redirectonly=yes dnslookup=off validextensions=.mv mivaroot=/path/to/httpdocs stdmodedatadir=/path/to/mivadata 3) Add the following lines to that site's apache config: AddType application/x-miva .mv Action application/x-miva /cgi-bin/miva 4) Restart apache That's the same procedure I have been following (CentOS6) and also used in 2011. Source:
    0
  • cPanelMichael
    Hello, What PHP handler are you using (e.g. DSO, suPHP)? Thank you.
    0
  • Per Meistrup
    suPHP
    0
  • cPanelMichael
    You could try switching to DSO with Apache Mod_Ruid2:
    0

Please sign in to leave a comment.