Post AQG7sTyk8JInTI7gJs by murtezayesil@fosstodon.org
 (DIR) More posts by murtezayesil@fosstodon.org
 (DIR) Post #AQG7sTyk8JInTI7gJs by murtezayesil@fosstodon.org
       2022-12-04T09:14:59Z
       
       0 likes, 0 repeats
       
       #phpfpm #unixsocket #fastcgi #nginx #pixelfed #ubuntu I am preparing to host a Pixelfed instance and got stuck at nginx available site configuration. I used unixsocket for redis and not sure if I have to use unixsocket for fastcgi too.Would it be fine if I set "fastcgi_pass localhost:9000;" rather than "fastcgi_pass Unix:/run/php-fpm/php-fpm.sock;" ?I am asking because I couldn't locate php-fpm.sock or php-fpm8.1.sock anywhere in the system.
       
 (DIR) Post #AQG7sUOGbPickS446S by selea@social.linux.pizza
       2022-12-04T09:40:56Z
       
       0 likes, 0 repeats
       
       @murtezayesil /var/run
       
 (DIR) Post #AQG7wPee9UCvDcb4s4 by selea@social.linux.pizza
       2022-12-04T09:41:41Z
       
       0 likes, 0 repeats
       
       @murtezayesil Check the php-pool under /etc/php/8.1/fpm/pool.d/ something.The first row, should tell you where it is.
       
 (DIR) Post #AQG7z3F7vzEwZxv0rY by selea@social.linux.pizza
       2022-12-04T09:42:10Z
       
       0 likes, 0 repeats
       
       @murtezayesil If it is called "default" - it should be found at /var/run/default.sock or something
       
 (DIR) Post #AQG8VGMyfJ6OYbwyqu by murtezayesil@fosstodon.org
       2022-12-04T09:47:58Z
       
       0 likes, 0 repeats
       
       I see "listen = /run/php/php8.1-fpm.sock"But "ls /run/php/” returns empty directory.@selea
       
 (DIR) Post #AQG9VpT8GbrLMzfAUC by murtezayesil@fosstodon.org
       2022-12-04T09:59:15Z
       
       0 likes, 0 repeats
       
       You mean by "default" is the pool name? Pool name is "pixelfed". Only .sock in /var/run is acpid.sock. there php directory there but it is empty.I have a bigger problem. Tried to start the nginx with localhost:9000 and I see that nginx cannot start due to missing "/etc/nginx/ssl/server.crt" file.@selea
       
 (DIR) Post #AQG9hM8z7daFtYjfqi by selea@social.linux.pizza
       2022-12-04T10:01:21Z
       
       0 likes, 0 repeats
       
       @murtezayesil It was an example, so it depends on how you have configured the php-fpm pool.The other problem is because you have config files that requires ssl-cert
       
 (DIR) Post #AQG9iVZhXm8pQymVqi by selea@social.linux.pizza
       2022-12-04T10:01:34Z
       
       0 likes, 0 repeats
       
       @murtezayesil Does php even run?
       
 (DIR) Post #AQGA2w3wlwZPNOfXl2 by murtezayesil@fosstodon.org
       2022-12-04T10:05:14Z
       
       0 likes, 0 repeats
       
       "php artisan key:generate" kind of commands run upto this point.in fact pixelfed's systems service executes a php command and it starts just fine.@selea
       
 (DIR) Post #AQGBERhXa4vmdpF0ds by selea@social.linux.pizza
       2022-12-04T10:18:29Z
       
       0 likes, 0 repeats
       
       @murtezayesil Well it is not php-fpm, it is just php cli basicallyYou might want to create a systemd service file for it instead
       
 (DIR) Post #AQGCK0eBBGGyQSsyTw by murtezayesil@fosstodon.org
       2022-12-04T10:30:44Z
       
       0 likes, 0 repeats
       
       Nginx configuration should go like http {  server {    listen 80;    ...  }}Can I have multiple server {} section in a single http {} section?Example nginx.conf included with pixelfed repo is missing http {} wrapper around the server {} sections.@selea
       
 (DIR) Post #AQGFfkUcDph2YdTClc by murtezayesil@fosstodon.org
       2022-12-04T11:08:13Z
       
       0 likes, 0 repeats
       
       I successfully got nginx working wrong.502 Bad Gateway is achieved.I will go to bed now and hopefully will resolve it with a fresh mind.@selea