Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Help Configuring NGINX with PHP-FPM

$
0
0
Hello, I have a few questions about getting NGINX and PHP-FPM working properly together. I will post my config files for you all to take a look. Essentially what is happening is the root directory and anything underneath the root directory seems to be processing php files fine. That root directory is /usr/share/nginx/html. Now I would like to add phpmyadmin a level up from the root directory, so /usr/share/nginx/phpmyadmin. When I create the alias for phpmyadmin or any other alias I want to make, php processing fails and it states it cannot find the file. Is there a way to get php to process properly no matter where you are? I got it working with the root directory by adding fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; and I think that is also why the aliases do not work because $document_root points to /usr/share/nginx/html and not /usr/share/nginx/phpmyadmin. If I get rid the the fastcgi_param I do not get any errors but I do get blank pages with no processed php. Thanks in advance.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>