php fpm - Nginx downloads php file in SOME cases (not all) -
im having unusual issue php5-fpm , nginx.
here nginx configuration:
server { hear 80; root /usr/share/nginx/www; index index.php index.html index.htm; server_name example.com; location / { try_files $uri $uri/ /index.html; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/www; } # pass php scripts fastcgi server listening on /var/run/php5-fpm.sock location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params; } }
so downloaded phpbb forum nad phpmyadmin /usr/share/nginx/www each in own directory. have 2 directories: /usr/share/nginx/www/phpmyadmin , /usr/share/nginx/www/phpbb when seek access: http://example.com/phpmyadmin web browser downloads index.php of phpmyadmin, when navigate to: http://example.com/phpbb renders whole forum (which written in php, parses php correctly). aboove configuration 1 have active.
important: if navigate http://example.com/phpmyadmin/index.php works fine.
any advices ?
i followed tutorial while configuring nginx: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-debian-7
i found out browser issue, not server. cleared cache in browser worked fine.
nginx php-fpm
No comments:
Post a Comment