Author Topic: How to change the php version to an specific folder  (Read 1414 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to change the php version to an specific folder
« on: February 09, 2023, 03:07:01 PM »
hello im trying to set php 8.1 to a folder using the next code in my .htacess, using your instructions:

url:

http://wiki.centos-webpanel.com/php-selector

code:

AddHandler application/x-httpd-php81 .php

but I have the next error:

"/opt/alt/php81/usr/bin/php-cgi" failed: No such file or directory

Maybe I have this error because I use php-fpm and the correct path is /opt/alt/php-fpm81
but there is not a php-fpm code :/

Could please help me?

Offline
****
Re: How to change the php version to an specific folder
« Reply #1 on: February 10, 2023, 05:37:14 AM »
Just to be clear, you're using php-fpm with PHP version 8.1? It is a different animal than the PHP Selector versions of PHP.

Offline
*
Re: How to change the php version to an specific folder
« Reply #2 on: February 10, 2023, 02:14:04 PM »
yes php-fpm 8.1

I installed the cgi version of php 8.0 and it worked. but I read php-fpm was better.