DirectAdmin

How to customize PHP disable_functions in DirectAdmin

The directive “disable_functions” allows to disable certain functions. It takes on a comma-delimited list of function names.  DirectAdmin uses the directive for security purposes, and here is a way how to customise it. We need to create a file /usr/local/directadmin/custombuild/custom/php_disable_functions with our own list of functions. Let’s say we want to allow proc_close, proc_open server-wide in DirectAdmin in PHP. cd /usr/local/directadmin/custombuildtouch custom/php_disable_functions A default list includes the following PHP functions: exec, system, passthru, shell_exec, proc_close, proc_open, dl, popen, show_source, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname Our custom list will look like the following (it excludes proc_close, proc_open): exec, system, passthru, shell_exec, dl, popen, show_source, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname For this we run: cd /usr/local/directadmin/custombuildecho "exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname" > custom/php_disable_functions and then update configs: ./build set secure_php yes./build secure_php After the process completes we need to check results it with: php -i | grep ^disable_functions It’s expected to see the modified list of disabled functions without proc_close, proc_open, i.e. the excluded functions are now allowed.
Read more

How To Enable Auto-Login for Webmail in DirectAdmin

When enabled, one will see extra characters (arrow and letter) in the “Login” column when they visit the E-Mail Accounts page of the User Level. By default this feature is disabled in the directadmin.conf like so: one_click_webmail_login=0 Use the following command to check: /usr/local/directadmin/directadmin c | grep one_click_webmail_login To enable this feature, run the following commands as the root user via SSH: cd /usr/local/directadmin ./directadmin set one_click_webmail_login 1 restart cd custombuild ./build update ./build dovecot_conf ./build exim_conf ./build roundcube   Note:  if you do not see the option to automatically log into Webmail, you may not be running a recent version of DirectAdmin. If not, do the following to check:   cd /usr/local/directadmin/custombuild ./build update ./build versions_nobold | grep 'update is available.' If updates are available for DirectAdmin, run the following to apply those updates: ./build update_versions That’s it! 🙂 If you have any trouble, or are unfamiliar with running commands as the root user via SSH, please open a support ticket with our support team and we’ll be happy to accommodate this request!
Read more

How to install “Let’s Encrypt SSL Certificate” in DirectAdmin

To install “Let’s Encrypt SSL”, follow belosteps: :   1 . First, we need to make sure that “Secure SSL”  is enabled for the domain. To enable it, click on “Domain Setup”   2. Click on the domain you want to enable “Secure SSL”.   3. Tick “Secure SSL” to enable it.   4. Proceed to the User home page, then click on “SSL Certificates”   5. Follow as per diagram below and choose “Free & automatic certificate from Let’s Encrypt“.       Enter the domain name and email address.       Make sure that only domain.com and www.domain.com is selected.       Proceed to save.   6. A successful process should look as below:   7. Below is an example of the certificate that have been installed successfully. NOTE: This guide is only applicable to websites that hosted in “Let’s Encrypt” enabled DirectAdmin.  
Read more

How to Manage Multi PHP Version on DirectAdmin

Step 1 : Log into Directadmin using admin account. Step 2 : Go to Custombuild 2.0 settings. Step 3 : Go to Edit Options tab. Step 4 : There are 4 PHP_release to be selected along with PHP_Mode settings for each PHP release version. Select the PHP version for each release sequence. The recommended PHP_Mode will be using php-fpm while the version will be relying on users’ requirement. In this example we will select PHP 5.6, 7.1, 7.2 and 7.3 with php-fpm mode selected for all versions. Step 5 : Scroll down to the bottom of the page, click on Save. Step 6 : Go to Build Software tab now. Step 6 : Look for Build PHP in the page. Step 7 : Click the button Build to start building the PHP. A new browser windows shall prompt out with the build progress. Step 8 : Once the build progress done, may log into the user account level to change the PHP version for the particular domain website. In the user level, go into Domain Setup. Step 9 : Select the domain name that you wish to change the PHP version. Step 10 : Under the PHP Version Selector, select the PHP version and click on save button. The changes will takes few minutes to take affects, may wait for few minutes and try to browse your website to see if it’s loaded with the desired PHP version.
Read more

How to modify A record in DirectAdmin via DNS Management

 1. Login to your DirectAdmin account. 2. Click on “DNS management” Note: If the DNS control is not authorized, you will not see the DNS Management option listed. 3. After you click the DNS Management option, you will see the zone file of your domain. Take note that there can’t be two A records for the same domain at one time, so before you adding it, you need to delete the old one. To add a new A record, insert the name of the zone in left column, follow by the IP in the right column, and then click on “Add”. 4. Once the A record is added allow 2-24 hours for DNS propagation.
Read more

How to access webmail in DA

DirectAdmin on our servers come provisioned with one webmail application: RoundCube. Being able to access your webmail whenever necessary is important in case you’re not able to check your email on your preferred device! As long as your server is online, webmail will always be accessible! This guide is written with the steps of accessing webmail for DirectAdmin We hope this guide helps you. As always, if you ever require assistance – please reach out to us. Accessing Webmail RoundCube is the only webmail client we provision with our new DirectAdmin servers – SquirrelMail is available to be built, but it also hasn’t had major updates since 2013. In order to access webmail there are two methods to do so. Through DirectAdmin Panel URL Direct (To access directly; it would be https://{yourdomaingoeshere.com}/webmail) To access through the panel, you’ll need to login to your DirectAdmin user through the DirectAdmin Panel -– or if you’re the Administrator, you can drop in through the admin user to the account you want to access webmail. Once logged in you’ll want to go to Extra Features → Webmail: Roundcube Evolution – Default:   Evolution – Icon:   You’ll be directed to the RoundCube login form where you’ll enter your login credentials: You should use the full username of the email address (myuser@mydomain.com) and the email account’s password. Click “Login” and you are now logged into your webmail. We hope this guide has been straight-forward and helpful.
Read more

How to trace your email sending and receiving error in Directadmin

The Purpose of this guide is to assist in tracing the status of your email delivery, some ability to read through the system log is required. Step 1 : Log into Directadmin. Step 2 : Click on E-mail Accounts, a list of created email accounts will be shown. Step 3 : Trace for the name of the email account that need to be check on, look at the ‘SMTP Log’ row, In stands for Incoming email for that email account, Out stands for Outgoing email for that email account. Step 4 : Trace for the name of the email account that need to be check on, look at the ‘SMTP Log’ row, In stands for Incoming email for that email account, Out stands for Outgoing email for that email account.
Read more
Cart

No products in the cart.