Page 1 of 1

How to solve : detect disable_functions correctly (DirectAdmin)

Posted: 15 May 2022, 14:59
by MacLeod
Message: CSF unable to detect disable_functions correctly inside Directadmin?

Hi, I still get this message after i installed CSF on my DirectAdmin based Almalinux8 server :-(

Were can i find more info te solve this asap?

Gr. Leo aka MacLeod

Re: How to solve : detect disable_functions correctly (DirectAdmin)

Posted: 15 May 2022, 21:15
by Black Tiger
Hello.

This issue is occuring since Directadmin had removed the symlink from the former php.ini location /usr/local/lib/php.ini to the current location.
The default php version selection for the server where CSF should look for the information is PHP1, but problem is this can be any php version.

So now the php.ini location is /usr/local/phpXX/lib/php.ini as the where the XX can be anything.

Also there can be multiple locations for this, like:
/usr/local/php80/lib/php.ini
/usr/local/php74/lib/php.ini
/usr/local/php81/lib/php.ini
But probably due to the alphabet sort, the php1 will not appear automatically as the first directory present.

The default server php version (php1) can be taken from the /usr/local/directadmin/custombuild/options.conf file. So maybe CSF is able to extract it from there and then check the presence.

So if CSF is able to fix this some how, that would be great.