• 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!
  • 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.

PHP: SuExec not working?

CryoGenID

Basic Pleskian
PHP: suPHP not included?

Hello!

We've just made a quick test-install of the new 8.1.0-Version on a clean CentOS 4.3-Server.

I wonder why Plesk didn't install PHP5 by default?
Well, we'll have to find a way to install that now :-(

But the real problem is this (that problem already occured with Plesk 8.0.1 and should have been solved in this version said the engineers at swsoft. but it obviously isn't :-( ):
When we run php-scripts, they DON'T run as the corresponding domain-user! They run as apache:apache which is wrong.
Because for example Typo3 tries to create directories with apache:apache, and then the FTP cannot access the directories any more and vice versa :-(

Do you possibly know a way of making PHP/Apache run the Scripts as the domain-user?

Thanks for your help!

Best regards,

Chris

P.S.:
We also want the "Spam" for SWSoft-Products out of our expensively bought Products!
 
But then I'd have to change all scripts to contain the "#!/bin/xxx/php", right?
And that would be no option...

Shouldn't SuExec do that (running the script as the domainuser)?
 
Hm.. then I must have gotten the purpose of SuEXEC wrong ;)
So suEXEC only runs CGI-Scripts as the user and group the domain belongs to, right?

Is there another possibility than using suPHP (which was freaking difficult to install and configure for Plesk) to achieve Apache running PHP-Scripts as the domain user the script belongs to?

Thanks again for your help :)
 
So suEXEC only runs CGI-Scripts as the user and group the domain belongs to, right?

Yes, you're right. Refer to apache's docs:

What is suEXEC?

The suEXEC feature -- introduced in Apache 1.2 -- provides Apache users the ability to run CGI and SSI programs under user IDs different from the user ID of the calling web-server. Normally, when a CGI or SSI program executes, it runs as the same user who is running the web server.

Is there another possibility

I guess not. I don't know such way.
 
Re: PHP: suPHP not included?

We've just made a quick test-install of the new 8.1.0-Version on a clean CentOS 4.3-Server.

I wonder why Plesk didn't install PHP5 by default?
Well, we'll have to find a way to install that now :-(

Plesk uses PHP as installed by the OS. Since CentOS 4 comes with PHP 4 you're running PHP 4. Atomic Rocket Turtle has Plesk-compatible PHP 5 packages for Fedora and RHEL/CentOS in his atomic yum channel. Check out the PHP Project page for some more info.

But the real problem is this (that problem already occured with Plesk 8.0.1 and should have been solved in this version said the engineers at swsoft. but it obviously isn't :-( ):
When we run php-scripts, they DON'T run as the corresponding domain-user! They run as apache:apache which is wrong.
Because for example Typo3 tries to create directories with apache:apache, and then the FTP cannot access the directories any more and vice versa :-(

Do you possibly know a way of making PHP/Apache run the Scripts as the domain-user?

It is not necessarily wrong, but it is not what you want. The apache user runs the scripts using mod_php, so any files created are created by apache. To have the scripts run as the domain user you'd have to install suPHP. Searching the forums show people have succesfully done this, but it isn't exactly plug 'n play. It would indeed be nice if Plesk would include this by default.
 
Thanks for your reply :)

Well, then we'll have to install suPHP manually again (which creates a lot of trouble actually but if there's no other possibility...)!

Thanks again :)
 
There's a thread where I explained a bit how to do it

still true what you say, people have been asking for months now so that plesk includes this option and do they listen to us ?
I still cannot understand, in my hosting business, customers feedbacks and ideas are very important things and I really do care about it
 
Back
Top