Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizPlease log in to access this content. You will be redirected to the login page shortly.
LoginGeneral Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Okay, I followed the 502 Bad Gateway fix thread and in /etc/php-fpm.d/www.conf
I changed :
listen = /var/run/php-fpm/php5-fpm.sock` with
listen = 127.0.0.1:9000
And then I have restarted php-fpm with sudo service php-fpm restart
This seems to have resolved my problem with the Bad Gateway.
The other problem was resolved by @RichardSmith who has suggested to add the php block in the ssl.conf. So now my /etc/nginx/conf.d/ssl.conf
looks like:
server { listen 443 http2 ssl; server_name example.com www.example.com; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; ######################################################################## # from https://cipherli.st/ # # and https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html # ######################################################################## ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"; ssl_ecdh_curve secp384r1; ssl_session_cache shared:SSL:10m; ssl_session_tickets off; ssl_stapling on; ssl_stapling_verify on; resolver 8.8.8.8 8.8.4.4 valid=300s; resolver_timeout 5s; # Disable preloading HSTS for now. You can use the commented out header line that includes # the "preload" directive if you understand the implications. #add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; add_header Strict-Transport-Security "max-age=63072000; includeSubdomains"; add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; ################################## # END https://cipherli.st/ BLOCK # ################################## ssl_dhparam /etc/ssl/certs/dhparam.pem;
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Please log in to access this content. You will be redirected to the login page shortly.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
manpreet
Best Answer
2 years ago
My Nginx on Centos 7 is not loading up php files. I have installed
php-fpm
and couple of other php modules and when I runphp -v
it shows me that the installed version is 5.6. I have installed SSL certificates and redirection of the http traffic to https and this part works without problem. Here are my configurations:/etc/nginx/conf.d/default.conf
/etc/nginx/conf.d/ssl.conf
/etc/php-fpm.d/www.conf
Any ideas what could be wrong? I was following the digital ocean article outlining the configuration of NGINX, but I never managed to open the info.php file. Please also note that I have not installed php, because the latter comes with httpd and as far as I understood php-fpm is a replacement for php in NGINX.