Cannot Apply PHP Version to an Account

hub2000

Active Member
Dec 18, 2017
32
5
8
germany
cPanel Access Level
Root Administrator
Hello,
we have an account "diydoo" and i cannot apply another php version on it:

30-09-_2019_11-01-58.jpg

Further information:
groups diydoo gives:
diydoo : diydoo nobody

ls -lah /home/diydoo/public_html/.htaccess gives:
-rw-rw-r-- 1 diydoo nobody 13K Sep 27 19:15 /home/diydoo/public_html/.htaccess

lsattr /home/diydoo/public_html/.htaccess gives:
-------------e-- /home/diydoo/public_html/.htaccess

Some lines our of the group file:
diydoo:x:1003:
nobody:x:99:diydoo
cpanelsuspended:x:1001:



/etc/redhat-release:CentOS Linux release 7.7.1908 (Core)
/usr/local/cpanel/version:11.82.0.16
/var/cpanel/envtype:standard
CPANEL=release

There seems to be a problem with an old suspended account.
I don't know how to proceed...

hub
 
Last edited:

LucasRolff

Well-Known Member
Community Guide Contributor
May 27, 2013
141
85
78
cPanel Access Level
Root Administrator
What's the permissions on the users homedir diydoo as well as public_html? It might be that the permissions on those directories are preventing from changing the permissions on the .htaccess file.
 

hub2000

Active Member
Dec 18, 2017
32
5
8
germany
cPanel Access Level
Root Administrator
Hello,

its

drwxr-x--- 26 diydoo nobody 4096 Oct 3 09:10 public_html

drwx--x--x 25 diydoo diydoo 4096 Oct 2 18:30 diydoo

We did a transfer of the whole account to a new server, its the same behaviour as on the source server.

Interesting:
If i add a new subdomain to diydoo, then i can successfully switch php version for this subdomain.

hub
 
Last edited:

hub2000

Active Member
Dec 18, 2017
32
5
8
germany
cPanel Access Level
Root Administrator
Ok, its solved:

The .htaccess file (as specified in public_html or in public_html/addondomain/ folder) MUST have permission ACCOUNT/ACCOUNT and not ACCOUNT/NOBODY.

We need for running of the software ACCOUNT/NOBODY but when switching php version we have temporarely switch to ACCOUNT/ACCOUNT.

hub