Jump to content
thirty bees forum
  • 0

php issues I think


Havouza

Question

I am in the process to move our TB from one VPS to a new one. Both Centos 7. After much troubles I started from scratch and now I think the problem is a wrong php-fpm setting.
I get these two lines in the Apache log. Anyone that can give me a hint what to look for? If necessary I can give ssh access to the server or access to the controlpanel. I would be eternally greatful if someone could help

 

[Thu Apr 25 18:27:07.640875 2019] [proxy:error] [pid 7890] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:8000 (*) failed
[Thu Apr 25 18:27:07.640927 2019] [proxy_fcgi:error] [pid 7890] [client 63.143.42.253:52290] AH01079: failed to make connection to backend: localhost, referer: https://jv74.se

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hello,

Which version of PHP do you have installed on your VPS?

I prefer nginx, after upgrade to php 7.2 I had to change the entry php5.3-fpm.sock to php7.2-fpm.sock in nginx config file (sites-available directory).

I recommend nginx, along with php-7.2 the store works very fast.

location ~ [^/]\.php(/|$) {

        fastcgi_index index.php;
        include /etc/nginx/fastcgi_params;
        # depending on version, could be : include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    }

 

Edited by Adik
Link to comment
Share on other sites

  • 0

Double check this line in your config /etc/apache2/sites-available/...

 <FilesMatch \.php$>
     SetHandler "proxy:unix:/var/run/php/php7.0-fpm.sock|fcgi://localhost/"
    </FilesMatch>

 

Edited by Adik
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...