Category Archives: Linux Tutorial
Synchronizing Folders using Rsync
This is an alternative to the “mv” command (move) or cp (copy) but slightly with a added feature of doing it remotely from server to another server. Local Server rsync -avzp /source-address/* /destination-address/ Remote Server rsync -avzp -e ‘ssh -p … Continue reading
Compile PHP 5.3 via CustomBuild in Direct Admin
This is the step on how to compile your PHP into the latest version (or vice versa, according to your preferences) using CustomBuild in Direct Admin servers. Note: This same procedure also can be applied with any other supported modules … Continue reading
Adding multiple alternative SMTP Port in Direct Admin
Whereas in Direct Admin, things will done in a manual way. Ssh into the server and type: vi /etc/exim.conf Try to find “daemon_smtp_ports” and then you may add/edit the line to look like this: 25 : 587 : 26 The … Continue reading
Adding multiple alternative SMTP Port in cPanel
By default, cPanel only support one additional alternative SMTP port. However, if you need multiple port, follow the steps below: 1) Disable “exim on another port” in WHM -> Service Manager 2) Go to WHM-> Exim Configuration Editor -> Advanced … Continue reading
Custom php.ini on suPHP using .htaccess
Remove the lines that begin with “php_value” and “php_flag”. You will need to move these files to a file named php.ini and upload php.ini into your public_html directory. Then, add the following line into the .htaccess file in your public_html: … Continue reading
Fix User’s Folder and File permission when suPHP enabled
Just use the command below to fix the user’s files and folder permission. find /home/username/public_html/ -type d -exec chmod 755 {} \; find /home/username/public_html/ -type f -exec chmod 644 {} \; Repace with the real username in the system.
[HowTo] Update Timezone on CentOS/RedHat
This tutorial shows you how to update timezone on your CentOS/Redhat machine. Run the command below to install system-config-date. [root]# yum install system-config-date [root]# setup Go-to -> Timezone configuration -> Select your local time zone -> Click OK -> Quit. … Continue reading
[How-to]Install DOM XML on Directadmin
Below is the tutorial on how-to install DOM-XML in DirectAdmin using customapache. # yum install libxml2-devel libxslt-devel libgcrypt-devel # cd /usr/local/directadmin/customapache # vi configure.php Add this to configure.php before –with-gd \ : –with-dom=/usr/lib \ –with-dom-exslt=/usr/lib \ –with-dom-xslt=/usr/lib \ # ./build … Continue reading
[DirectAdmin-Problem] Fix DirectAdmin Installation on CentOS 64bit
Make sure you install these before installing DirectAdmin yum install gcc-c++ libxml2-devel libjpeg-devel libpng-devel -y As you notice on 64-bit, you have /lib and /lib64. It’s just the dynamic linking in the installer is a bit skewed, now run the … Continue reading
[OpenVZ-Problem] Server refused to allocate pty
If you are getting this error message in your OpenVZ vm, you can fix this by running command below in your VPS node: vzctl exec <VPSID> /sbin/MAKEDEV ptyp