Â
yum install bind-chroot
cp -ar /etc/named.conf /etc/named.conf.bak7
vi /etc/named.conf
Under "options {" change
listen-on port 53 { 127.0.0.1; };
to
listen-on port 53 { 68.171.223.60; 68.171.223.60; };
**************************
allow-query { localhost; };
recursion yes;
***************************
to
=========================
allow-query { any; };
recursion no;
=========================
Add the zone file conf to the bottom of /etc/named.conf
***********************************************
zone "anoopjohn.me" IN {
type master;
file "/var/named/anoopjohn.me.db";
};
***********************************************
vi /var/named/anoopjohn.me.db
*************************************************
$TTL 14400
anoopjohn.me. 86400 IN SOA ns1.chemparathy.com. a24uall.gmail.com. (
2013042504 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 ;minimum
)
anoopjohn.me. 86400 IN NS ns1.chemparathy.com.
anoopjohn.me. 86400 IN NS ns2.chemparathy.com.
ns2 14400 IN A 68.171.218.74
ns1 14400 IN A 68.171.218.73
anoopjohn.me. 14400 IN A 68.171.223.60
localhost 14400 IN A 127.0.0.1
anoopjohn.me. 14400 IN MX 0 anoopjohn.me.
mail 14400 IN CNAME anoopjohn.me.
www 14400 IN CNAME anoopjohn.me.
ftp 14400 IN CNAME anoopjohn.me.
svn 14400 IN A 68.171.223.59
***************************************************
Â
save and restart named
/etc/init.d/named restart
chkconfig named on
useradd anoop
passwd anoop
chmod 0755 /home/anoop
mkdir /home/anoop/public_html
yum groupinstall "Web Server"
cp -ar /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak7
vi /etc/httpd/conf/httpd.conf
#ServerName www.example.com:80
to
ServerName 68.171.223.59:80
#NameVirtualHost *:80
to
NameVirtualHost *:80
or the specific IP address that you want
eg :
NameVirtualHost 68.171.223.59:80
DirectoryIndex index.html index.php
Scroll down to the bottom of httpd.conf and add the configuration for the first domain
******************************************************
<VirtualHost 68.171.223.59:80>
ServerAdmin webmaster@vpsinsight.com
DocumentRoot /home/svnanoop/public_html
#php_admin_value open_basedir /home/svnadmin/public_html:/var/www/tmp
ServerName svn.anoopjohn.me
ErrorLog logs/svn.anoopjohn.me-error_log
CustomLog logs/svn.anoopjohn.me-access_log common
</VirtualHost>
******************************************************
selinux settings : Allow apache to read the homedirectory.
setsebool -P httpd_enable_homedirs 1
Restart httpd
/etc/init.d/httpd restart
chkconfig httpd on
Â
yum groupinstall "MySQL Database server"
service mysqld start
chkconfig mysqld on
mysql_secure_installation
cat /root/.my.cnf
[client]
password="noon123"
user=root
mysql
create database anoop_wp1;
create user anoop_usr1
or
CREATE USER 'anoop_usr1'@'localhost' IDENTIFIED BY 'AnoopJohn';
GRANT ALL PRIVILEGES ON anoop_wordp1.* TO 'anoop_usr1'@'localhost' WITH GRANT OPTION;
Â
Â
Â