ricktbaker / beanstalk-nginx-php-fpm

How to replace apache with nginx and php-fpm on AWS beanstalk
MIT License
74 stars 27 forks source link

Seems to be failing on php-fpm #10

Open Costin-Nox opened 6 years ago

Costin-Nox commented 6 years ago

Not sure if recent updates or what, i see aws now supports 7.1 which i dont think it did when this was made. I tried to deploy this and got an error with php-fpm.

Basically 'service php-fpm start' fails although yum install php71-fpm works fine and confirms its there.

Before i go digging for a solution figured i'd ask as maybe i'm missing something obvious.

jeff-kilbride commented 6 years ago

@CostinGhiocel This repo was rewritten for php 7.1 a few months ago. I am using it with php 7.1 on my EB servers, so it definitely works.

What error, if any, do you get from service php-fpm start? You should have entries like the following in your /etc/rc.d/init.d directory:

lrwxrwxrwx 1 root root   30 Mar 23 20:32 php-fpm -> /etc/alternatives/php-fpm-init*
-rwxr-xr-x 1 root root 2.1K Dec  5  2017 php-fpm-7.1*

Obviously, you should also have /etc/alternatives/php-fpm-init:

lrwxrwxrwx 1 root root 28 Mar 23 20:32 /etc/alternatives/php-fpm-init -> /etc/rc.d/init.d/php-fpm-7.1*

Are you able to run service php-fpm status from the command line?

# service php-fpm status
php-fpm-7.1 (pid  3548) is running...

I'll need more info to be of any help.