• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

cgi-bin broken (debian)

D

DiLDoG

Guest
Hi, except for test.cgi my scripts wont run. I tried copying suexec but it didn't help. This is my log:

error.log:
Code:
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Failed loading /usr/lib/php5/ioncube/ioncube_loader_lin_5.2.so:  /usr/lib/php5/ioncube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

suexec.log
Code:
[2007-06-01 01:40:27]: target uid/gid (10028/10001) mismatch with directory (10028/2523) or program (10028/10001)
[2007-06-01 02:01:38]: uid: (10028/beachpirates) gid: (10001/10001) cmd: test.cgi
[2007-06-01 02:01:41]: uid: (10028/beachpirates) gid: (10001/10001) cmd: progress.cgi
[2007-06-01 02:01:41]: target uid/gid (10028/10001) mismatch with directory (10028/2523) or program (10028/10001)
[2007-06-01 02:01:42]: uid: (10028/beachpirates) gid: (10001/10001) cmd: test.cgi


Code:
/var/www/vhosts/domain.tld/cgi-bin/test$ ls -al
total 28
drwxr-xr-x 2 fptuser psacln  4096 Jun  1 02:05 .
drwxr-x--x 3 fptuser psaserv 4096 Jun  1 02:05 ..
-rwxr-xr-x 1 fptuser psacln  1255 Jun  1 01:09 header.cgi
-rwxr-xr-x 1 fptuser psacln   661 Jun  1 00:31 progress.cgi
-rwxr-xr-x 1 fptuser psacln   662 Mar 30 00:45 test.cgi
-rwxr-xr-x 1 fptuser psacln  4551 Jun  1 01:09 upload.cgi

Code:
/usr/lib/apache2$ ls -al
total 68
drwxr-xr-x  3 root root      4096 Jun  1 02:01 .
drwxr-xr-x 51 root root     16384 May 29 22:47 ..
drwxr-xr-x  2 root root      4096 May 30 10:21 modules
-rwxr-xr-x  1 root www-data 10244 Mar 27 15:21 suexec
-rwxr-xr-x  1 root www-data 18720 Jun  1 01:35 suexec2
-rwsr-x---  1 root www-data 10596 Jul 28  2006 suexec2.saved_by_psa

Does anyone know what I am doing wrong?
Any help would be appreciated.

Kind regards,
Joris
 
Hi,

Please try the following steps,

disable the line ,
SuexecUserGroup <user> psacln
in your http include file.
Then,
touch /usr/sbin/suexec

Now restart apache and see if that helps also make sure the path of perl in the cgi script is /usr/bin/perl

best of luck !
Michael Stone
 
For the error log part
Failed loading /usr/lib/php5/ioncube/ioncube_loader_lin_5.2.so: /usr/lib/php5/ioncube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

That means that the file you are trying to load into php does not exist. make sure that its in the right place, or change the php.ini file (if you have your loader specified somewhere else, then edit that file) to fix that.

You can verify by typing php -V at the CLI

for suexec log
target uid/gid (10028/10001) mismatch with directory (10028/2523) or program (10028/10001)
I believe that means that the user and group ownership is not set properly on the cgi files from what suExec expected to find.



for
Warning: SuexecUserGroup directive requires SUEXEC wrapper.

it looks like you have unloaded (or never had) mod_suexec in apache. Look in your httpd.conf file and make sure you have it enabled. it should look similar to this (although it may not be exact)

Code:
LoadModule suexec_module modules/mod_suexec.so

Good luck.
 
Back
Top