On Wed, Jul 7, 2010 at 2:49 PM, Aditya Agustyana <[email protected]> wrote:
> dear Linuxer
>
> sy gi nyoba install PHP dgn server Nginx + FastCGI di Fedora 12
> udah mengikuti petunjuk ini
> http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-fedora-10-p2
>
> fast CGI udah nyala
>
> $ ps aux|grep "cgi"
> nginx 8857 0.0 4.1 98808 16452 ? Ss 06:37 0:00
> /usr/bin/php-cgi
>
> php.ini dah diedit
>
> sy coba buat script phpinfo.php di /usr/share/nginx/html, dan ketika
> sy akses ke http://test.domain.com/phpinfo.php, malah muncul "No input
> file specified. "
>
> sy coba googling lagi ketemu ini
> http://forum.slicehost.com/comments.php?DiscussionID=1259, katanya
> mungkin ada masalah di permission, tapi file.phpinfo.info udah sy
> ganti owner & groupnya menjadi nginx, setelah restart nginx, tetep aja
> waktu ngakses phpinfo.php masih error "No input file specified. "
>
> ada yg tau ini kira2 masalahnya knp ya ?
>
> btw ini konfigurasi nginxnya
>
> server { # php/fastcgi
> listen 80;
> server_name test.domain.com;
> root html;
>
> location / {
> index index.html index.htm index.php;
> }
>
coba pada bagian include ini, masukkan full path nya
> location ~ \.php$ {
> root /usr/share/nginx/html;
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /usr/share/nginx/html$fastcgi_script_name;
> include fastcgi_params;
> }
>
jadinya seperti ini klo ditempat saya
include /etc/nginx/fastcgi_params;
restart nginx nya, lalu coba akses lagi..
semoga membantu
> location ~ /\.ht {
> deny all;
> }
>
> }
>
>
> regards
>
>
> Aditya
>
>
>
>
> --
> blog : http://adityakircon.blogsome.com
> ym / twitter : kirconboy
> skype : adit_skype
>
> Be Nice. Treat others with the same respect you'd want them to treat
> you. We're all here to learn together. Be tolerant of others who may
> not know everything you know. BRING YOUR SENSE OF HUMOR
> (stackoverflow.com)
>
> --
> FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
> Unsubscribe: kirim email ke [email protected]
> Arsip dan info milis selengkapnya di http://linux.or.id/milis
>
>
--
Regards,
Adit
http://simplyaddo.web.id
ym : science2rule
hp : 08561749716
--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [email protected]
Arsip dan info milis selengkapnya di http://linux.or.id/milis