-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php-fpm / config issue? "Access to the script has been denied" #16
Comments
Hi! I'm no apache expert, but seems you could remove On 11-10-2016 01:22, jmhunter wrote:
I use PGP to protect our privacy, if you want to know more, you can If you have further questions, please do not hesitate to ask. |
Thanks pierreozoux for the suggestion around removing /var/www/html from the Apache config, but unfortunately I did try this (it was what I started with) and it just results with the browser showing a "File not found" message. At least with /var/www/html in the path, the php file executes even if the associated CSS files etc. can't be loaded. I can't help feeling that I have mis-understood how this fits together, somehow. For reference my non-working config ("File not found") is as follows:
which results in:
This is returned to the browser:
Adding in /var/www/html to the fcgi path at least results in the php executing. |
To add some clarity, here is the current status. I have nextcloud docker running on my server: And I am using Apache to reverse proxy (I've sanitised the server IP to 1.2.3.4 here):
This all works, to a point - so I think the path in the config file is OK, at least. I can visit http://1.2.3.4:81/index.php and the nextcloud index page executes and displays.. but none of the non-PHP files e.g. CSS, images, Javascript libraries etc. work - see screenshot below: This is what I get in Apache's error_log:
It looks as though it's trying to execute all the support files, rather than just show them directly. I appreciate I'm using Apache and not nginx - but the only docs I have been able to find are https://hub.docker.com/r/indiehosters/nextcloud/ which simply says to use a reverse proxy. How is this meant to work? |
There is an apache version in preparation. #21 would you mind testing? |
Apologies as I know this isn't the place for docker type queries.. but I have been trying on and off to test #21 since December.. I just don't know what docker commands I need to do, to test it :( My docker skills are pretty much limited to 'docker pull indiehosters/nextcloud' and 'docker run indiehosters/nextcloud'.. I've found the github pull requests associated with #21 (I think) but I'm not sure either how to get docker to build it (presumably I manually create the appropriate directory structure on disk locally, and 'docker run' from there) or how to tell docker to use the Apache variant of nextcloud instead of the php-fpm variant. I thought it would be an environment variable passed to the nextcloud docker instance, but looking at the files on github I can't see anything in the docker script that checks for environment variables and selects php-fpm or apache? I would absolutely love to test this version - and figured I should probably post on here to ask for guidance, rather than sit silently and not test it.. Thanks for everyone's efforts on the apache version - that will solve my issue (although I'm still confused as to why php-fpm doesn't work for me ;-) ) |
Answering my own question... I think I figured it out. Posting here my steps, in case it helps others:
|
The PR landed in master, and I htink the issue is solved, can you confirm and close? |
Thank you to all who have worked on this. I have now tested using steps as below, and I can confirm that the apache variant works fine (the setup wizard appears correctly) 😃 The front page docker/nextcloud documentation now needs to be updated, I think, to guide people to the existence of the Apache variant and how to use it - at the moment, it just talks about php-fpm. (There is probably also a better way of launching this using docker, rather than manually downloading the files as I have done - see below for how I ran it. I am not yet a docker expert, but as soon as I am, I will absolutely share what I have learnt!) Am therefore closing this - thanks! (My initial question remains unanswered but can equally be re-framed as "how do I use php-fpm with apache as reverse proxy" and there are other forums for that. The existence of the apache variant means I don't need to get php-fpm working, anyway) Steps I used:
|
(Apologies if this is the wrong place for this - I'm new to github)
I have been trying to get the nextcloud docker image working, but have either misunderstood the instructions, or something isn't working.
I am running nextcloud as follows (I already have something else listening on port 9000)
# docker run --name nextcloud -d -p 8001:9000 indiehosters/nextcloud
and I am using Apache as a proxy to access it (Took me ages to figure out that I couldn't simply point a web browser at the HTTP port - I have never used php-fpm before) :
This seems to work in that the php scripts themselves run fine, but none of the support files come through, they don't get passed to the browser.
Am I missing something basic in the config somewhere, or am I misunderstanding how this is meant to fit together?
The text was updated successfully, but these errors were encountered: