Tips Secure Centos Directadmin

Cara mengamankan port directadmin

edit /usr/local/directadmin/conf/directadmin.conf

edit /usr/local/directadmin/data/templates/directadmin.conf

lalu ubah port sesuka anda

 

kemudian amankan sshd anda dengan cara :

edit nano /etc/ssh/sshd_config

lalu ubah port sesuka selera

 

Softaculous ioncube loaders on directadmin CentOS

Caranya

cd /tmp
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xfz ioncube_loaders_lin_x86-64.tar.gz
mv ioncube /usr/local/
rm ioncube_loaders_lin_x86-64.tar.gz

nano /usr/local/directadmin/plugins/softaculous/php.ini
#zend_extension = “/usr/local/directadmin/plugins/softaculous/ioncube.so”
zend_extension = “/usr/local/ioncube/ioncube_loader_lin_5.6.so”

service httpd restart

How-To install nginx_mainline with CustomBuild 2

Want to have nginx_mainline installed on your server to gain from using HTTP/2, here are instructions on how to install nginx_mainline.

Install nginx_mainline

Run this code to get a script to install nginx_mainline:

 

cd /usr/local/directadmin/custombuild/
touch ./build_nginx-custom
chmod 755 ./build_nginx-custom
vi ./build_nginx-custom


 

Press “Insert” and paste the following code into the created file:

#!/bin/bash
NGINX_VER=1.9.11
cd /usr/local/directadmin/custombuild
cat custom_versions.txt | grep -Ev "^nginx:|^$" > custom_versions.txt.new
mv -f custom_versions.txt.new custom_versions.txt
echo "nginx:${NGINX_VER}:" >> custom_versions.txt
wget http://nginx.org/download/nginx-${NGINX_VER}.tar.gz -O nginx-${NGINX_VER}.tar.gz
./build update
./build nginx

Press “Escape” then “:x” and “Enter” to save and exit.

To get nginx mainline installed:

cd /usr/local/directadmin/custombuild
./build_nginx-custom

Update version very easy

Later when a new version will be released just update the script with its number, ie. line:

NGINX_VER=1.9.11

Custom options for configure NGINX

If you need to configure nginx with your own set of options/modules run this code:

Stand-alone NGINX:

cd /usr/local/directadmin/custombuild/
mkdir -p custom/nginx/
cp configure/nginx/configure.nginx custom/nginx/configure.nginx

Update custom/nginx/configure.nginx with your instructions.

Re-install nginx

Nginx in front of Apache:

cd /usr/local/directadmin/custombuild/
mkdir -p custom/nginx_reverse/
cp configure/nginx_reverse/configure.nginx custom/nginx_reverse/configure.nginx

Update custom/nginx_reverse/configure.nginx with your instructions.

Re-install nginx

PHP-Selector and DirectAdmin

Our PHP-Selector work wtih DirectAdmin only if PHP is running in suphp or fcgi mode. Here is the complete set of commands to enable selector on DA with suphp :

Same way for fcgi mode.

Goddady Promo Domain Codes

Just Click http://geeknewscentral.com/godaddy-promo-codes/

Promo Code
GoDaddy Discount offer
Save 30%* on New Product Purchases!
Get a .com for .99 cents New or Transfer
1 month FREE trial of GoDaddy Website Builder! Your choice of Personal, Business or Business plus plans!
$1.00 a month economy hosting with a FREE Domain See Details

DirectAdmin Selection PHP

you can put
<FilesMatch “\.(inc|php|php3|php4|php5|php6|phtml|phps)$”>
AddHandler x-httpd-php4 .php
</FilesMatch>

in your .htaccess then it will work

Direct Admin Full Lisensi Nakal

Before Installing, we purchased the license, and got User ID and License ID.

Install base CentOS 5.7(x86_64) and update
# yum update -y

Install compile tools if you didn’t install “Development Tools” and “Develoment Libraries”
# yum install gcc-c++ gcc automake -y

#yum -y install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel tar diffutils nano dbus.x86_64 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed.x86_64 cpan

Remove httpd, php and mysql if you have installed them

# yum remove httpd* php* mysql* -y

Disable firewall and selinux
# iptables -F
# iptables -X
# setenforce 0