![]() |
|
Guide WordPress on CloudPanel Asks for FTP Details or Can't Update Plugins: Fix - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: CloudPanel (https://adminsforum.com/Forum-cloudpanel) +---- Forum: CloudPanel Guides & Tutorials (https://adminsforum.com/Forum-cloudpanel-guides-tutorials) +----- Forum: CloudPanel WordPress Guides (https://adminsforum.com/Forum-cloudpanel-wordpress-guides) +----- Thread: Guide WordPress on CloudPanel Asks for FTP Details or Can't Update Plugins: Fix (/Thread-guide-wordpress-on-cloudpanel-asks-for-ftp-details-or-can-t-update-plugins-fix) |
WordPress on CloudPanel Asks for FTP Details or Can't Update Plugins: Fix - JAY - 10-23-2026 WordPress on CloudPanel asks for FTP details or can't update plugins: fix You click "Update" or "Install plugin" and WordPress asks for an FTP hostname, username and password. Or updates fail with "Could not create directory" or "Installation failed". On CloudPanel, this almost always means WordPress can't write to its own files because they belong to the wrong user. Why it happens CloudPanel runs each site's PHP as that site's own user (the site user you chose when creating the site). WordPress can only update itself if its files belong to that user. Files you uploaded or extracted as root (over SSH, SFTP as root, or with Code: unzipStep 1: Check who owns the files Code: ls -la /home/siteuser/htdocs/example.com | head
find /home/siteuser/htdocs/example.com ! -user siteuser | headStep 2: Give the files back to the site user As root: Code: chown -R siteuser:siteuser /home/siteuser/htdocs/example.comCode: su - siteuser
cd ~/htdocs/example.com
clpctl system:permissions:reset --directories=770 --files=660 --path=.Never use Code: chmod 777Reload the plugins page; the FTP prompt should be gone. Step 3: Stop it from coming back
Still asks for FTP after fixing ownership? Add this line to Code: wp-config.phpCode: define('FS_METHOD', 'direct');Other reasons plugin installs fail "The uploaded file exceeds the upload_max_filesize directive." Big plugin or theme zips need a higher PHP upload limit. Raise Code: upload_max_filesizeCode: post_max_size"Could not create directory" with correct ownership. The disk may be full: Code: df -h /Update starts, then the site shows "Briefly unavailable for scheduled maintenance". A failed update left a Code: .maintenanceCode: rm /home/siteuser/htdocs/example.com/.maintenanceUpdates time out. Large updates on a slow server can hit PHP time limits. Run them with WP-CLI instead, which has no web timeout: Code: wp plugin update --all
wp core updateSources: WordPress: file permissions ยท WordPress: FS_METHOD More CloudPanel troubleshooting
Applies to CloudPanel v2 on Ubuntu and Debian, October 2026. In the commands, replace Code: example.comCode: siteuser |