Reputation: 283
This may sound like a super naive question, but here's the scene:
Now my question is: How do I solve this dilemma? What does the developer mean when he says "owner/group has to be the same one that owns the process that runs PHP".
How can the owner (of the cPanel account?) own the process (what process??) that runs PHP?
FYI: Of course, I got shell access. This is a staging server right now.
Upvotes: 1
Views: 783
Reputation: 839
I assume you enabled SuEXEC for PHP on dedicated server. In this case, different accounts of user will running php with different permission.
You could check by command ps aux | lsphp
. Output example:
jimmy 895363 0.5 0.0 423668 25380 ? S 22:13 0:00 lsphp
jeff 895389 0.6 0.0 423668 25388 ? S 22:13 0:00 lsphp
How to fix permission
Try /scripts/disablefileprotect
, which should restore file permission for all users, set 711 on /home/$user and the mount point.
Upvotes: 1