Using custom configuration Custombuild

blackronin

New member
Joined
Mar 19, 2017
Messages
3
Hello

I want change php and mariadb versions, also i want make my own changes in apache and use opcache.
How to do that ?

I found https://help.directadmin.com/item.php?id=351
But i don't understand bolded text:
as needed. The custom path overrides the default, and won't be overritten. Your customized files will be used for the overwrite, so you just need to remember to make your changes in the custom path, as well as the main httpd.conf.

main httpd.conf .. is that mean /etc/httpd/conf/httpd.conf ?

I also want use php 7.1 with own config (which will be not overriden) and mariadb 10.2
 
/etc/httpd/conf/httpd.conf is the main conf.

As far as I know, edits over the php.ini files will not be overwritten.

MariaDB 10.2 is not stable release and will not be in custombuild until it is.
 
Yes, main httpd.conf is /etc/httpd/conf/httpd.conf however I would strongly suggest to use the custombuild method, mentioned under 2 in the same help page.

For the php and mariaDB questions somebody else has to answer that, I don't know.

Edit: Ah just was writing when Watty answered, did'nt see that. ;)
 
Thank you for reply.

Ok so to change apache configs path:
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -Rp configure/ap2/conf custom/ap2
And i can adjust settings in custom/ap2/httpd.conf ?
And command
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
Will overwrite /etc/httpd/conf/httpd.conf with content in custom/ap2/httpd.conf ?
And ./build update will not overrite my apache configs ?

To change php version with fpm:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set php1_release 7.1
./build set php2_release no
./build set php1_mode php-fpm
./build set mod_ruid2 no
?

And php config will be in /usr/local/php71/lib/php.ini, which will be not overritten after ./build update ?

Ok, i want use 10.1 mariadb, for now i have 5.5.41-MariaDB
 
Will overwrite /etc/httpd/conf/httpd.conf with content in custom/ap2/httpd.conf ?
And ./build update will not overrite my apache configs ?
Exactly. ./build update or ./build httpd will always look at the custom directory's first so custom settings will get saved.

As said I don't know about MariaDB. Normally php.ini files will not be overwritten unless you have php_ini=yes in options.conf if I remember correctly. This setting is no by default.
 
Back
Top