I'm trying PrestaShop 8.1-fpm but I'm having problems configuring Nginx. I don't know what I should configure to communicate with fpm. This is docker compose:
Test access a test.php file from the nginx container dev-ngnix-ps81
test.php file permissions:
-rwxrwxrwx 1 www-data www-data 33 Dec 13 10:18 /var/www/html/test.php
The file is visible from the nginx container
root@84a514ad54c7:/# php /var/www/html/test.php
bash: php: command not found
Is it necessary to have php installed in the nginx container?
What am I failing?
Do I need to have php or php-fpm installed in the nginx container or am I just missing some configuration in the nginx
If someone could please guide or help me it would be incredible.
I'm trying PrestaShop 8.1-fpm but I'm having problems configuring Nginx. I don't know what I should configure to communicate with fpm. This is docker compose:
Nginx container: dev-ngnix-ps81 etc/nginx/conf.d/default.conf
Test access a test.php file from the nginx container dev-ngnix-ps81 test.php file permissions:
-rwxrwxrwx 1 www-data www-data 33 Dec 13 10:18 /var/www/html/test.php
The file is visible from the nginx containerIs it necessary to have php installed in the nginx container?
I try to enter the site url https://somedomain.com/test.php
Nginx container log dev-ngnix-ps81:
172.24.0.1 - - [13/Dec/2023:11:41:08 -0300] "GET /test.php HTTP/1.1" 404 27 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.0.0.145"
Prestashop container log dev-app-ps81:
172.24.0.4 - 13/Dec/2023:11:41:08 -0300 "GET /test.php" 404
What am I failing? Do I need to have php or php-fpm installed in the nginx container or am I just missing some configuration in the nginx If someone could please guide or help me it would be incredible.