WordPress

To perform the requested action, WordPress needs to access your web server - Please enter your FTP credentials to proceed - If you do not remember your credentials, you should contact your web host

Updated November 2026 11,433 views 3 min read
WordPress | Updated November 2026

If WordPress asks you "To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed," it means WordPress cannot write to its own files directly. This happens when file ownership does not match the PHP process, and there is a simple fix.

01. Why This Happens

WordPress checks whether it can create a temporary file in the wp-content directory. If the ownership of the WordPress files does not match the user running PHP, WordPress assumes it does not have write access and falls back to asking for FTP credentials.

On Ultra Web Hosting servers, PHP runs via LSAPI as your cPanel user, so direct file writing works correctly. WordPress's ownership check is sometimes too cautious, triggering the FTP prompt even when direct writing would work fine.

02. How to Fix It

Method 1: Edit wp-config.php (Recommended)

  1. Open wp-config.php in cPanel File Manager or via FTP
  2. Find the line that says /* That's all, stop editing! */
  3. Add this line above it:
define('FS_METHOD', 'direct');
  1. Save the file

WordPress will now write files directly without asking for FTP credentials. Plugin installs, updates, and theme changes should all work immediately.

Method 2: Fix File Ownership

If you have SSH access, you can fix the file ownership so WordPress's check passes naturally:

chown -R $USER:$USER ~/public_html

This sets all files in your website directory to be owned by your cPanel user. After this, WordPress should detect that it has direct write access without needing the FS_METHOD constant.

03. Check Directory Permissions

If FS_METHOD is set to direct and updates still fail, the directory permissions may be too restrictive. WordPress needs these permissions:

  • Directories: 755
  • Files: 644
  • wp-content: 755
  • wp-content/uploads: 755
  • wp-content/plugins: 755
  • wp-content/themes: 755

Via SSH:

find ~/public_html -type d -exec chmod 755 {} \;
find ~/public_html -type f -exec chmod 644 {} \;
Tip

Do not set files or directories to 777. This is a security risk on shared hosting and is not necessary on Ultra Web Hosting since PHP runs as your user. If a plugin or theme asks you to set 777 permissions, FS_METHOD direct plus 755/644 permissions is the correct solution.

Still Being Asked for FTP Credentials?

If the FTP prompt persists after adding FS_METHOD, open a ticket and we will check file ownership on your account.

Open a Support Ticket

Frequently Asked Questions

Why does WordPress ask for FTP credentials to install or update?

It means WordPress cannot write to its own files directly, so it falls back to asking for FTP. On our hosting this is almost always a file-ownership or permissions issue rather than something you need FTP for. There is a simple fix.

How do I stop WordPress from asking for FTP credentials?

Add define('FS_METHOD', 'direct'); to your wp-config.php, which tells WordPress to write files directly. This works when file ownership is correct, which it is on our hosting, so updates and installs then proceed without the FTP prompt.

Is it safe to add FS_METHOD direct to wp-config?

Yes, on our hosting. Because each account is isolated under its own user, direct file writes are safe and are the normal method. The FTP prompt is just WordPress's fallback when it cannot confirm it can write; FS_METHOD direct removes it.

What if the FTP prompt still appears after adding FS_METHOD?

Check directory and file permissions (typically 755 for directories and 644 for files) and that the files are owned by your account. If ownership is wrong after a manual upload or restore, fix it in cPanel or open a ticket and we will correct it.

Quick Recap

  1. Add define('FS_METHOD', 'direct'); to wp-config.php - The quickest fix
  2. This is safe on Ultra Web Hosting - PHP runs as your cPanel user
  3. Fix ownership if needed - chown -R $USER:$USER ~/public_html via SSH
  4. Correct permissions are 755/644 - Never use 777
  5. Changes take effect immediately - No restart needed

WordPress configuration on shared hosting · Last updated November 2026 · Browse all WordPress articles

Share: X in Reddit f Email
  • 316 Users Found This Useful

Was this answer helpful?

Related Articles

How to Fix the WordPress Memory Exhausted Fatal Error

WordPress | Updated September 2026 The "Allowed memory size exhausted" fatal error is one of...

How to Move a Weebly Site to WordPress

WordPress | Updated July 2026 There is no automatic importer that turns a Weebly site into a...

The WordPress app doesn't work with my website

WordPress | Updated November 2026 If the WordPress mobile app (for iOS or Android) cannot...

Not Receiving Form Email Through WordPress - SMTP

WordPress | Updated March 2026 If your WordPress contact forms aren't sending email, the...

WordPress Error : Sorry, this file type is not permitted for security reasons

WordPress | Updated March 2026 The "Sorry, this file type is not permitted for security...



Save 30% on web hosting - Use coupon code Hosting30