Control Web Panel
WebPanel => How to => Topic started by: Style 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?
-
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.
-
yes php-fpm 8.1
I installed the cgi version of php 8.0 and it worked. but I read php-fpm was better.