Change PHP-FPM to Apache2

Post Reply
Sitego
Posts: 7
Joined: Mon Mar 21, 2022 8:16 pm
Change PHP-FPM to Apache2

Post by Sitego »

Hello. I am installing MyVesta on Debian 11 with the settings

Code: Select all

--apache yes --nginx yes --phpfpm no
After installation, I get

Code: Select all

Server API	FPM/FastCGI
Configuration File (php.ini) Path	/etc/php/7.4/fpm
Loaded Configuration File	/etc/php/7.4/fpm/php.ini
Scan this dir for additional .ini files	/etc/php/7.4/fpm/conf.d
In Debian 9, I had this, and it's important

Code: Select all

Server API	Apache 2.0 Handler
Configuration File (php.ini) Path	/etc/php/7.4/apache2
Loaded Configuration File	/etc/php/7.4/apache2/php.ini
Scan this dir for additional .ini files	/etc/php/7.4/apache2/conf.d
Because of this, there is a problem with the work of scripts, in particular, the work of htacces is not correct. Is it possible to change this somehow during the automatic installation of MyVesta, or only manually change everything?

Tags:

Sitego
Posts: 7
Joined: Mon Mar 21, 2022 8:16 pm
Re: Change PHP-FPM to Apache2

Post by Sitego »

Problem solved. It turns out that htaccess didn't work correctly because of absence of libapache2-mod-php, which vst-install-debian.sh for Debian 11 version doesn't provide for some reason. Installed libapache2-mod-php and everything worked as it should.

User avatar
myVesta
Site Admin
Posts: 712
Joined: Fri Jun 19, 2020 9:59 am
Re: Change PHP-FPM to Apache2

Post by myVesta »

Because myVesta is switched to faster mpm_event Apache mode, and all PHP is moved to PHP-FPM.
It's more stable stack than PHP in Apache.

Ronaldo
Posts: 5
Joined: Sat May 28, 2022 10:47 pm
Re: Change PHP-FPM to Apache2

Post by Ronaldo »

Change in php.ini has no final result. I want to change the message time (maximum execution time of 30 seconds exceeded)
sudo nano /etc/php/8.1/fpm/php.ini
sudo nano /etc/php/8.1/fpm/pool.d/your-domain.com.conf

I edited both paths and got no results.

Myvesta debian 11


Post Reply