Skip to main content

After update to EA4 and cPanel/WHM 78, permission issues between sites and moving/copying files

Comments

6 comments

  • zeropsi
    I forgot to mention these items that may help trouble shoot: Site is using:
    • PHP 5.5 (ea-php55)
    • DSO PHP Handler
    • CENTOS 6.10
    • cPanel v78.0.47
    When I run ls -la at /home/site2/public_html/uploads I get this: drwxr-xr-x 12 site2 site2 12288 Mar 30 13:39 ./ drwxr-x--- 15 site2 nobody 4096 Mar 31 13:44 ../ drwxr-xr-x 10 site2 site2 4096 Feb 21 2019 0/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 1/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 2/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 3/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 4/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 5/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 6/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 7/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 8/ drwxr-xr-x 12 site2 site2 4096 Feb 20 2019 9/ -rw-r--r-- 1 site2 site2 25 Feb 20 2019 index.php
    0
  • cPanelLauren
    Hello,
    It looks like my last thread was deleted, so I will try and be more specific with this thread.

    No, you just didn't wait for it to be moderated. All new users to the forums are moderated when they post for a time, to curb spam posts. This is noted when you submit the thread as well. Is this the same PHP Handler/Configuration you had prior to the move?
    0
  • zeropsi
    Hello, No, you just didn't wait for it to be moderated. All new users to the forums are moderated when they post for a time, to curb spam posts. This is noted when you submit the thread as well. Is this the same PHP Handler/Configuration you had prior to the move?

    My apologies about that, I just saw that my posts were at 0, so I assumed. I am not sure what the config was prior to the migration. However, I have found that with changing the directories permissions to 0777, the script will execute as intended.
    0
  • cPanelLauren
    However, I have found that with changing the directories permissions to 0777, the script will execute as intended.

    Right, this is most likely the result of a configuration change. It'd be important to know what you were running previously. Is there a specific purpose for using DSO? Any issue with ruid2 + cgi or suPHP?
    0
  • zeropsi
    Right, this is most likely the result of a configuration change. It'd be important to know what you were running previously. Is there a specific purpose for using DSO? Any issue with ruid2 + cgi or suPHP?

    We had originally tried suPHP and that would not let us access the files from one account to the other. Changing the PHP handler to DSO did allow for us to access the files from site1 and then start to copy them to site2, once the permissions were changed to 0777. I am going to see if we can track down the previous set-up on account.
    0
  • zeropsi
    Additionally, functions like move_uploaded_files are no longer working because of the permissioning issues. It appears that I need to keep all directories at 0777 in order for script based file and folder creation to work.
    0

Please sign in to leave a comment.