• Thank you in advance for helping this newbie…

    I have an AWS Bitnami instance. I have manually installed WordPress on that instance.

    PHP version: 7.4.29

    When I try to install a new theme, I get a pop up screen showing:

    To perform the requested action, WordPress needs to access your web server

    . It then asks for my FTP credentials.

    I’ve seen this post:
    https://www.ads-software.com/support/topic/wordpress-needs-to-access-your-web-server-please-enter-your-ftp-credentials-2/

    I have WordPress installed in my htdocs folder. Please see settings below:

    bitnami@ip-{I am hiding this}:~$ ls -l
    total 12
    -rw——- 1 bitnami bitnami 13 Jul 3 17:47 bitnami_application_password
    -r——– 1 bitnami bitnami 401 Jul 3 17:47 bitnami_credentials
    lrwxrwxrwx 1 bitnami daemon 27 Apr 19 14:19 htdocs -> /opt/bitnami/apache2/htdocs
    drwxr-xr-x 3 bitnami bitnami 4096 Jun 22 16:38 projects
    lrwxrwxrwx 1 bitnami bitnami 12 Apr 19 14:19 stack -> /opt/bitnami`

    bitnami@ip-{I am hiding this}:~/htdocs$ ls -l
    total 20688
    -rw-rw-r– 1 bitnami daemon 410 Jun 23 21:24 index.html
    drwxrwxr-x 5 bitnami daemon 4096 Jul 4 22:22 wordpress

    In the wordpress folder, I have added the following line to wp-config.php:

    define( ‘FS_METHOD’, ‘direct’);

    Still, when I try to update a theme, WordPress is asking for FTP credentials.

    Please help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • After reading your issue, I came across that Your issue is related with hosting server. I would suggest to contact at your hosting provider about this issue.

    Hope, They will resolve it easily.

    Thread Starter kjuluru

    (@kjuluru)

    The server team has run diagnostics and have found this in the apache server log. They feel the problem is related to the wp-config.php file.

    Does anyone know how I might fix this problem?

    [Tue Jul 05 14:11:30.814134 2022] [proxy_fcgi:error] [pid 25141:tid 140162046433024] [client 69.115.176.159:59287] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant \xe2\x80\x98FS_METHOD\xe2\x80\x99 - assumed '\xe2\x80\x98FS_METHOD\xe2\x80\x99' (this will throw an Error in a future version of PHP) in /opt/bitnami/apache/htdocs/wordpress/wp-config.php on line 21PHP message: PHP Warning: Use of undefined constant \xe2\x80\x98direct\xe2\x80\x99 - assumed '\xe2\x80\x98direct\xe2\x80\x99' (this will throw an Error in a future version of PHP) in /opt/bitnami/apache/htdocs/wordpress/wp-config.php on line 21', referer: https://radcentralstation.com/wordpress/wp-admin/theme-install.php?browse=popular

    Please share the screenshot of the of wp-config.php with blurred database credential. I will look in this to give the exact solution.

    Hey @kjuluru, thank you for posting your question along with the detailed information. Also thanks for checking the previous answer on the support forum before asking ??

    If WordPress is asking for the FTP credentials despite having FS_METHOD set to direct in wp-config.php, there is most likely a problem with file permissions. WordPress is probably failing to create a new folder in the themes folder. I can see that your wordpress folder permissions are set to 775. Can you check the permissions of folders inside the wp-content folder?

    Perhaps you just need to update the file and folder permissions recursively. Please check an article explaining different ways of changing the file permissions.

    On a separate note, I suspect you accidentally used incorrect single quote characters in you wp-config.php. This often happens when the text is copied between different text editors or tools. Can you try the following? Please note the different single quote characters compared to your first message in this thread.
    define( 'FS_METHOD', 'direct');

    @martinkrcho – I agree with your statement So I requested to share screen of wp-config.php file.

    On a separate note, I suspect you accidentally used incorrect single quote characters in you wp-config.php. This often happens when the text is copied between different text editors or tools. Can you try the following? Please note the different single quote characters compared to your first message in this thread.
    define( ‘FS_METHOD’, ‘direct’);

    • This reply was modified 2 years, 4 months ago by mdshak.
    Thread Starter kjuluru

    (@kjuluru)

    Thank you both. Problem solved!

    It seems the problem was the single quote. I had been using the Mac text editor, and it consistently used a different type of single quote than what was present in the rest of the file. I edited the wp-config.php file directly using the terminal editor. In the WordPress admin, new themes are now installing without requests for FTP credentials.

    Thank you thank you. I have spent 4 days trying to resolve this problem!

    • This reply was modified 2 years, 4 months ago by kjuluru.

    That’s great, @kjuluru! I am glad you fixed the problem. We’re happy to help.

    Feel free to reach out again if you need some assistance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘To perform the requested action, WordPress needs to access your web server’ is closed to new replies.