Announcement

Collapse
No announcement yet.

New Cloudlinux install with CageFS. WordPress installations no longer allow updates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New Cloudlinux install with CageFS. WordPress installations no longer allow updates

    wordpress, upload, permissions

  • #2
    New install of CloudLinux on server with CageFS. Immediately after installation WordPress users are no longer able to update plugins without using FTP. What would cause this?

    Comment


    • #3
      BTW disabling and enabling CageFS makes no difference.

      Comment


      • #4
        What mode PHP is running now? Could you please show:

        Code:
        /usr/local/cpanel/bin/rebuild_phpconf --current
        If you see PHP5 SAPI = dso then that is the issue. Will explain a bit more.

        When you press update wordpress from admin page it (wordpress/apache) tries to download an update and rewrite a lot of files in wordpress directory. Apache/php should have write permissions to /home/username/public_html/ directory to do it . When php is in DSO mode every PHP process is owned by
        obody user which do not have write permissions to users public_html/ . Also, DSO is not recommended as it do not support CageFS and as a result PHP-Selector.

        All what you have to do to fix the issue is to switch php to suphp, this way:

        Code:
        /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp enabled
        That is the part of cpanel, most probably their default setup.

        Comment


        • #5
          ruid2
          PHP 5.4.43 (cli) (built: Jul 21 2015 20:53:32)
          Copyright (c) 1997-2014 The PHP Group
          Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
          with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
          with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
          with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
          with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
          with Suhosin v0.9.36, Copyright (c) 2007-2014, by SektionEins GmbH

          The last time I ran /usr/local/cpanel/bin/rebuild_phpconf --current it disabled ruid2 which forced me to recompile php altogether.

          Comment


          • #6
            BTW we have plenty of servers using ruid2 with cloudlinux with no problems.

            Comment


            • #7
              Overall cagefs/php-selector do not work with RUID2 , more: http://docs.cloudlinux.com/compatiblity_matrix.html

              As of now be sure php user is same as the owner of files in public_html , a simple script to show a user:

              Code:
              <?php echo exec(whoami); ?>

              Comment


              • #8
                Yes, shows the username fine.

                Comment


                • #9
                  So far everything looks to be fine. Please create a ticket in our support system so we could check issue in place. Also, provide us with access to wordpress admin so we could test updating, or setup another wordpress installation for us to test.

                  Comment

                  Working...
                  X