Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
phpinfo solo muestra una página en blanco en nginx

Actualmente estoy aprendiendo Nginx e intento que se muestre phpinfo. Pero solo muestra una página en blanco como esta. phpinfo en blanco

Lo siguiente es lo que me he asegurado / intentado hasta ahora.

  • php socket está en la ubicación correcta
 find / -name *fpm.sock /run/php/php7.4-fpm.sock
  • el archivo php se ha creado correctamente
 root@nginx-fundamentals:/sites/demo# cat info.php <?php phpinfo(); ?>
  • el usuario para el proceso nginx es el mismo que para php
 root@nginx-fundamentals:~# ps aux | grep nginx root 1056 0.0 0.3 8720 3212 ? Ss Jun20 0:00 nginx: master process /usr/sbin/nginx www-data 104677 0.0 0.3 9140 3684 ? S Jul06 0:00 nginx: worker process root 112008 0.0 0.2 8160 2496 pts/0 S+ 04:03 0:00 grep --color=auto nginx root@nginx-fundamentals:~# ps aux | grep php root 11018 0.0 1.0 195484 10496 ? Ss Jun21 1:52 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf) www-data 11020 0.0 0.4 195872 4756 ? S Jun21 0:00 php-fpm: pool www www-data 11021 0.0 0.4 195872 4756 ? S Jun21 0:00 php-fpm: pool www root 112010 0.0 0.0 8160 736 pts/0 S+ 04:03 0:00 grep --color=auto php
  • el contenido del archivo conf debería estar bien
 root@nginx-fundamentals:/etc/nginx# cat nginx.conf user www-data; events {} http { include mime.types; server { listen 80; server_name XX.XXX.XXX.117; root /sites/demo; index index.php index.html; location / { try_files $uri $uri/ =404; } location ~\.phps$ { # Pass php requests to the php-fps service (fastcgi) include fastcgi.conf; fastcgi_pass unix:/run/php/php7.4-fpm.sock; } } }
  • Cuando no se especifica la ruta, muestra la página predeterminada. Página por defecto

¿Qué estoy haciendo mal? ¿Qué más debo investigar?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!