Do we still need to install DirectAdmin's pre-installation software prior to running setup.sh?

IT_Architect

Verified User
Joined
Feb 27, 2006
Messages
1,091
Do we still need to download pre-installation software prior to running setup.sh? The script always asks. I always say yes, because of my concern that the DA web site might be updated to what is required by setup.sh. A concern that goes with that is we might install a version software that becomes a compatibility issue for DirectAdmin.
 
yes, you still need if you see that it downloads and installs something - than mean that you didn't have it before.
 
Alternatively, you can run this command before running setup.sh

Code:
echo 1 > /root/.preinstall

The setup.sh will look for the above file, and if exists, it will automatically install prerequisite packages.

So you don't have to manually install it.
 
Alternatively, you can run this command before running setup.sh

Code:
echo 1 > /root/.preinstall

The setup.sh will look for the above file, and if exists, it will automatically install prerequisite packages.

So you don't have to manually install it.
That I like. It avoids situations like the following:
- Scenario: DirectAdmin's site says it wants an older version of bind, as has been common,,so that's what we install. However, the script now want's a newer version of bind, and bind running on port 53
- It gives me a chance to reboot before running setup.sh to ensure I'm starting the install with a full deck, and avoids major hair loss attempting to figure out what is wrong with my setup.sh choices when it has nothing to do with them..
- I don't need to hunt down the DirectAdmin page with the requirements every time I do an install.

Approximately once every 5 years and when I'm doing a new OS, such as now, I challenge my current procedures and industry-current thought to determine if the still make the most sense, and document well-thought-out procedures so I don't waste time trackinng things down I missed after the fact and have bits and pieces of best practices scattered across all of my installs.

Thanks!
 
I didn't find it in the new docs yet, so I thought they weren't present yet. So I haven't compared both.
However, I do know that if I run them after the setup.sh there are always packages being installed, which are not done by setup.sh. I wonder why, but I don't care as I always use them anyway and have a list.
Most of that list is nowadays skipped because setup.sh installs it, but some are still done. However, some of those I need for example for perl, munin and maybe CSF/LFD and a custom Spamassassin config so it uses Razor/pyzor.
 
If I read the setup.sh correctly, if you use setup with auto argument, it will automatically install pre-requisite files (no need to manually do that). If you don't use auto, it will still ask you to install with a question. If you answer yes, then it will install:

1636900966842.png

and the setup is smart enough to install the package based on your OS:

1636901184621.png

and if you want to force install this package, put that echo 1 > /root/.preinstall

So, I can say that you don't have to worry about the (copy paste method)

The script cannot detect whether you have installed them or not. So, you must install them first to avoid error and the script did the first step for you without manually do that (you just need to press Y) or force the installation with the .preinstall file.
 
Back
Top