WordPress is asking for FTP details while installing any plugin

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Plugins installation/configuration

bnsupport ID: 004babdf-638a-f2f6-0b35-dd8ef99cf97f

bndiagnostic output:

? Apache: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

Description:
I’m using wordpress by manually installing on bitnami LAMP server.
In WordPress admin while i’m trying to install a plugin it is asking me for FTP credentials, i have added FS_METHOD DIRECT in the wp-config but it is not helping.

Please help me in resolving this also take a look at the file and directories permission.

Thanks
Chandra

Hi @chandras,

Thanks for your message. Can you tell us if you are using Approach A or B by running the command below?

test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

Also notice adding the files into the apache2/htdocs folder is not supported, the supported way of installing a custom application is creating a separate directory as explained in the guide below

https://docs.bitnami.com/aws/infrastructure/lamp/administration/create-custom-application-php/

Can you use the steps in the guide above? Apart from that, the diagnostic tool detected an error message in Apache related to that configuration setting, but it didn’t get the file. Can you check you added the setting correctly?

[Fri Nov 12 03:49:40.253878 2021] [proxy_fcgi:error] [pid 24162:tid 140558877931264] [client **ip_address**:48450] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant FS_METHOD - assumed 'FS_METHOD' (this will throw an Error in a future version of PHP) in /opt/bitnami/apache/htdocs/wp-config.php on line 2PHP message: PHP Warning: Use of undefined constant direct - assumed 'direct' (this will throw an Error in a future version of PHP) in /opt/b [Fri Nov 12 03:49:43.371070 2021] [proxy_fcgi:error] [pid 24162:tid 140559037392640] [client **ip_address**:48494] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant FS_METHOD - assumed 'FS_METHOD' (this will throw an Error in a future version of PHP) in /opt/bitnami/apache/htdocs/wp-config.php on line 2PHP message: PHP Warning: Use of undefined constant direct - assumed 'direct' (this will throw an Error in a future version of PHP) in /opt/b [Fri Nov 12 03:49:50.006249 2021] [proxy_fcgi:error] [pid 8424:tid 140559087748864] [client **ip_address**:45372] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant FS_METHOD - assumed 'FS_METHOD' (this will throw an Error in a future version of PHP) in /opt/bitnami/apache/htdocs/wp-config.php on line 2PHP message: PHP Warning: Use of undefined constant direct - assumed 'direct' (this will throw an Error in a future version of PHP) in /opt/bi

File system permissions seems fine to me. If you have further questions about manually configuring the WordPress application, we recommend you to ask in the official WordPress forums

https://wordpress.org/support/forums/

As an alternative, you can use our WordPress cloud image instead of using LAMP and manually installing WordPress on top of it. You can also install any other custom application you want to on top of the WordPress image.

https://bitnami.com/stack/wordpress/cloud

Approach A: Using system packages.

Hi @chandras,

Thanks for your message. In the case of approach A, we recommend you to follow the steps in our guide on how to install a custom PHP application in an independent way on top of your Bitnami installation.

If you continue having issues with the WordPress application’s configuration, please open a new question in the official WordPress forums.

https://wordpress.org/support/forums/

Additionally, we highly recommend you to use one of our pre-built images including the WordPress application instead of having to manually install it on top of LAMP

https://bitnami.com/stack/wordpress/cloud

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.