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">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</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>
&gt; I&#39;m getting &quot;No input file specified.&quot; when I attempt to browse to the<br>
&gt; phpmyadmin domain, not sure what I&#39;m doing wrong.. using both php-fpm and<br>
&gt; php-cgi, php-fpm is currently working another directory fine..Had to change<br>
&gt; the port number to 8888 since -fpm was already using 9000<br>
&gt;<br>
&gt; <a href="http://pastebin.com/kdEckiL3" target="_blank">http://pastebin.com/kdEckiL3</a><br>
&gt;<br>
&gt; from nginx.conf:<br>
&gt;<br>
&gt;     server {<br>
&gt;         listen 80;<br>
&gt;         server_name <a href="http://phpmyadmin.domain.com" target="_blank">phpmyadmin.domain.com</a>;<br>
&gt;         access_log /home/fanboy/logs/phpmyadmin.access_log;<br>
&gt;         error_log /home/fanboy/logs/phpmyadmin.error_log;<br>
&gt;<br>
&gt;     location / {<br>
&gt;         root /usr/share/phpmyadmin;<br>
&gt;         index index.php;<br>
&gt;         }<br>
&gt;<br>
&gt;     location ~ \.php$ {<br>
&gt;         fastcgi_pass <a href="http://127.0.0.1:8888" target="_blank">127.0.0.1:8888</a>;<br>
&gt;         fastcgi_index index.php;<br>
<br>
</div>Just a side note: &quot;fastcgi_index&quot; is meaningless here.<br>
<div class="im"><br>
&gt;         fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;<br>
&gt;         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 &quot;fastcgi_param SCRIPT_FILENAME&quot; 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>