Welcome! Log In Create A New Profile

Advanced

Help Configuring NGINX with PHP-FPM

Posted by tstraus13 
Help Configuring NGINX with PHP-FPM
March 07, 2014 11:13PM
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.
Attachments:
open | download - default.conf (846 bytes)
open | download - fastcgi_params (1.1 KB)
open | download - nginx.conf (1.2 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready