Category : Control Panel

cd /ips1 wget https://download.configserver.com/csf.tgz tar zxvf csf.tgz cd csf ./install.cpanel.sh /etc/init.d/csf restart vi /etc/csf/csf.conf TESTING = “1” Change to TESTING = “0” /etc/init.d/csf restart login to cPanel > search for firewall > configserver security & firewall > enable restart..

Read more

There is simple way on how to quickly install PHP extensions without using custombuild. I used this way many times. In this case, installation was done on CentOS 7.2 server with Directadmin and PHP version 5.6.23. 1. Navigate to your Directadmin’s custombuild directory. Don’t worry, we won’t use custombuild. [root@webserver ~]# cd /usr/local/directadmin/custombuild [root@webserver custombuild]# ..

Read more

For Custombuild 2.0 cd /usr/local/directadmin/custombuild ./build update vim options.conf curl=yes ./build curl ./build php n For Custombuild 1.2 (will get error) [root@mail custombuild]# vim /usr/local/directadmin/conf/directadmin.conf [root@mail custombuild]# vim options.conf #Advanced Settings autoconf=yes automake=yes libtool=yes curl=yes new_pcre=no [root@mail custombuild]# ./build curl You cannot install curl, because you do not have it set in options.conf file. mv ..

Read more

In cPanel, when PHP-FPM is being used the users FPM settings need to be manually changed in order to modify php settings like upload_max_filesize, max_execution_time, etc.. The following file should be modified: /var/cpanel/userdata/babyli2978/babyliss.com.my.php-fpm.yaml Depends on the user’s request the lines to be added: php_admin_value_upload_max_filesize : “200M” php_admin_value_post_max_size : “200M” php_admin_value_max_execution_time : “300” php_admin_value_memory_limit : “256M” ..

Read more

cd /usr/local/directadmin/custombuild ./build update ./build set ftpd proftpd mkdir -p custom/proftpd wget -O custom/proftpd/configure.proftpd http://files.directadmin.com/services/all/sftp/configure.proftpd.sftp chmod 755 custom/proftpd/configure.proftpd ./build proftpd replace with server IP cd /etc cp proftpd.conf proftpd.conf.backup wget -O proftpd.conf http://files.directadmin.com/services/all/sftp/proftpd.conf wget -O proftpd.sftp.conf http://files.directadmin.com/services/all/sftp/proftpd.sftp.conf perl -pi -e ‘s/\|SERVER_IP\|/103.57.189.202/’ proftpd.conf perl -pi -e ‘s/\|SERVER_IP\|/103.57.189.202/’ proftpd.sftp.conf chmod 600 /etc/ssh/ssh_host_rsa_key chmod 600 /etc/ssh/ssh_host_dsa_key Go to ..

Read more

First, check UID (user ID) and LID (License ID) cat /usr/local/directadmin/scripts/setup.txt ip=103.3.173.13 netmask= uid=4115 lid=181822 Edit crontab crontab -e Add in the last line 0 6,18 * * * root /usr/local/directadmin/scripts/getLicense.sh 4115 181822; echo”action=directadmin&value=restart” >> /usr/local/directadmin/data/task.queue > /dev/null 2>&1 service cro..

Read more

Sometimes we may need to bypass the SMTP authentication for the certain sender’s IP address. In order to do so in Directadmin server, we’ll need to add sender’s IP address into exim.conf: Find the line below: hostlist relay_hosts = net-lsearch;/etc/virtual/pophosts Add senders IP address: hostlist relay_hosts = net-lsearch;/etc/virtual/pophosts : xx.xx.xx.xx Where xx.xx.xx.xx is senders IP ..

Read more