[root@hv10 ~]# /usr/local/directadmin/directadmin v
Version: DirectAdmin v.1.62.2
[root@hv10 ~]# /usr/local/directadmin/custombuild/build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using 42.117.xxx.xxx for your server IP
PHP has been secured.
Restarting php-fpm74.
Restarting php-fpm80.
Restarting php-fpm56.
Found /usr/local/directadmin/custombuild/mod_aclr2-1.0.0.tar.gz
Extracting /usr/local/directadmin/custombuild/mod_aclr2-1.0.0.tar.gz...
Installing mod_aclr2-1.0.0...
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -I/usr/local/include -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -c -o mod_aclr2.lo mod_aclr2.c && touch mod_aclr2.slo
/var/www/build/libtool --silent --mode=link gcc -std=gnu99 -L/usr/local/lib -o mod_aclr2.la -rpath /usr/lib/apache -module -avoid-version mod_aclr2.lo
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' mod_aclr2.la /usr/lib/apache
/var/www/build/libtool --mode=install install mod_aclr2.la /usr/lib/apache/
libtool: install: install .libs/mod_aclr2.so /usr/lib/apache/mod_aclr2.so
libtool: install: install .libs/mod_aclr2.lai /usr/lib/apache/mod_aclr2.la
libtool: install: install .libs/mod_aclr2.a /usr/lib/apache/mod_aclr2.a
libtool: install: chmod 644 /usr/lib/apache/mod_aclr2.a
libtool: install: ranlib /usr/lib/apache/mod_aclr2.a
libtool: finish: PATH="/root/bao/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/lib/apache
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/apache
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/apache/mod_aclr2.so
[activating module `aclr' in /etc/httpd/conf/httpd.conf]
mod_aclr2 has been installed successfully.
Restarting apache.
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using 42.117.xxx.xxx for your server IP
Using 42.117.xxx.xxx for your server IP
PHP has been secured.
Restarting php-fpm74.
Restarting php-fpm80.
Restarting php-fpm56.
Job for php-fpm56.service invalid.
Restarting nginx.
[root@hv10 ~]# service httpd status
Redirecting to /bin/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 Mon 2021-06-21 13:42:07 +07; 5s ago
Process: 20775 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 20775 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
Jun 21 13:42:07 hv10 systemd[1]: Starting The Apache HTTP Server...
Jun 21 13:42:07 hv10 httpd[20775]: AH00526: Syntax error on line 26 of /usr/local/directadmin/data/users/admin/httpd.conf:
Jun 21 13:42:07 hv10 httpd[20775]: Invalid command '|UNIT_PROXY|', perhaps misspelled or defined by a module not included in the server configuration
Jun 21 13:42:07 hv10 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 21 13:42:07 hv10 systemd[1]: Failed to start The Apache HTTP Server.
Jun 21 13:42:07 hv10 systemd[1]: Unit httpd.service entered failed state.
Jun 21 13:42:07 hv10 systemd[1]: httpd.service failed.
[root@hv10 ~]# sed -i '/|UNIT_PROXY|/d' /usr/local/directadmin/data/users/*/httpd.conf
[root@hv10 ~]# systemctl restart httpd
[root@hv10 ~]#