• Resolved shawnlauzon

    (@shawnlauzon)


    I have a new installation on AWS Linux 2023. I’m at the point in the install where I go to the root URL (or /wp-admin/install.php), and it should run the setup script. However, all I get is the text file which starts like this:

    /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the installation. * You don't have to use the website, you can copy this file to "wp-config.php" * and fill in the values. *?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Aaron Robertshaw

    (@aaronrobertshaw)

    Hi @shawnlauzon

    At a glance, it would appear that your server isn’t processing PHP files correctly hence serving the install.php file as plain text.

    This usually occurs when the PHP module isn’t installed or configured correctly on the web server. A couple of things to look at could be:

    1. PHP installation e.g. running php -v on your AWS Linux 2023 instance should return the current PHP version.
    2. Web Server Configuration: Ensure the php module is enabled in your web server config. Where and how you do this might depend on what AWS Linux 2023 uses. Unfortunately, I’m not familiar with it at all.
    3. Permissions: Make sure the web server has permissions to read the WordPress directory

    I hope that helps!

    Thread Starter shawnlauzon

    (@shawnlauzon)

    Thanks @aaronrobertshaw, it would make sense for this to be the problem, but it doesn’t seem so.

    [ec2-user]$ php -v
    PHP 8.3.7 (cli) (built: May 7 2024 16:35:26) (NTS gcc x86_64)
    Copyright (c) The PHP Group
    Zend Engine v4.3.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.7, Copyright (c), by Zend Technologies

    And also phpMyAdmin works for me, for example the URL at /phpMyAdmin/index.php renders fine. Any other idea?

    EDIT: Oh, and permissions look good as well, everything is:
    -rw-rw-r--. 1 ec2-user apache 405 Jul 23 17:42 index.php

    Thread Starter shawnlauzon

    (@shawnlauzon)

    Ahh, so it was a permissions problem! But not in reading, but that the config.php file that I created wasn’t writable by apache. I noticed this when I deleted the file and allowed the WP script to create the file itself.

    To the AWS instructions https://docs.aws.amazon.com/linux/al2023/ug/hosting-wordpress-aml-2023.html are missing this. Thanks for the help @aaronrobertshaw, looking more at permissions helped me figure it out.

    I’m glad you were able to sort it out.

    If you get the chance, it might be worth providing some feedback to AWS to help out others in the future ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.