wordpress, upload, permissions
Announcement
Collapse
No announcement yet.
New Cloudlinux install with CageFS. WordPress installations no longer allow updates
Collapse
X
-
What mode PHP is running now? Could you please show:
Code:/usr/local/cpanel/bin/rebuild_phpconf --current
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
Comment
-
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
-
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
-
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
Comment