Page 1 of 1

Change PHP-FPM to Apache2

Posted: Thu Jun 02, 2022 9:35 am
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?

Re: Change PHP-FPM to Apache2

Posted: Thu Jun 02, 2022 2:12 pm
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.

Re: Change PHP-FPM to Apache2

Posted: Thu Jun 02, 2022 4:23 pm
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.

Re: Change PHP-FPM to Apache2

Posted: Wed Jun 15, 2022 1:00 am
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

Re: Change PHP-FPM to Apache2

Posted: Thu Jul 07, 2022 11:41 am
by myVesta
did you restarted php-fpm after that?