Ask Question. Asked 6 years, 4 months ago. Active 5 years, 9 months ago. Viewed 2k times. How can I fix this issue and security hole? Improve this question. Kaz Wolfe. Kaz Wolfe Kaz Wolfe Still not working. Same problem here. Show 3 more comments. Show 1 more comment. If you're using PHP 7. AndrewFox- my filename is php7. M Arfan M Arfan 3, 4 4 gold badges 24 24 silver badges 43 43 bronze badges.
I tried this didn't work for me, I'm using ubuntu Add a comment. So here are my 2 cents, nginx is a web server and not an application server and thus, it can only serve static pages. This is where common gateway interface CGI comes in.
It's a piece of software that manages this communication. Nice explainer. I had the same issue and none of the answers solved the problem. Nice touch to include the test-command syntax in addition to an advice to fix the issue. This workded for me. Slimx Slimx 85 1 1 silver badge 4 4 bronze badges. For me it helped to add? Tomeg Tomeg 4, 2 2 gold badges 10 10 silver badges 9 9 bronze badges. Angel Avnee. Angel 1 1 gold badge 3 3 silver badges 15 15 bronze badges. This has been the actual solution for me.
If any of the proposed answers is not working, try this: 1. I am using Ubuntu Milos Cuculovic Kelvin Low Kelvin Low 6 6 silver badges 20 20 bronze badges. For anyone having same issue with PHP 7, this is what I done to make nginx execute php files properly in CentOS 7, posted here so in case of anyone having same problem: Follow step by step this document on Digital Ocean.
Edit the location parameter as below: default. Hope this helpful and happy coding. SonDang SonDang 1, 1 1 gold badge 11 11 silver badges 20 20 bronze badges. Waqleh Waqleh 8, 8 8 gold badges 62 62 silver badges 93 93 bronze badges. Olubodun Agbalaya Olubodun Agbalaya 3 3 silver badges 10 10 bronze badges. What worked for me with Ubuntu Uncomment the. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You can type! Your config file looks proper. I have this issue too… Same config… My droplet is www. Referenced it from a working server, then ran a quick search for additional info. Kamal, thank you for your answer. I keep downloading the index. Make sure you already installed it by typing php -v. If there is no version information about your PHP, then you should install it with:. Where would you like to share this to? Does it log anything, and what URL exactly are you redirected to that starts a download?
I don't think fcgiwraps has logs on my system. Not sure how you determined what the value of your root-directives should be, but since there are multiple directories in there I'd say at least one of them is incorrect. It seems for small installs you only need the included webserver, and you can ditch both fcgi and nginx.
I have a nginx server running on this machine anyway, serving several larger websites, which is why I want to make monitorix use it rather than its own separate server. Have you solved this problem? Atom topic feed.
Arch Linux. Index Rules Search Register Login.
0コメント