Skip to main content

Internal Server Error 500 - subprocess exited with status 13

Comments

6 comments

  • cPanelMichael
    [quote="Kheang, post: 1633432">The plugin appears in the WHM and when I clicked on it I got the error access denied.
    As for the first error message that occurred, what was output to /usr/local/cpanel/logs/login_log? Thank you.
    0
  • Kheang
    [quote="cPanelMichael, post: 1633541">As for the first error message that occurred, what was output to /usr/local/cpanel/logs/login_log? Thank you.
    Sorry the first error no longer appears because I went an registered it in AppConfig. The first error had a message saying i could not access the script because it wasn't registered or the option to allow unregistered scripts wasn't set to On. That's why I tried registered it with AppConfig. Is this how it should be done? The .cgi first and then through AppConfig? Or it's one or the other only? Also if I want to remove it from AppConfig what do i do? Do I just delete the .conf file from the apps folder? I still get that error 500 though.
    0
  • Kheang
    [quote="cPanelMichael, post: 1633541">As for the first error message that occurred, what was output to /usr/local/cpanel/logs/login_log? Thank you.
    I just looked again and I saw this: 198.48.203.84 - root [04/30/2014:18:05:57 -0000] "GET / HTTP/1.1" DEFERRED LOGIN whostmgrd: security token missing 198.48.203.84 - root [04/30/2014:18:17:38 -0000] "GET / HTTP/1.1" DEFERRED LOGIN whostmgrd: security token missing I guess I am missing something in the .cgi script? [COLOR="silver">- - - Updated - - - Ok nevermind its only when I try to access /cgi/simplecommerce/index.php directly when logged in. But the login log doesn't show anything when I type the /cgi/addon_sc.cgi directly. Only that error in error_log [COLOR="silver">- - - Updated - - - It still gives the same error when I remove all the code and put a simple print line with the configuration on top.
    0
  • Kheang
    OK so I figured out what was the problem! My cgi script was fine, I only needed to add a newline at the end of the file. (weird) Now it does what it should do but brings me this error: HTTP error 401 cgi/simplecommerce/index.php WHM is configured to disallow execution of unregistered applications when logged in as root or a reseller with the "all" ACL. To enable this functionality you must do one of the following: Register this addon using /usr/local/cpanel/bin/register_appconfig ([url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/AppConfig]AppConfig), Enable the "Allow apps that have not registered with AppConfig to be run when logged in as root or a reseller with the "all" ACL in WHM" option in "Tweak Settings", or add permit_unregistered_apps_as_root=1 to /var/cpanel/cpanel.config, and run /usr/local/cpanel/etc/init/startcpsrvd I have registered the plugin in AppConfig using my simplecommerce.conf: name=simplecommerce # This is the name that will be displayed for your application in WHM. displayname=Simple Commerce Admin # service that will serve this app service=whostmgr # Physical path: /usr/local/cpanel/3rdparty/Foo.php # Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php url=/cgi/addon_simplecommerce.cgi # This is a comma-separated list of ACLs. The logged-in user must have at least one of these ACLs in order to access your application at the URL(s) provided. acls=all After that I tried running the plugin again and it still gave me that error. What am I missing in the conf file to make it work? Or do i absolutely have to turn the security features on?
    0
  • Kheang
    Ok i figured out my problem here too. I had to put all the url's of my scripts in the .conf file or it would not allow me to execute them.
    0
  • cPanelPeter cPanel Staff
    Hello, Glad it's working for you. Thank you for updating this thread with the solutions.
    0

Please sign in to leave a comment.