Solved The /usr/local/directadmin/data/templates/custom/ Directory is Missing

AfterInfinity

Verified User
Joined
Jul 16, 2021
Messages
16
Hey there!

I was about to start working on this guide.

In the guide I'm told to copy the vhost template with this command
Code:
cp -p /usr/local/directadmin/data/templates/openlitespeed_vhost.conf /usr/local/directadmin/data/templates/custom/

Entering this command gives me
Code:
cp: cannot create regular file '/usr/local/directadmin/data/templates/custom/': Not a directory

This command means that the /custom/ directory doesn't exist to copy the file.

Is this normal? Was this a bug when installing DirectAdmin?
As I understood this folder should pre-exist.

Kind Regards
 
It might be a bit odd, but the custom folder is not used by default so you can easily create it yourself.

mkdir -p /usr/local/directadmin/data/templates/custom/
Then chown it to diradmin. It should look like this:
diradmin:diradmin drwx--x--x 2 diradmin diradmin 4.0K 2020-11-02 02:26 custom

after that you should be good to go.
 
It might be a bit odd, but the custom folder is not used by default so you can easily create it yourself.

mkdir -p /usr/local/directadmin/data/templates/custom/
Then chown it to diradmin. It should look like this:
diradmin:diradmin drwx--x--x 2 diradmin diradmin 4.0K 2020-11-02 02:26 custom

after that you should be good to go.

Hi Richard,

What would be the exact command for this to work:
diradmin:diradmin drwx--x--x 2 diradmin diradmin
 
I will put them together so it's easier for everyone looking for this.

mkdir -p /usr/local/directadmin/data/templates/custom/ chmod 711 /usr/local/directadmin/data/templates/custom/ chown diradmin:diradmin /usr/local/directadmin/data/templates/custom/ -R

or like this:
Code:
cd /usr/local/directadmin/data/templates
mkdir -p custom
chmod 711 custom
chown diradmin:diradmin custom
 
Back
Top