Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

krytletters's avatar

Switched php version to 8.3 and php8.3-fpm.sock not created for site

I have multiple sites running php 8.1 and 8.2 but when I switch to 8.3 for a site ngix dies trying to find the .sock for that domain

0 likes
7 replies
LaryAI's avatar
Level 58

When you switch to PHP 8.3 and the .sock file is not being created, it usually indicates that the PHP-FPM service for PHP 8.3 is not running or not configured correctly. Here are the steps you can take to resolve this issue:

  1. Install PHP 8.3 and PHP-FPM: Ensure that PHP 8.3 and its FPM service are installed on your system. You can check this by running:

    sudo apt update
    sudo apt install php8.3 php8.3-fpm
    
  2. Start and Enable PHP 8.3-FPM Service: Make sure the PHP 8.3-FPM service is running and enabled to start on boot:

    sudo systemctl start php8.3-fpm
    sudo systemctl enable php8.3-fpm
    
  3. Check PHP-FPM Pool Configuration: Verify that the pool configuration for PHP 8.3 is set up correctly. The pool configuration files are usually located in /etc/php/8.3/fpm/pool.d/. Ensure that the configuration file for your site is present and correctly configured.

  4. Check the Socket Path: In your pool configuration file (e.g., /etc/php/8.3/fpm/pool.d/www.conf), ensure that the listen directive is set to a valid socket path. It should look something like this:

    listen = /run/php/php8.3-fpm.sock
    

    If you have a custom configuration for your site, make sure the path is correct and matches what your Nginx configuration expects.

  5. Update Nginx Configuration: Ensure that your Nginx configuration is pointing to the correct PHP-FPM socket. In your Nginx site configuration file, update the fastcgi_pass directive to match the socket path:

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
    }
    
  6. Restart Services: After making these changes, restart both the PHP-FPM and Nginx services to apply the changes:

    sudo systemctl restart php8.3-fpm
    sudo systemctl restart nginx
    
  7. Check Logs: If the issue persists, check the PHP-FPM and Nginx logs for any errors that might provide more insight into the problem:

    • PHP-FPM logs: /var/log/php8.3-fpm.log
    • Nginx error logs: /var/log/nginx/error.log

By following these steps, you should be able to resolve the issue with the missing .sock file for PHP 8.3. If you encounter any specific errors in the logs, they can provide further guidance on what might be going wrong.

krytletters's avatar

this is now happening on 8.2 as well, any thoughts

krytletters's avatar
krytletters
OP
Best Answer
Level 4

@alons182 Yes, I ended up having to create the files manually. Go to SERVERS Go to PHP click the ... Then compare the old to the new (I had to edit each pool config)

jlrdw's avatar

Are there prior versions that could cause a conflict. Or a config file that isn't updated?

krytletters's avatar

@jlrdw forge allows lots of php versions at the same time. I think its just that the server (host) was old. and I had to create the pool configs myself

Please or to participate in this conversation.