• 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

Run PHP as User

tkalfaoglu:
An example:
# cd /var/www/vhosts/domain.tld
# chmod 750 httpdocs
# chown -R :psacln httpdocs
# chown :psaserv httpdocs

So the files and directories in httpdocs usually has :psacln as group, but httpdocs should have :psaserv as group.
 
Many thanks - I have saved many sites from chmod 777 so far..

However, there are many that I forgot that they were using fastcgi..

I was wondering if anyone has an SQL command to list the hostings that are set to use the now-uninstalled fastcgi ?

Many thanks, -turgut
 
Followup on how to set ALL domains to use "apache module" and not fastcgi:

The following command sets all domains to use Apache Module and disables Fastcgi for those domains:

for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/domain -u $i -php_handler_type module -fastcgi false; done
 
hi, i sent this to [email protected] and the mail returned with error and also asked in a ticket without reponse:

Hello, I am thinking about adquiring "Run PHP as User" to secure my customers wordpress sites.
But a question comes up: for those with their sites already running (safe-mode off and upload folders as 777) what do i have to tell them to change?
will it be enough if they put upload folders back to 755?

i don't think i will have problems on new webs, but what will have to be done on already existing webs?

thanks in advance.
 
hi, i sent this to [email protected] and the mail returned with error and also asked in a ticket without reponse:

They should put upload folders to 755 and change files/direcroties owner apache:apache to FTP_USER:psacln.
You could open a ticket in the client area.
Besides, we have a service On Demand Support Engineer ($50.00 USD One Time) which can solve all these problems.
 
Last edited:
The new version 1.4.1 of Run PHP as user is released

Changes:
[+] New configuration to facilitate easy migration to other servers.
[+] Full code optimization.
[+] "Run PHP as User" status of subdomain show error in Plesk 10.4.4 was fixed.
 
Last edited:
The new version 1.4.7 of Run PHP as user is released

Changes:
[+] Templates for vhost.conf with variables have been implemented
[+] Auto testing for CLI has been added
 
Mod_ruid2 is no more in httpd.include file when plesk last updated.

I have Plesk installed on a server and everything was working fine. But since the last update which was done automatically, there were many problems which came up and websites were having permission problem.

When I checked the http.include files in the conf directoy I could see that the last updates did not include:

<IfModule mod_ruid2.c>
RMode Config
RUidGid myuser psacln
</IfModule>

which was present in the old httpd.include files and this is for all the subdomains on the server.

Is there a way where I can incude:
<IfModule mod_ruid2.c>
RMode Config
RUidGid myuser psacln
</IfModule>

automatically in the httpd.include file each time plesk updates itself? Because when it was added to the new httpd.include file, the permission error was resolved. Please help me on this friends. Thanks.
 
I have Plesk installed on a server and everything was working fine. But since the last update which was done automatically, there were many problems which came up and websites were having permission problem.

When I checked the http.include files in the conf directoy I could see that the last updates did not include:

<IfModule mod_ruid2.c>
RMode Config
RUidGid myuser psacln
</IfModule>

which was present in the old httpd.include files and this is for all the subdomains on the server.

Is there a way where I can incude:
<IfModule mod_ruid2.c>
RMode Config
RUidGid myuser psacln
</IfModule>

automatically in the httpd.include file each time plesk updates itself? Because when it was added to the new httpd.include file, the permission error was resolved. Please help me on this friends. Thanks.

It's recommended to keep http.include files always untouched, because any changes can be automatically rewritten by Plesk. Our software "Run PHP as User" can help you manage mod_ruid2 conveniently, safely and efficiently. Last version of our software modifies vhost.conf files, so Plesk updates does not affect mod_ruid2 configuration.

You can create a ticket in Helix Development client area at https://secure.helixdevelopment.com/clientarea.php to get more help.
 
The new version 1.4.9 of Run PHP as User is released

Plesk migrations: It's recommended to upgrade to 1.4.9 on the source server before Plesk upgrade.

Changes:
1.4.8
[+] Added update_all parameter for set_dom.php
[+] All CLI parameters are tested by testing script
[+] Templates for vhost.conf are also tested
[+] Loadmodule is moved from main Apache config to ruid2.conf

1.4.9
[+] Added CLI parameter: set_dom.php status DOMAIN
[+] conf/asuser.conf files are removed, corresponding Include line is removed from vhost.conf
 
renaming domains causes problems

Sometimes I have to rename a domain, say from abc.com to xyz.com. When I do this, run as user gives me troubles.
The conf files are not updated, and httpd would not start as a result of it.. -t
 
Sometimes I have to rename a domain, say from abc.com to xyz.com. When I do this, run as user gives me troubles.
The conf files are not updated, and httpd would not start as a result of it.. -t

Some previous versions had really this issue.
Please update "Run PHP as User" to the newest version 1.4.9.
The installer can be downloaded here.
If you rename domain or subdomain name or system user, Apache confuguration will be updated by event handlers.

You can create a ticklet in Helix Development client area at https://secure.helixdevelopment.com/clientarea.php if you have any questions.

Thanks.
 
This is quality software

This is one of the best pieces of software I ever bought.
..and they are updating it against a moving and closed-up target like PLESK..
-t
 
Hi,

this is really one of the best software enhancements I've ever bought! :)

One question before I update:
Is the extension compatible with Plesk 11.5 and mod_ruid 0.9.8? And also important: Debian 7?


Sincerely,
Ipswise
 
> this is really one of the best software enhancements I've ever bought!
Thank you!

>
Is the extension compatible with Plesk 11.5 and mod_ruid 0.9.8? And also important: Debian 7?
"Run PHP as User" is being tested with this configuration. The results will be reported soon.
 
The new version 1.4.11 of Run PHP as user is released.

[+] Plesk 11.5 is supported

"Run PHP as User" has been modified, because of changing default location of vhost.conf files in Plesk 11.5:
/var/www/vhosts/DOMAIN/conf/ directory is moved to /var/www/vhosts/system/DOMAIN/conf/ .

Download and run "Run PHP as User" 1.4.11 installer to protect your domains in Plesk 11.5+.
 
The new version 1.4.15 of Run PHP as User is released

Changes:
1.4.15
[+] Plesk 11.5: Protected directories permissions are corrected
[+] Plesk 11.5: New cgi-bin location is recognized

1.4.14
[+] asuser_psa_sync.sh is compatible with Plesk 11.5

1.4.13

[+] Bugfix: License check in GUI for Plesk 11.5

1.4.12
[+] GUI for Plesk 11.5 is visible1.4.13
[+] Bugfix: License check in GUI for Plesk 11.5

1.4.11
[+] Plesk 11.5 is supported
 
Last edited:
Back
Top