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:
- PHP installation e.g. running
php -v on your AWS Linux 2023 instance should return the current PHP version.
- 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.
- Permissions: Make sure the web server has permissions to read the WordPress directory
I hope that helps!
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
-
This reply was modified 1 year, 9 months ago by
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.
-
This reply was modified 1 year, 9 months ago by
shawnlauzon.
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 🙏