Thanks that worked a treat :)<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 3:00 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br>
<div class="im"><br>
On Thu, Jan 13, 2011 at 05:39:55PM +1300, Ryan B wrote:<br>
<br>
> I'm getting "No input file specified." when I attempt to browse to the<br>
> phpmyadmin domain, not sure what I'm doing wrong.. using both php-fpm and<br>
> php-cgi, php-fpm is currently working another directory fine..Had to change<br>
> the port number to 8888 since -fpm was already using 9000<br>
><br>
> <a href="http://pastebin.com/kdEckiL3" target="_blank">http://pastebin.com/kdEckiL3</a><br>
><br>
> from nginx.conf:<br>
><br>
> server {<br>
> listen 80;<br>
> server_name <a href="http://phpmyadmin.domain.com" target="_blank">phpmyadmin.domain.com</a>;<br>
> access_log /home/fanboy/logs/phpmyadmin.access_log;<br>
> error_log /home/fanboy/logs/phpmyadmin.error_log;<br>
><br>
> location / {<br>
> root /usr/share/phpmyadmin;<br>
> index index.php;<br>
> }<br>
><br>
> location ~ \.php$ {<br>
> fastcgi_pass <a href="http://127.0.0.1:8888" target="_blank">127.0.0.1:8888</a>;<br>
> fastcgi_index index.php;<br>
<br>
</div>Just a side note: "fastcgi_index" is meaningless here.<br>
<div class="im"><br>
> fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;<br>
> include /usr/local/nginx/conf/fastcgi.conf;<br>
<br>
</div>Include fastcgi.conf already contains SCRIPT_FILENAME, so your<br>
config results in two SCRIPT_FILENAME params sent to php, with<br>
only one of them being correct. Depending on php version either<br>
first one or last one will be used by php.<br>
<br>
So either use fastcgi_param file instead of fastcgi.conf, or<br>
(better) remove "fastcgi_param SCRIPT_FILENAME" and define root<br>
instead to make SCRIPT_FILENAME defined in fastcgi.conf correct.<br>
I.e. the following should work (note that root defined at server{}<br>
level):<br>
<br>
server {<br>
...<br>
root /usr/share/phpmyadmin;<br>
<br>
location / {<br>
<div class="im"> index index.php;<br>
}<br>
<br>
location ~ \.php$ {<br>
fastcgi_pass <a href="http://127.0.0.1:8888" target="_blank">127.0.0.1:8888</a>;<br>
</div><div class="im"> include /usr/local/nginx/conf/fastcgi.conf;<br>
}<br>
}<br>
<br>
</div>Maxim Dounin<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br>