Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM Fastcgi issues

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Jester, Jun 8, 2023.

  1. Jester

    Jester New Member

    9
    0
    1
    Jun 8, 2023
    Ratings:
    +2
    Local Time:
    6:52 AM
    8.0.28 (fpm-fcgi)
    10.3.39-MariaDB
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 124.00
    • Nginx Version Installed: 1.23.4
    • PHP Version Installed: 8.0.28
    • MariaDB MySQL Version Installed: 10.3.39
    • When was last time updated Centmin Mod code base ? : Today, option 2
    • Persistent Config: PHPFINFO=y
    New dev server setup, 4 core, 8GB. PHP site, using fastCGI. The site will not load anything (access denied) except for PHP. Meaning all images and other files are "not found". As a test, I allowed all extensions with security.limit_extensions = and as expected, it tried to execute images (and other things) as PHP. Not good - reverted. I've been on a hunt for an answer for a day or so. Running out of thoughts on this. Probably a silly error on my end since I've never seen this on any of my other servers.

    Thank you

     
  2. Jester

    Jester New Member

    9
    0
    1
    Jun 8, 2023
    Ratings:
    +2
    Local Time:
    6:52 AM
    8.0.28 (fpm-fcgi)
    10.3.39-MariaDB
    Typo! Please disregard. Thanks!
     
  3. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    8:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    How was Nginx vhost created? via centmin.sh menu option 2, 22 or nv command line? What PHP web app/script/framework are you using?

    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)

    what is output of these commands in ssh
    Code (Text):
    curl -I https://domain.com
    

    Code (Text):
    curl -I https://www.domain.com
    

    Code (Text):
    curl -I http://domain.com
    

    Code (Text):
    curl -I http://www.domain.com
    

    wrap output in CODE tags
     
  4. Jester

    Jester New Member

    9
    0
    1
    Jun 8, 2023
    Ratings:
    +2
    Local Time:
    6:52 AM
    8.0.28 (fpm-fcgi)
    10.3.39-MariaDB
    Hi Eva!

    Thanks for responding, I missed a "/" in a path in my conf. (the typo).

    Never fails that I solve it on my own right after I post a question....lol.

    Thanks again
     
  5. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    8:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haha. I know the feeling. I spent 2hrs today refreshing a paginated page to see if my submitted blocked IP shows up in my AbuseIPDB database for my script. Turns out I was refreshing page number 2 and not page 1 :LOL::facepalm: