How to Set Custom DocumentRoot for a Domain in DirectAdmin

If you need to permanently change Apache DocumentRoot for just a single domain, you should do this as Admin. Go to http://[domain]:2222/CMD_CUSTOM_HTTPD?domain=[domain] In the first window, under Only add the few lines of the VirtualHost you need to insert. Do not add a whole .. Add the following line: |?DOCROOT=/custom/document/root| Don’t forget to put pipes at the start… Read More »

How to Install Composer for a Directadmin Server

Here is a quick guide for composer setup on a DirectAdmin server (if you want to make it available for all users). We will use Directadmin Composer plugin – you can get one here First of all, we will need root access to install this plugin. Here is the list of commands for that: cd /usr/local/directadmin/plugins; wget https://github.com/Marco129/DirectAdmin-Composer/archive/master.zip;… Read More »