[wp-trac] [WordPress Trac] #41132: permalinks are broken when using PHP7.0-fpm with nginx

WordPress Trac noreply at wordpress.org
Wed Apr 10 06:06:35 UTC 2024


#41132: permalinks are broken when using PHP7.0-fpm with nginx
--------------------------+------------------------------
 Reporter:  Towlieban     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:  4.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by niclovincent):

 Hello Towlieban,

 Verify that your Nginx configuration is correctly set up to handle PHP
 requests and that the location block for PHP files is properly configured.
 Ensure that PHP-FPM is correctly referenced in your Nginx configuration
 file and that the socket path (/var/run/php/php7.0-fpm.sock in your case)
 matches the actual socket path for PHP-FPM.

 Make sure that PHP-FPM is properly configured to handle requests from
 Nginx. Check the PHP-FPM pool configuration file (usually located in
 /etc/php/7.0/fpm/pool.d/www.conf for PHP 7.0) and ensure that it's
 configured correctly. Pay special attention to the listen directive, which
 should match the socket path specified in your Nginx configuration.

 Ensure that the files and directories related to your WordPress
 installation have the correct permissions. The Nginx worker process should
 have appropriate permissions to read PHP files and directories.

 Check both the Nginx error log and the PHP-FPM error log for any
 additional error messages that might provide more insight into the issue.
 These logs can often pinpoint the root cause of the problem.

 Create a simple PHP file (e.g., test.php) containing only <?php phpinfo();
 ?> and access it through your web browser to see if PHP-FPM is functioning
 correctly. If you encounter the same error, it might indicate a broader
 issue with your PHP-FPM configuration.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41132#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list