How to Fix WordPress Asking for FTP Credentials on Webuzo
| |So you installed Webuzo and run WordPress on your VPS but suddenly when you are about to install new plugin or theme WordPress asks you to enter FTP credentials. Yet, that also happens every time you want to install or update a plugin or theme. So how to fix that?
Well, there are basically two solutions you can follow one of it which are: by changing your WordPress directory ownership or by editing wp-config.php file. In this article I’ll show you how to fix WordPress asking for FTP information when installing or updating a plugin / theme on Webuzo control panel by simply editing your wp-config.php file.
Prerequisites
- A working VPS / cloud VPS with at least 512MB RAM. See: Digital Ocean, Ramnode, Atlantic or these recommended vps providers.
- Install Webuzo free control panel on it and do some basic tasks.
- Also install WordPress on your Webuzo server.
- A cup of tea and biscuits if you may.
Stopping WordPress From Asking FTP for FTP Details
p.s:
– always replace x.x.x.x with your server’s IP address.
– click on image to view the larger version.
Step 1 – Open up your web browser and login to Webuzo Enduser Panel at:
http://x.x.x.x:2002/
Simply enter Username and Password you defined during Webuzo install.
Step 2 – Open up Webuzo’s File Manager. The option is available in Server Utilities section:
Step 3 – A new browser tab will open with another login page. Simply use the same username and password you are using it to login to Webuzo panel.
You will then see something similar to this:
Step 4 – Now edit wp-config.php file by simply ricgh-clicking on it then choose Edit.
The File Editor window will appear. You can then edit any text just like in Notepad.
Step 5 – Then put this code right after the Salt section or before the WordPress Database Table Prefix section:
define('FTP_USER', 'my-ftp-username'); define('FTP_PASS', 'my-ftp-password'); define('FTP_HOST', 'my-ftp-host-server');
It is something like this:
Step 6 – Replace these:
- my-ftp-username with the same username used for login to Webuzo panel
- my-ftp-password with the same password of your Webuzo username
- my-ftp-host-server with your server’s hostname or ip address
here’s example:
Do not forget to click the Save button to save changes.
That’s it. Now you can try installing a new plugin again and you should not see WordPress asking for FTP information again.
Nice post. Thank you!
Installing Plugin: Contact Form 7
Downloading install package from https://downloads.wordpress.org/plugin/contact-form-7.4.3.1.zip…
Unpacking the package…
Could not create directory.
Plugin not activated. A higher version of Contact Form 7 is needed for this theme. Please update the plugin.
TGMPA v2.5.2
Return to Required Plugins Installer
I’m no sure I will put username and password webuzo on wp-config.php while I have bad experience about hacked wordpress site.
My way for this problem is
chown -R apache:apache /home/your-user/public_html