Nginx does not render php but download file






















 · I have not used "alpine linux" so please double check that both your cofig files are loaded. For example place a syntax mistake in the config and run nginx -t if it catches it.. Try to avoid placing a root directory within one config to a subdirectory of another www.doorway.rus: 5.  · PHP files are DOWNLOADING instead of EXECUTING on nginx. It looks like Nginx can’t pass the php file to www.doorway.ru which results in download of php files instead of execution. Please help. I set www.doorway.ru_pathinfo=0 inside /etc/php5/fpm/www.doorway.ru I set listen = /var/run/www.doorway.ru inside /etc/php5/fpm/pool.d/ www.doorway.ru  · whenever, we try rendering/returning www.doorway.ru file, for example www.doorway.ru, nginx doesn't know what to do, since it just can't understand www.doorway.ru file (or for that matter any extension apart from a select few www.doorway.ru,.js etc. which are static files)Reviews: 9.


Answer (1 of 3): That problem usually happens when there's no handler being set www.doorway.ru files. Assuming your MAMP install is working properly, you should create an. nginx: the configuration file /etc/nginx/www.doorway.ru syntax is ok nginx: configuration file /etc/nginx/www.doorway.ru test is successful Reload and Restart Nginx. Changes made in the configuration file will not be applied until the command to reload configuration is sent to nginx or it is restarted. It's also possible that you have nginx running but your php is set up to run with apache. To verify, run service nginx status and service apache2 status to see which is running. In the case that nginx is running and apache is not, just run sudo service nginx stop; sudo service apache2 start and your server will now serve php files as expected.


Install php-fpm (it might be called php5-fpm by your distro). Open the php-fpm config file, locate the listen line, and make sure it's set to Restart both php-fpm and nginx and see if it works. Finding the php-fpm config file should be easy, just search through the /etc directory. There can be two reasons. Misconfiguration on the server. Fix the configuration and clear the cache of the browser. If you are using c-panel and you changed the PHP version for the site (Then c-panel will create www.doorway.russ file with some configuration) but when uploading a www.doorway.russ file which will replace the old one (created by c-panel). It's also possible that you have nginx running but your php is set up to run with apache. To verify, run service nginx status and service apache2 status to see which is running. In the case that nginx is running and apache is not, just run sudo service nginx stop; sudo service apache2 start and your server will now serve php files as expected.

0コメント

  • 1000 / 1000