Help Setup AWS EC2 AmazonLinux 2022 with PHP
Budget: $10 – $30 USD
I am using an Amazon Linux 2022 EC2 instance that I need to run Apache2 on and process php files using image
ami-amazon-linux-latest/al2022-ami-kernel-default-x86_64
. I am successfully hosting the website using the tutorial https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2022.html and successfully show HTML files, but the PHP files throw an error 503 and /var/log/httpd/error_log contains the error
[info] (13)Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*:80) failed
[info] [client ip AH01079: failed to make connection to backend: httpd-UDS
I would like to use PHP 7 or 8 with Apache2 and standard packages. I require the instructions required to fully resolve this error from a clean instance AL2022 instance on x86_64. A complete YML file is NOT required, only instructions to resolve this error and serve a PHP page of the form
<?php phpinfo(); ?>
ami-amazon-linux-latest/al2022-ami-kernel-default-x86_64
. I am successfully hosting the website using the tutorial https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2022.html and successfully show HTML files, but the PHP files throw an error 503 and /var/log/httpd/error_log contains the error
[info] (13)Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*:80) failed
[info] [client ip AH01079: failed to make connection to backend: httpd-UDS
I would like to use PHP 7 or 8 with Apache2 and standard packages. I require the instructions required to fully resolve this error from a clean instance AL2022 instance on x86_64. A complete YML file is NOT required, only instructions to resolve this error and serve a PHP page of the form
<?php phpinfo(); ?>