mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #253] Cannot enable PHP in a site #7254
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#7254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nikkilocke on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/253
Describe the bug
I tried to enable PHP in a site, by adding the php template, but I get the error:
open() "/etc/nginx/fastcgi.conf" failed (2: No such file or directory)when saving the siteTo Reproduce
Create a docker image with the following docker-compose:
Setup a site with an
index.phpfile in the root, include the php template.Expected behavior
The site can be saved.
Info (please complete the following information):
Additional context
I assume that there needs to be a fast-cgi container running, but there is no point in having the PHP template if such a container is not included in the suggested docker-compose file.
@0xJacky commented on GitHub (Jan 12, 2024):
PHP is not included in Nginx UI docker image, you have to install it manually.
@DjSni commented on GitHub (Jan 28, 2024):
You can easily do this by using a second container with php-fpm and mounting the index.php in both containers. In the site-config you only have to create the connection to the docker-container from php-fpm. It is important that both containers are in the same docker-compose file.