installation 1 2 3

questions

Verified User
Joined
Oct 24, 2009
Messages
137
So I have to finally get a new server and my DirectAdmin is 98% installed... it's been about 20 years since I last installed DirectAdmin so I am very rusty.

Is there a step by step install guide?

I can log into the panel via the IP... I think I do the DNS next... what custom build config should I do for hosting mom and pop Wordpress sites with no SSL access? I don't want to contact DA support because they are so mean so I'm looking for some help here...
 
The documentation leaves off here:

#Accessing the Control Panel​

DirectAdmin can be accessed at . Use the Admin username/password from the output information provided by setup.sh (the same information is specified in the /usr/local/directadmin/scripts/setup.txt file).

Check first steps for next move.

#Need more information?​

You can email questions to [email protected] or send an inquiry by visiting the contactsopen in new window page. We are available Monday through Friday, 9 AM - 5 PM Mountain Standard Time. You may also visit the forumsopen in new window to see if your question has been answered there.
 
So I guess I do this?


2. Secure your server​

Security does matter!

If you did not customize the installation, you are already secured with a firewall as it installs the CSF firewall and activates the Brute Force Manager right after installation.

If not, you should install the CSF firewall.

Secure and harden your server. The guide contains a few more steps, and the most valuable are:

  • Enable disable_functions auto-fill with secure_php
  • Configure auto-update for used software
  • Install mod_security
  • Enforce using difficult passwords by users
  • Enable LetsEncrypt for the hostname, which also enables it for webmails and the DirectAdmin panel

#3. Configure your server​

  1. Customize a skin - perform branding to make your server your own.
  2. Select your WWW server.
  3. Set up proper nameservers.
  4. Use clients' assigned IPs for their domains to send from when sending mailopen in new window.
  5. Enable backups for both the system and users.
  6. Enable BubbleWrap jail for users (CentOS 7 required).
Consider using CloudLinuxopen in new window for better stability, security, and per-account resource management.
 
Now I'm here... and not sure what to do... I probably messed it up... I don't see mariadb in there...

cd /usr/local/directadmin/custombuild
./build update
./build set webserver apache
./build php1_mode fastcgi
./build php2_mode fastcgi
./build php3_mode fastcgi
./build php4_mode fastcgi
./build apache
./build php n
./build rewrite_confs
Not nice of you because they really are not.

CSF is already installed automatically if al is well.

I think the rest you already found.
I'm a little confused at the purpose of these lines:
./build php1_mode fastcgi
./build php2_mode fastcgi
./build php3_mode fastcgi
./build php4_mode fastcgi


What did that do?

How do I set mariadb and not mysql? which is the best version right now for mariadb?



I've completed up to this ./build apache <--- that line was exectuted...

Am I too late to specify mariadb?

Can you give me a refresher in the php options, how do I tell which option for php I have now on my old server?
 
I executed all of these lines... is that correct or was I supposed to only execute 1 of them?

./build php1_mode fastcgi
./build php2_mode fastcgi
./build php3_mode fastcgi
./build php4_mode fastcgi
 
Not nice of you because they really are not.

CSF is already installed automatically if al is well.

I think the rest you already found.


I didn't do the basic installation, the techs at the data center did, then handed it off to me, so I don't know what was done and not done... I just know I'm logged in via SSH and through the IP into the control panel...


I think I want to have mariadb, is there any reason not to? Not sure how to put it into the build config file and which version so it's not too new and not too old of the version... main use for the server is hosting wordpress sites for myself and mom and pop businesses...
 
I think I want to have mariadb, is there any reason not to?
Might be, not that I'm aware of in any case. The default installation is with CSF firewall, you should be able to see that when logged in as admin in DA itself.

I'm using MariaDB 10.4 which is in the middle a bit. I don't know which is installed by default nowadays, maybe 10.5 but it's easy to check, just issue this command via SSH:
mysql -V
even when running MariaDB it will show the correct version.
 
there is no mysql installed yet... no csf installed yet... the techs at the data center only went up to step 2 and did not do any part of step 2... i'm sure I can do CSF later, right?


Can you help me with my questions?


1)
I'm a little confused at the purpose of these lines:
./build php1_mode fastcgi
./build php2_mode fastcgi
./build php3_mode fastcgi
./build php4_mode fastcgi


What did that do?

2)
when do I type build all?



3) what are the php options and why use each and how to tell which php config option I have on my current server I will just do that?

4) what's the benefit to mariadb for a server not doing enterprise level things, just for basic wordpress websites for realtors and lawyers who never actually use DirectAdmin, just check email... why not just keep it simple stupid and do a default installation with mysql?


Can you help me with the answers to these 4 questions?
 
It would be better to format the harddisk, put in a small OS install and then install DA yourself so you get the minimum default you want.
Also, we don't know what those techs did and what is and isn't running at the moment. So hard to say what's going on.

1.) That is if you want multiple php versions we use mode php-fpm. Where did you find those lines?

2.) Exactly what it says, it build all. Or more specific all what is set in the /usr/local/directadmin/custombuild/options.conf where you can set a lot of options.

3.) You can find that in the docs.
First php option in options.conf is also used as default for the server when user did not make a selection.

4.) I'm not going to discuss MariaDB. There are enough sites on the net where you can find comparisons. I can only say MariaDB works just as good for Wordpress and forums then Mysql.

why not just keep it simple stupid and do a default installation with mysql?
Because it's kept "simple stupid" and a default installation with MariaDB is made.
 
Back
Top