Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →When WordPress asks for FTP credentials during a plugin, theme, or core update, it usually cannot write to its own files through PHP’s direct filesystem method. The prompt is a symptom of a filesystem access problem—not proof that your FTP password is wrong.
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
Start by testing FS_METHOD set to direct, then verify that the web server user owns and can write to the WordPress files. If direct access is unsuitable, configure the transport WordPress can actually use: SSH2, the PHP FTP extension, or FTP sockets. Remove any workaround that does not solve the problem, and protect credentials stored in wp-config.php.
As an Amazon Associate I earn from qualifying purchases.
Recommended Free Tools
What the WordPress FTP prompt means
WordPress needs to create, replace, and delete files when it installs or updates a plugin, theme, language pack, or core package. It first tries to perform those operations through PHP’s own file I/O. WordPress calls that transport direct.
If PHP cannot write the target files, WordPress tries other filesystem transports. When none can be used automatically, it displays a form requesting FTP credentials. The form does not identify the underlying fault. Common causes include incorrect ownership, restrictive permissions, a disabled PHP extension, an incorrect server path, or a hosting configuration that deliberately prevents direct writes.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
The same underlying problem can appear as “WordPress asking for FTP credentials,” “Can’t install WordPress themes – FTP error,” or an update that returns to the credentials screen without completing.
How WordPress selects a filesystem method
The FS_METHOD constant in wp-config.php accepts four values. WordPress attempts transports in this order:
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors- direct — PHP writes to the filesystem itself.
- ssh2 — an SSH connection made through the PHP SSH2 extension.
- ftpext — FTP through PHP’s FTP extension.
- ftpsockets — FTP implemented with PHP sockets.
| Method | What it uses | What must be available | Typical use |
|---|---|---|---|
direct |
PHP file I/O on the local server | The web-server user must be able to write the WordPress files | Best first diagnostic when the installation is correctly owned |
ssh2 |
SSH/SFTP-style file operations | The PHP SSH2 extension, an SSH account, and either a password or key authentication | Hosts that provide SSH and do not permit direct writes |
ftpext |
PHP’s FTP extension | The FTP extension enabled in the PHP version serving WordPress | Standard FTP or encrypted FTP when the extension works |
ftpsockets |
PHP sockets | The sockets class and a reachable FTP service | A fallback when the PHP FTP extension is unavailable or malfunctioning |
The official WordPress configuration guidance treats changing FS_METHOD as a troubleshooting measure for failed updates, not as a universal performance setting. If changing it does not help, remove the constant or restore the previous value.
Before changing anything
Make a recoverable copy
Download a copy of wp-config.php or duplicate it in your hosting file manager before editing. A syntax error in this file can make the site unavailable. Keep the backup outside the public web root and delete temporary copies from publicly accessible locations.
Confirm which PHP installation runs WordPress
Hosting panels often offer several PHP versions, each with different extensions. The FTP or SSH2 extension must be enabled for the PHP version assigned to the site, not merely for a command-line PHP binary or another domain. If you cannot see extension settings, ask the host to confirm whether the required module is loaded for web requests.
Record the exact failure
Note whether the error occurs during a plugin, theme, language, or core operation; whether it happens for every package; and whether the site is on shared hosting, a virtual server, or a self-managed server. A failure affecting every update points to filesystem access, while one package can also be damaged or incompatible.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
Fix 1: test the direct filesystem method
Direct mode is the quickest diagnostic because it does not require an FTP account or a PHP transport extension. It works only when the process running PHP can write to the relevant WordPress directories.
- Open
wp-config.phpin the hosting file manager, SFTP client, or SSH editor. - Find the comment that says WordPress has stopped editing this file. Add the constant immediately before that comment:
define( 'FS_METHOD', 'direct' );
- Save the file without adding a second PHP opening tag or placing the line after the stop-editing comment.
- Return to the WordPress dashboard and retry the same operation.
If the update succeeds, the earlier automatic transport selection was the obstacle. If it fails with a permission or ownership message, direct mode has done its job as a diagnostic: the web-server user still cannot write where WordPress needs to write.
Direct mode is not a permission grant. It cannot change ownership, repair a read-only filesystem, create a missing directory, or bypass a host security policy. The WordPress developer guidance also warns that direct access carries security risk on poorly configured hosts. Keep it only when the host’s ownership and isolation model make it appropriate.
Fix 2: repair ownership and write access
On a server, files have an owner and group, and the web process runs as a particular operating-system user. WordPress can write only when that user has suitable access to the target path. A file may appear writable in a control panel while still being owned by a different account, or the web process may be intentionally prevented from modifying it.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWhat to ask your host to check
- Which operating-system user runs PHP for this domain?
- Who owns the WordPress directory,
wp-content, plugins, themes, and upgrade-related temporary directories? - Can that PHP user create, modify, and remove a test file in the affected directory?
- Is the filesystem mounted read-only, or is a security layer blocking PHP writes?
- Are the site files located through a symlink or outside the account’s normal document root?
Ask the host to reset ownership using its supported procedure rather than applying broad write access yourself. Do not “solve” an update error by making the entire site world-writable. Excessive access can allow a compromised process to alter more files than necessary.
When the host manages permissions
On managed or shared hosting, customers often cannot change the account owner or the PHP process user. Send support the complete error text, the affected path, the domain, and the time of the failed update. Request an ownership and write-access check, not merely a new FTP password.
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
When you administer the server
Compare the owner and group of the WordPress files with the user configured for the site’s PHP handler. Check directory traversal access as well as write access, and inspect the web-server, PHP, and security-module logs for denied operations. Apply the least access required by your hosting model, then retry with direct mode before adding remote credentials.
Fix 3: configure FTP or SSH credentials explicitly
Use an explicit transport when direct writing is unsuitable or prohibited. WordPress reads these constants from wp-config.php:
| Constant | Purpose | Important qualification |
|---|---|---|
FTP_HOST |
FTP or SSH server name, optionally including a port | FTP normally uses port 21; SSH normally uses port 22. Some hosting setups require localhost to avoid a 503 error during updates. |
FTP_USER |
FTP or SSH username | Use the account supplied by the host, which may differ from the WordPress administrator account. |
FTP_PASS |
Password for that account | It can be omitted when SSH public-key authentication is used. |
FTP_PUBKEY |
Full path to the SSH public key | Used with the SSH2 method. |
FTP_PRIKEY |
Full path to the SSH private key | Used with the SSH2 method; the private key must be readable by the process that makes the connection. |
FTP_SSL |
Requests encrypted plain FTP (FTPS) | FTPS is encrypted FTP; it is not SFTP. |
FTP extension configuration
If the host confirms that PHP’s FTP extension is enabled, select ftpext:
define( 'FS_METHOD', 'ftpext' );
define( 'FTP_HOST', 'ftp.example-host.test' );
define( 'FTP_USER', 'account_user' );
define( 'FTP_PASS', 'account_password' );
The host name and account values above are examples of the required fields, not credentials to copy. Use the exact server name, username, and password supplied for your hosting account. If the service requires encrypted FTP, add:
define( 'FTP_SSL', true );
Encryption does not correct a wrong path, disabled account, blocked port, or ownership problem. Verify those independently.
FTP sockets fallback
If the PHP FTP extension is broken or cannot be enabled, WordPress’s documented fallback is ftpsockets:
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
define( 'FS_METHOD', 'ftpsockets' );
define( 'FTP_HOST', 'ftp.example-host.test' );
define( 'FTP_USER', 'account_user' );
define( 'FTP_PASS', 'account_password' );
This method still needs a reachable FTP service and valid credentials. It is not a way around a firewall or a disabled hosting account.
SSH2 with keys
For an SSH account and a PHP SSH2 extension, use:
define( 'FS_METHOD', 'ssh2' );
define( 'FTP_HOST', 'ssh.example-host.test' );
define( 'FTP_USER', 'ssh_account' );
define( 'FTP_PUBKEY', '/full/path/to/public_key' );
define( 'FTP_PRIKEY', '/full/path/to/private_key' );
Specify a password only if the server uses password authentication. The key paths must be absolute paths visible to the PHP process. A key that works in your desktop SSH client may still fail if the hosting PHP user cannot read it or the host’s SSH policy rejects it.
Set the correct WordPress path
Most installations need only the filesystem method and connection details. Path constants matter primarily when WordPress is installed through symlinks, a nonstandard document root, or a layout in which the detected paths do not match the remote account’s view.
FTP_BASEidentifies the WordPress root, normally the value represented byABSPATH.FTP_CONTENT_DIRidentifies thewp-contentdirectory.FTP_PLUGIN_DIRidentifies the plugins directory.
Define the base path first and add the more specific paths only when the host confirms they are needed. An incorrect path can produce a successful login followed by “file not found” or permission errors because WordPress is looking in the wrong directory.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Distinguish FTP, FTPS, and SFTP
These names describe different protocols:
- FTP is the traditional file-transfer protocol, commonly associated with port 21.
- FTPS is FTP protected with TLS. WordPress refers to this with
FTP_SSL. - SFTP runs over SSH, commonly associated with port 22. In WordPress’s configuration this is handled through the
ssh2method, when the PHP SSH2 extension is available.
Entering an SFTP port into an FTP-only setting, or selecting FTPS when the host provides only SFTP, will fail even when the username and password are correct. Ask the host which protocol and port the account supports.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Diagnose a failed connection in the right order
The credentials form appears immediately
Test direct mode and then check ownership. If the web process cannot write, adding FTP fields may mask the original issue without fixing the server’s file layout. If direct mode is intentionally unavailable, verify the selected remote method and the matching PHP extension.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Login succeeds but installation fails
Check the remote starting directory and the WordPress root. A login can succeed while the account is confined to a directory that does not contain the site. For symlinked or custom layouts, verify FTP_BASE, FTP_CONTENT_DIR, and FTP_PLUGIN_DIR.
The update returns a 503 error
Ask the host whether FTP_HOST must be localhost for updates. Some server configurations reject a loop from the website to its own public hostname, while a local connection succeeds.
Only one extension fails
Check whether the package is incomplete, incompatible, or already partially installed. Look for a temporary directory or stale files left by an interrupted update. Do not assume every package-specific failure is an FTP connection fault.
SSH2 is rejected
Confirm that the SSH2 PHP extension is loaded for the website’s PHP version, that the SSH account is permitted to access the site directory, and that the public and private key paths are absolute and readable. If the server permits password authentication but not keys, test the supported authentication type rather than mixing both configurations.
FTP times out or is refused
Verify the protocol, port, firewall rules, account status, and host name from the hosting provider. A timeout usually indicates reachability or filtering; an immediate authentication error points more directly to the account details. Your desktop FTP client and the web server may originate from different IP addresses, so a connection that works from home is not proof that server-side PHP can reach the service.
Secure the configuration after the fix
Credentials in wp-config.php are as sensitive as the account itself. Keep the file readable only by the users that require it under your host’s supported permissions model, and ensure the web server does not serve it as plain text. Prefer key authentication when the host supports it, and use an account restricted to the site rather than a server-wide administrator account.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
After the update succeeds, remove temporary passwords, test constants, and diagnostic copies. If you added FS_METHOD only to investigate the problem, remove it or restore the previous setting when the host confirms the proper configuration. Leaving an unnecessary transport override can make future migrations and PHP changes harder to diagnose.
A practical decision path
- Back up
wp-config.php. Preserve a known-good copy before editing. - Test
direct. Add the constant before the stop-editing comment and retry one update. - If direct fails, check ownership. Have the host or server administrator verify the PHP user’s access to the exact WordPress paths.
- If direct is unsuitable, identify the protocol. Choose SSH2, FTP, FTPS, or FTP sockets according to what the host actually provides.
- Confirm the PHP dependency. SSH2 requires the SSH2 extension;
ftpextrequires the FTP extension;ftpsocketsuses PHP sockets. - Add only the necessary constants. Use the correct host, port, account, credentials, keys, and—only for nonstandard layouts—path constants.
- Retry and inspect the specific failure. Separate authentication, reachability, path, and write-access errors instead of changing several settings at once.
- Clean up. Remove ineffective overrides and temporary credentials, then keep the working configuration documented privately.
When to stop troubleshooting in WordPress
Escalate to hosting support when you cannot identify the PHP process user, cannot enable the required extension, cannot reset ownership, or do not control firewall and SSH policies. Include the exact error, the operation that failed, the transport you tested, and the relevant path. That information lets support distinguish an account problem from a server-side filesystem problem.
The decisive test is whether the process performing the update can write to the WordPress files through an approved transport. FS_METHOD selects that transport; it does not repair the access model underneath it.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




