What's happening with "rewrite_confs"

Nemesiz

Verified User
Joined
Aug 31, 2005
Messages
27
Location
Lithuania
Hello,

I`m trying to set up CloudLinux. It is great stuff, but some actions worries me.

Code:
# da build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Configuring /etc/container/php.handler...
2023/12/19 18:29:09  info executing task            task=action=rewrite&value=ips
Using X.X.X.X for your server IP
CloudLinux Selector setup: successful
PHP has been secured.
download_with_cache: using cached '/usr/local/directadmin/custombuild/cache/mod_lsapi-1.1-71.tar.gz' file
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 1:22:57 ago on Tue Dec 19 17:06:20 2023.
Package yum-utils-4.0.21-23.el8.alma.1.noarch is already installed.
Package file-5.33-25.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 1:23:02 ago on Tue Dec 19 17:06:20 2023.
Package alt-python37-lxml-4.4.3-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 1:23:06 ago on Tue Dec 19 17:06:20 2023.
Package criu-lve-3.13-6.el8.x86_64 is already installed.
Package criu-lve-devel-3.13-6.el8.x86_64 is already installed.
Package crit-lve-3.13-6.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 1:23:10 ago on Tue Dec 19 17:06:20 2023.
liblsapi-1.1-71.el8.cloudlinux.x86_64.rpm       101 kB/s |  93 kB     00:00
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 1:23:15 ago on Tue Dec 19 17:06:20 2023.
liblsapi-devel-1.1-71.el8.cloudlinux.x86_64.rpm  60 kB/s |  52 kB     00:00
mod_lsapi.da_cb_install: CSF config found - exceptions for lsphp are added, lfd service restarted
CMake Deprecation Warning at CMakeLists.txt:13 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Version 2.4...
-- apache 2.4 detected...
-- Found Apache Portable Runtime: /usr/local/apache/include, /usr/local/apache/lib/libapr-1.so
-- Found Apache Portable Runtime Utils: /usr/local/apache/include, /usr/local/apache/lib/libaprutil-1.so
-- Found Apache Bin Directory: /usr/local/apache/bin, /usr/local/apache/modules
-- Found Apache2: /usr/local/apache/include
-- ****** DirectAdmin Apache 2.4 found
-- ****** DirectAdmin Apache HTTPD Include dir:   /usr/local/apache/include
-- ****** DirectAdmin Apache APR Include dir:     /usr/local/apache/include
-- ****** DirectAdmin Apache APRUTIL Include dir: /usr/local/apache/include
-- ****** DirectAdmin Apache HTTPD Modules dir:   /usr/local/apache/modules
-- ****** DirectAdmin Apache HTTPD Libraries dir: /usr/local/apache/lib
-- ****** DirectAdmin Apache HTTPD Bin dir:       /usr/local/apache/bin
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/directadmin/custombuild/tmp/tmp.IlvnsAc5yM.mod_lsapi-1.1-71.tar.gz
[  0%] Built target stat_support
[  8%] Building C object CMakeFiles/mod_lsapi.dir/src/mod_lsapi/mod_lsapi.o
[ 16%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/config.o
[ 25%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/connect.o
[ 33%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/do.o
[ 41%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/parsevars.o
[ 50%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/httpreq.o
[ 58%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/mutex.o
[ 66%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/pool.o
[ 75%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/starter.o
[ 83%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/sulsphp.o
[ 91%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/sentry.o
[100%] Linking C shared module build/lib/mod_lsapi.so
[100%] Built target mod_lsapi
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/apache/modules/mod_lsapi.so
###################################################################################################################################################################################################################################### 100.0%
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...
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -I/usr/local/include  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/local/apache/include  -I/usr/local/apache/include   -I/usr/local/apache/include   -c -o mod_aclr2.lo mod_aclr2.c && touch mod_aclr2.slo
/usr/local/apache/build/libtool --silent --mode=link gcc -L/usr/local/lib   -o mod_aclr2.la  -rpath /usr/local/apache/modules -module -avoid-version    mod_aclr2.lo
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' mod_aclr2.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install install mod_aclr2.la /usr/local/apache/modules/
libtool: install: install .libs/mod_aclr2.so /usr/local/apache/modules/mod_aclr2.so
libtool: install: install .libs/mod_aclr2.lai /usr/local/apache/modules/mod_aclr2.la
libtool: install: install .libs/mod_aclr2.a /usr/local/apache/modules/mod_aclr2.a
libtool: install: chmod 644 /usr/local/apache/modules/mod_aclr2.a
libtool: install: ranlib /usr/local/apache/modules/mod_aclr2.a
libtool: finish: PATH="/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/apache/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache/modules

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/local/apache/modules/mod_aclr2.so
[activating module `aclr' in /usr/local/apache/conf/httpd.conf]
mod_aclr2 has been installed successfully.
Restarting apache.
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
2023/12/19 18:29:51  info executing task            task=action=rewrite&value=ips
Using 192.168.11.1 for your server IP
Using lan_ip=10.10.10.21 as a secondary server IP
Using 192.168.11.1 for your server IP
CloudLinux Selector setup: successful
PHP has been secured.
2023/12/19 18:29:56  info executing task            task=action=rewrite&value=nginx
Restarting nginx.
2023/12/19 18:29:58  info executing task            task=action=directadmin&value=reload

1. Changes in /etc/container/php.handler

My original file:

Code:
application/x-httpd-php /opt/alt/php.perdir/php82/bin/lsphp
application/x-httpd-php56 /opt/alt/php.perdir/php56/bin/lsphp
application/x-httpd-php74 /opt/alt/php.perdir/php74/bin/lsphp
application/x-httpd-php80 /opt/alt/php.perdir/php80/bin/lsphp
application/x-httpd-php81 /opt/alt/php.perdir/php81/bin/lsphp
application/x-httpd-php82 /opt/alt/php.perdir/php82/bin/lsphp
application/x-httpd-php83 /opt/alt/php.perdir/php83/bin/lsphp

After rewrite:

Code:
application/x-httpd-php /usr/local/bin/lsphp
application/x-httpd-php82 /opt/alt/php.perdir/php82/bin/lsphp

who affects the creation of the contents of this file?

2. I`m asking to rewrite configs, not to build/install/reinstall/update something. Why mod_lsapi and mod_aclr2 are compiled ? They are in place already.
 
hmm, better to reinstall OS and CL from DA-panel with Cloudlinux Wizard, there you can select needed versions because looks like DA think you using DA php versions, not provided by CL. Or check Cloudlinux menu and add another PHP versions, so DA will see them and will not rewrite /etc/container/php.handler
----
if you have such posibility - I prefer install CL directly from their ISO, it works without issues (sometimes conversion fails or kernel replacement and bootloader fails (on RAIDs), like when migration CL 8.7-8.8 was, maybe they fixed it).
 
I installed CL 8.8 and then DA.

I can select PHP versions with no problem. Reinstall OS is not the solution. I just need to know where DA is looking for the information.

sc.PNG
 
Back
Top