• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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