DirectAdmin php.conf.d missing on PHP 8 with PHP-FPM

AhmetBas

Verified User
Joined
Oct 28, 2020
Messages
48
Hello,

Earlier today I installed a fresh Directadmin installation on Ubuntu 20.04 with the following command:

This is installed by default PHP 7.4 with PHP-FPM, I enabled the second PHP selector with the following commands:
cd /usr/local/directadmin/custombuild
./build update
./build set php2_release 8.0
./build set php2_mode php-fpm
./build php n
./build rewrite_confs

Once the installation was done I was missing the folder "/usr/local/php80/lib/php.conf.d/". Did I make any mistakes? I checked my options.conf for PHP config which is as followed:

#PHP Settings
php1_release=7.4
php1_mode=php-fpm
php2_release=8.0
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
php4_release=no
php4_mode=php-fpm
secure_php=yes
php_ini=yes
php_timezone=Etc/UTC
php_ini_type=production
x_mail_header=yes

I also tried to full rebuild but it did not either resolve my issue:

cd /usr/local/directadmin/custombuild
./build clean
./build update
./build update_versions
./build all d
./build rewrite_confs

Anyone who ran into the same issue or can help me resolve this issue for PHP 8.0?
 
What's the output of:
Code:
/usr/local/php80/bin/php80 --ini
 
What's the output of:
Code:
/usr/local/php80/bin/php80 --ini
The output can be found below:
root@srv04:~# /usr/local/php80/bin/php80 --ini
Configuration File (php.ini) Path: /usr/local/php80/lib
Loaded Configuration File: /usr/local/php80/lib/php.ini
Scan for additional .ini files in: /usr/local/php80/lib/php.conf.d
Additional .ini files parsed: (none)

/usr/local/php80/lib:
root@srv04:/usr/local/php80/lib# ls -la /usr/local/php80/lib/
total 61304
drwxr-xr-x 3 root root 4096 Nov 15 23:13 .
drwxr-xr-x 10 root root 4096 Nov 15 14:16 ..
-rwxr-xr-x 1 root root 62681648 Nov 15 15:15 libphp.so
drwxr-xr-x 15 root root 4096 Nov 15 14:16 php
-rw-r--r-- 1 root root 72744 Nov 15 15:15 php.ini
 
Which files am I missing and is it safe to create the missing files manually?
 
I guess you may not have any PHP extensions enabled, yes, it's safe to create the directory.
 
I guess you may not have any PHP extensions enabled, yes, it's safe to create the directory.
Thx, indeed by default no PHP extensions were enabled. The webapps.ini is missing for the PHP 8.0 is that an issue and in which condition will that be created?
 
Back
Top