estimados les comparto mi configuracion, quedo listo con phpMyAdmin y cacti
location /cacti { root /var/www/; index index.php index.html index.htm; location ~ ^/cacti/(.+\.php)$ { try_files $uri =404; root /var/www/; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME /var/www/cacti/$1; fastcgi_buffer_size 128k; fastcgi_buffers 256 4k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; } location ~* ^/cacti/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /var/www/; } } location /phpMyAdmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpMyAdmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/fastcgi_params; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_buffer_size 128k; fastcgi_buffers 256 4k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; } location ~* ^/phpMyAdmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; } } # location /phpMyAdmin { # rewrite ^/* /phpMyAdmin last; # } } El 27 de noviembre de 2013 10:52, troxlinux <xserverli...@gmail.com>escribió: > umm , hola a ver no te entiendio clusula server ? > > te refieres a esta: root /var/www/vhost/sip.domian.com/htdocs; > > y en el SCRIPT_FILENAME del localtion lo tengo igual que arriba > > fastcgi_param SCRIPT_FILENAME > /var/www/vhost/sip.mific.gob.pri/htdocs$fastcgi_script_name; > > he comentado el location Phpmyadmin y no funciona , me sigue saliendo el > mismo mensaje. > > > > > > El 27 de noviembre de 2013 10:27, Erick Ocrospoma > <zipper1...@gmail.com>escribió: > > Ese error es usualmente debido a que Nginx le está pasando mal los >> parámetros Php-fpm y este no los entiende (lo estoy resumiendo para que se >> pueda entender). >> >> Cual es el path del root de la claúsula server? debería ser el mismo path >> para el SCRIPT_FILENAME (en el location de php). Ya estás usando php-fpm >> para otro sitio o algo así? >> >> Para ganar tiempo te recomendaría que comentes el location de PhpMyAdmin y >> te centres solo en el location de cacti, cuando encuentres la falla en el >> primero por inercia resolverás el segundo ;) >> >> >> >> >> >> >> ~ Happy install ! >> >> >> >> Erick. >> >> >> --- >> >> Cellphone : +51 950307809 >> Blog : http://zerick.me/ >> LUG : http://www.utpinux.org >> IRC : zerick >> About : http://about.me/zerick >> Linux User ID : 549567 >> >> >> On 27 November 2013 10:43, troxlinux <xserverli...@gmail.com> wrote: >> >> > Si disculpa que no postee el log >> > >> > error log >> > >> > 2013/11/26 16:28:52 [error] 6276#0: *1 FastCGI sent in stderr: "Primary >> > script unknown" while reading response header from upstream, cli >> > >> > php-fpm mi corre bien. >> > >> > /etc/init.d/php-fpm status >> > php-fpm (pid 27675 27674 27673 27672 27671) is running... >> > >> > >> > 2013/11/26 Erick Ocrospoma <zipper1...@gmail.com> >> > >> > > Hola, >> > > >> > > Php-fpm está corriendo verdad? Que arroja el log de fpm? has revisado >> el >> > > log de nginx?, en la conf que pegas no veo que escriba en algún log >> (es >> > > útil esto para decartar por si algo falta). >> > > Literalmente ahí te está diciendo que el PATH (ruta) para PHP_SELF es >> > > inválida, podrías buscar con grep (o alguna de sus variantes) donde >> está >> > > definida esa variable y si la ruta es válida o no. >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > ~ Happy install ! >> > > >> > > >> > > >> > > Erick. >> > > >> > > >> > > --- >> > > >> > > Cellphone : +51 950307809 >> > > Blog : http://zerick.me/ >> > > LUG : http://www.utpinux.org >> > > IRC : zerick >> > > About : http://about.me/zerick >> > > Linux User ID : 549567 >> > > >> > > >> > > On 26 November 2013 17:50, troxlinux <xserverli...@gmail.com> wrote: >> > > >> > > > hola lista , estoy tratando de hacer correr el cacti con nginx >> 1.4.x , >> > > pero >> > > > no me esta corriendo >> > > > >> > > > les posteo mi conf de nginx a ver en que me falla >> > > > >> > > > location ~ \.php$ { >> > > > include /etc/nginx/fastcgi_params; >> > > > fastcgi_pass 127.0.0.1:9000; >> > > > fastcgi_index index.php; >> > > > fastcgi_param SCRIPT_FILENAME /var/www/vhost/ >> > > > sip.domain.com.cc/htdocs$fastcgi_script_name; >> > > > fastcgi_read_timeout 300; >> > > > } >> > > > >> > > > location /cacti { >> > > > root /usr/share; >> > > > index index.php index.html index.htm; >> > > > location ~ ^/cacti/(.+\.php)$ { >> > > > try_files $uri =404; >> > > > root /usr/share/; >> > > > fastcgi_pass 127.0.0.1:9000; >> > > > fastcgi_index index.php; >> > > > fastcgi_param SCRIPT_FILENAME >> > > > $document_root$fastcgi_script_name; >> > > > include /etc/nginx/fastcgi_params; >> > > > fastcgi_param PATH_INFO >> $fastcgi_script_name; >> > > > fastcgi_buffer_size 128k; >> > > > fastcgi_buffers 256 4k; >> > > > fastcgi_busy_buffers_size 256k; >> > > > fastcgi_temp_file_write_size 256k; >> > > > fastcgi_intercept_errors on; >> > > > >> > > > location ~* >> > > > ^/cacti/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { >> > > > root /usr/share/; >> > > > } >> > > > } >> > > > >> > > > } >> > > > location /phpMyAdmin { >> > > > root /usr/share/; >> > > > index index.php index.html index.htm; >> > > > location ~ ^/phpMyAdmin/(.+\.php)$ { >> > > > try_files $uri =404; >> > > > root /usr/share/; >> > > > fastcgi_pass 127.0.0.1:9000; >> > > > fastcgi_index index.php; >> > > > fastcgi_param SCRIPT_FILENAME >> > > > $document_root$fastcgi_script_name; >> > > > include /etc/nginx/fastcgi_params; >> > > > fastcgi_param PATH_INFO >> $fastcgi_script_name; >> > > > fastcgi_buffer_size 128k; >> > > > fastcgi_buffers 256 4k; >> > > > fastcgi_busy_buffers_size 256k; >> > > > fastcgi_temp_file_write_size 256k; >> > > > fastcgi_intercept_errors on; >> > > > } >> > > > location ~* >> > > > ^/phpMyAdmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { >> > > > root /usr/share/; >> > > > >> > > > root /usr/share/; >> > > > } >> > > > } >> > > > # location /phpMyAdmin { >> > > > # rewrite ^/* /phpMyAdmin last; >> > > > # } >> > > > >> > > > } >> > > > >> > > > #### ERROR ABRIENDO LA PAGINA DE INSTALACION >> > > > >> > > > >> > > > Invalid PHP_SELF Path >> > > > >> > > > alguna idea? >> > > > >> > > > -- >> > > > rickygm >> > > > >> > > > http://gnuforever.homelinux.com >> > > > _______________________________________________ >> > > > CentOS-es mailing list >> > > > CentOS-es@centos.org >> > > > http://lists.centos.org/mailman/listinfo/centos-es >> > > > >> > > _______________________________________________ >> > > CentOS-es mailing list >> > > CentOS-es@centos.org >> > > http://lists.centos.org/mailman/listinfo/centos-es >> > > >> > >> > >> > >> > -- >> > rickygm >> > >> > http://gnuforever.homelinux.com >> > _______________________________________________ >> > CentOS-es mailing list >> > CentOS-es@centos.org >> > http://lists.centos.org/mailman/listinfo/centos-es >> > >> _______________________________________________ >> CentOS-es mailing list >> CentOS-es@centos.org >> http://lists.centos.org/mailman/listinfo/centos-es >> > > > > -- > rickygm > > http://gnuforever.homelinux.com > -- rickygm http://gnuforever.homelinux.com _______________________________________________ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es