Kromey wrote:
You should be able to ditch that redundant PHP FastCGI within your phpmyadmin location by changing your .php location to:
Code:
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}Note the changed SCRIPT_FILENAME line -- by using the variable $document_root you can avoid redundant hard-codings of your root path, and only write it once. Also, it should mean that alternative root paths -- such as that within your phpmyadmin location -- will automatically "fix" the SCRIPT_FILENAME path for you.
Also, the use of $document_root instead of a redundant hard-coded path is the preferred way, and using it will save you much ridicule from the Nginx community.

EDIT: I should clarify that I've not tested this solution myself, but it seems like it should work. At any rate, do switch to using $document_root, if nothing else it'll save you some grief when you forget you've got a second hard-coded path down the road when you're moving things around!

I appreciate your help, Kromey!
Unfortunately, I was not able to get this working with that change.
What could possibly be the issue?
Thanks!
EDIT: Actually, I see the reason why. /phpmyadmin is located in an area that is NOT the server directory. In this case, I believe hard-coding that in is the only way. Unless I am mistaken. For most PHP applications, I should be perfect though, because I will simply be utilizing the server directory.