I recently installed nginx and php in my machine, but for some reason nginx downloads php files, rather than executing them. I've already spent couple of days and implemented all solutions available online, but all in vain. My bltadwin. Because of that, php-fpm looks in the wrong folder and can't execute the PHP file. Improve this answer. For example if you create an info.
Also, do you have a. If so I could suggest temporary disabling it to test if it is causing the issue for you. Hello, when I create info. There are no errors in apache log file. Also, it is quite unusual that it works with the info.
When you create the info php file and visit it via your browser what is the Server API value as shown here:. Hi - I have built and am building a fairly complex Wordpress-based business news portal that's hosted on a Ubuntu 18 container here.
I notice that the PHP version is slightly out of date, which is having a knock-on effect on my set-up. Do we Hi, Is it a good idea to upgrade my live website to PHP 8. Also, 8. How can I check which version of php I'm actually using? Where would you like to share this to?
When I moved my file down a directory it worked. I'm suspicious because I don't think I've seen this documented anywhere. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Asked 7 years, 10 months ago. Active 5 years, 5 months ago. Viewed 91k times. Improve this question. Braiam The Quantum Physicist The Quantum Physicist 2 2 gold badges 4 4 silver badges 14 14 bronze badges.
Are you aware that that is a LAMP server? I don't know the difference Godworld What directory? Search titles only. Search Advanced search…. New posts. Search forums. Log in. Install the app. For a better experience, please enable JavaScript in your browser before proceeding. You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Issue PHP files are downloaded instead of executing. Thread starter p0se Start date Sep 12, Tags download php error. The Customer has a secon homepage with exactly the same settings. But without any problems.
0コメント