Solved Pre-defined options installation, also directadmin.conf possible? And other questions

Richard G

Verified User
Joined
Jul 6, 2008
Messages
13,680
Location
Maastricht
We will be reinstalling on server with a new OS. So I was looking at pre-defined installation options like mentioned here:
So we can use the options.conf and php_extensions.conf as we are currently using, that already spares time.

But a default directadmin.conf is also very small, we have a lot of options in there which we would like to use in the new install.
1.) Is it somehow possible to also include an existing directadmin.conf or is that not possible?

2.) When installing the temporary backup VPS, I notice that the commands were not working as shown in the docs.
I tried:
DA_INTERACTIVE_CUSTOMBUILD ./setup.sh <licensekey>
but it seemed not to be recognizes if I remember correctly.
I had to do it like this:
DA_INTERACTIVE_CUSTOMBUILD=1 ./setup.sh <licensekey>
so I presume I have to use the = character after all options?
Is it possible to add multiple commands like this?

DA_INTERACTIVE_CUSTOMBUILD=1 [email protected] DA_FOREGROUND_CUSTOMBUILD=1 ./setup.sh <licensekey>
And is that correct or do I need to use =yes instead of =1?
 
maybe you forgot "export"
 
maybe you forgot "export"
That isn't really clear from the docs as it says for php modules for example.
export php_imap=yes
Then run installation with the following command: ./setup.sh license key.
So it's not on 1 line. I don't even know where that export is going to placed.

According to this example in the docs this is the commandline option and no export needed.
DA_HOSTNAME={{hostname}} ./setup.sh LICENSE_KEY
As said using the commandline I used with the =1 behind it worked on the VPS.

But I don't know how to include a directadmin.conf, looks from the docs that this is not an environment variable.
 
No, export is used before you run setup.sh which is a different method.

From your link to the docs, check this example. No export used:

1691602818166.png

And almost a page lower:
1691602956328.png

These are 3 different lines and it says "before running setup.sh".

So there are 2 different methods according to the docs.

Better example on top of the docs:

1691603094060.png

So after using export, "then run" setup.sh.
 
For anyone interested. I was, right, there are 2 methods.
1.) Either use export options and lastly run the setup or
2.) Use a commandline option in 1 line (long or short). I used this one and worked perfectly:
DA_INTERACTIVE_CUSTOMBUILD=1 [email protected] DA_FOREGROUND_CUSTOMBUILD=1 ./setup.sh auto
 
What does "DA_FOREGROUND_CUSTOMBUILD=1" do?
Is this the way to customize your settings before a "default" configuration is build?
 
From the docs

DA_FOREGROUND_CUSTOMBUILD : run CustomBuild installation in foreground DA_SKIP_CUSTOMBUILD is unset"

If not set then installation is finished in the background. If you enable this you see the complete install in your terminal
 
Back
Top