• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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