Dear forum,
I currently experience the same problem and I've done all I could in this thread, along with Googling to try and fix this issue.
After using the update custombuild button and update all, the edit options section no longer seems to work and although it's off-topic, I'd still like to mention the thrown error that made me do the decission changing up PHP versions:
Code:
Parse error: syntax error, unexpected '?' in /usr/local/directadmin/plugins/custombuild/admin/tabs/edit_options.php on line 33
Some servers had it, some don't. Those that did have it had in common that all of them were operating under PHP 5.6 or below.
I have made the change of going from PHP 5.6 as the default php with php1_mode mod_php and 8.0 with php2_mode php-fpm to switching the 2 of them, meaning 8.0 mod_php as first choice and 5.6 php-fpm as 2nd choice.
Immediately after this change, nothing bad happens besides the now incorrectly chosen PHP versions on all hosting accounts as they were now on 8.0 instead of 5.6. But that is beside the point. I switch the versions around for each user and that fixes that. When things do break is when I execute the following command:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
It will immediately break with the following message:
Code:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Code:
[root@vps01 ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-01-05 17:39:07 CET; 6s ago
Process: 10209 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 10209 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
Jan 05 17:39:07 vps01.jk.nl systemd[1]: Starting The Apache HTTP Server...
Jan 05 17:39:07 vps01.jk.nl httpd[10209]: AH00112: Warning: DocumentRoot [/home/denoord/domains/dev.heerhugowaarddenoord.nl/public_html] does not exist
Jan 05 17:39:07 vps01.jk.nl httpd[10209]: AH00526: Syntax error on line 33 of /usr/local/directadmin/data/users/ovnh/httpd.conf:
Jan 05 17:39:07 vps01.jk.nl httpd[10209]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
Jan 05 17:39:07 vps01.jk.nl systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 05 17:39:07 vps01.jk.nl systemd[1]: Failed to start The Apache HTTP Server.
Jan 05 17:39:07 vps01.jk.nl systemd[1]: Unit httpd.service entered failed state.
Jan 05 17:39:07 vps01.jk.nl systemd[1]: httpd.service failed.
[root@vps01 ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/php80/lib/php/extensions/no-debug-zts-20200930/imagick.so (/usr/local/php80/lib/php/extensions/no-debug-zts-20200930/imagick.so: cannot open shared object file: No such file or directory), /usr/local/php80/lib/php/extensions/no-debug-zts-20200930/imagick.so.so (/usr/local/php80/lib/php/extensions/no-debug-zts-20200930/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.0.14 (cli) (built: Jan 5 2022 17:08:01) ( ZTS )
Copyright (c) The PHP Group
Zend Engine v4.0.14, Copyright (c) Zend Technologies
My PHP specs as-is right now are:
php1_release=8.0
php1_mode=php-fpm
php2_release=5.6
php2_mode=php-fpm
mod_ruid2=no
I've made the change from 8.0 mod_php to php-fpm after finding out it could break this exact flag, same with mod_ruid2 which was initially set to yes. Php 3 and 4 are not present.
I've ./build the php versions 4 times at this point, always fixing itself until I use ./build rewrite_confs . I have not yet tried a ./build_all, but I'm deliberately not wanting to perform one right now as for 1 it's late in the office hours at the time of writing this and I have yet to set 163 domains to 5.6, and 2 there's no clear reason for me to do so.
I'm looking forward to hearing from everyone for suggestions at this point.
Edit: my priority right now is not the non-functioning imagick as that's only 1 specific domain that doesn't have priority over everything not working as intended right now to begin with.