I think I'm going to try this, this weekend, using Docker Compose, to see if it's any easier.

---
Thanks,
Alexander

Sent from my Google Pixel 7 Pro

On Wed, Dec 11, 2024, 16:50 Ryan Petris via PLUG-discuss <plug-discuss@lists.phxlinux.org> wrote:
Setting up php-fpm _should_ be easy and the defaults should work for most people; I only skimmed the other thread but it looks like you ran into what a lot of people run into, except that since it's more than one program running you can't just "chmod 777" your way out of it.

Nginx is running as one user, typically either "nginx" or "www-data", while php-fpm will run as a different user, such as "php" or "php-fpm".

The files must at least be executable by the php-fpm process, thus they should typically be owned by whatever user php-fpm is running as. Similarly, nginx needs to be able to talk to the socket that php-fpm creates, which is by default the same user it's running as but that can be changed. So, either nginx and php-fpm need to be running as the same user (not very secure) or you need to change the configuration of php-fpm to create the socket as the user nginx is running as.

Once you do that, assuming you've also wired up nginx correctly, everything should just work.

I hope that in the process of getting everything working you learned and understood why you were making the changes you were making rather than just throwing things at the wall and see what sticks.


On Wed, Dec 11, 2024, at 2:39 PM, Keith Smith via PLUG-discuss wrote:

Has anyone had the experience I just had.  Over maybe 6 weeks I spend 40 
or more hours trying to learn and install PHP-FPM.  I did not know 
anything about PHP-FPM however I was told I needed it if I were to build 
a local (VirtualBox) LAMP server for development and testing.

I asked Chat how to configure a LAMP server to use FPM.  It spit out the 
config with instructions on how so go about getting things configured.   
As I used what chat told me I would run into an issue.  Chat would help 
with more advice.

I got really close maybe within the last week.

It now works... Yikes!!!!!

The good side is I know a lot more about Ubuntu!!!

Keith
---------------------------------------------------
PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss