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 QuizGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
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.
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
I have a strange bug in my nginx / php-fpm code, I'm trying to set up my development machine to use nginx instead of php's built-in server, but it's not working to good so far:
and my
local.conffile for nginx:server { server_name local.dev www.local.dev; root /home/richard/Projects/local/web; index app_dev.php; location / { try_files $uri /app_dev.php$is_args$args; } location ~ \.php { fastcgi_pass unix:/run/php-fpm/www.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; } error_log /var/log/nginx/local_error.log; access_log /var/log/nginx/local_access.log; access_log /var/log/nginx/local_scripts.log scripts;}
local_scripts.logseems correct:And i have
chmod +xall the folders from /home to /web...Please advice, I think I have looked at all php-fpm / nginx questions here (and there are sooo many)
Also, php-fpm runs as root, the unix socket files is created for user
richardwith the rights0777, and the pool is running with my usernamerichardand nginx is running with userrichard