• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Disable suexec Per Domain

D

dndco

Guest
I need to be able to access cgi between domains.

One particular file located 'centrally' in the cgi-bin on one vhost domain. I would like to be able to have other vhost domains be able to access it.

I have searched around and found conflicting solutions using.

# <IfModule mod_suexec.c>
# SuexecUserGroup userid psacln
# </IfModule>

One says create a vhost.conf another says say create and httpd.include and then

chattr +i httpd.include

I have pretty much no experience with Plesk or Linux. I would appreciate any assistance anyone can provide.

Thanks.
 
While both of those solutions would work the vhost.conf is the best way to go.

You also then need to run
Code:
/usr/local/psa/admin/bin/websrvmng -u --vhost-name=<domain>
/sbin/service httpd restart
 
O.k. this dis not work. In fact it made thing worse. None of the vhost domains on the server are working anymore.

I did the following;

Created vhost.conf file in the conf directory of one of the domains.

The vhost.conf file contained:

# <IfModule mod_suexec.c>
# SuexecUserGroup userid psacln
# </IfModule>

I ran;

/usr/local/psa/admin/bin/websrvmng -u --vhost-<domain name>

Followed by;

/sbin/service httpd restart

Upon reboot I tried to access the site I added the vhost.conf to. None of the pages will display.

I also tried to access a different site, same problem.

How do I fix this?
 
Whoops. I meant I ran

/usr/local/psa/admin/bin/websrvmng -u --vhost-name=<domain name>

/sbin/service httpd restart
 
O.k. I fixed the vhost so that they are working again by using;

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain name>

So I am back to square one with regard to the suexec work around.

I'd appreciate any additional feedback/direction.

Thanks!
 
I went ahead and tried adding the following;

# <IfModule mod_suexec.c>
# SuexecUserGroup userid psacln
# </IfModule>

to the httpd.include file of one of the vhost domains.

The result was once again, all vhost domains stopped working.

I removed the code, they started working again.

For the record I am on Plesk 8.0.1
 
Back
Top