directadmin downgrade or compilation
Step 1 :- M 2.3.4 to M 2.3.6
Php :- 7.3
Mysql :- 5.7
Composer :- 1.10.26
MariaDB :- 10.2
vi /usr/local/directadmin/custombuild/options.conf #here you can modify 7.3 to 7.4
cd /usr/local/directadmin/custombuild
./build update
will remove any added php module from this file lcoation php custom files (configure.php73)
-----------------------------------------------------------------------------------------------------
to get current config files used
cd /usr/local/directadmin/custombuild
./build used_configs | grep configure.php
PHP (default) configuration file: /usr/local/directadmin/custombuild/configure/php/configure.php56
phpMyAdmin configuration file: /usr/local/directadmin/custombuild/configure/phpmyadmin/config.inc.php
-------------------------------------------------------------------------------------------------------------
/usr/local/directadmin/custombuild/configure/php
you can skip above build update cmd
./build php n
For mysql
vi /usr/local/directadmin/custombuild/options.conf
specify MariaDB version here
./build mariadb n
composer self-update 1.10.26
[root@server-154-27-78-218 custombuild]# php -v
PHP 7.3.33 (cli) (built: Sep 22 2022 19:24:30) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
[root@server-154-27-78-218 custombuild]# mysql -V
mysql Ver 15.1 Distrib 10.2.44-MariaDB, for Linux (x86_64) using readline 5.1
[root@server-154-27-78-218 custombuild]# composer -V
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer version 1.10.26 2022-04-13 16:39:56
[root@server-154-27-78-218 custombuild]# mysql -V
mysql Ver 15.1 Distrib 10.2.44-MariaDB, for Linux (x86_64) using readline 5.1
[ERROR] Unknown/unsupported storage engine: InnoDB
sudo systemctl stop mysqld.service && sudo yum remove -y mariadb mariadb-server && sudo rm -rf /var/lib/mysql /etc/my.cnf
configure: error: Please reinstall the iconv library.install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-7.4.33.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.WWg8acrDBG.php-7.4.33.tar.gz'
check iconv version
iconv --version
should be 1.16
[root@sm242 tmp]# iconv --versioniconv (GNU libiconv 1.16)
wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gztar -xzvf libiconv-1.16.tar.gzcd libiconv-1.16
./configuremakesudo make installiconv --version
sudo yum groupinstall 'Development Tools'sudo yum install libtool
then exit the terminal and relogin ssh
Comments
Post a Comment