UBUNTU DNS
-
sudo passwd
-
su
-
apt-get update
-
apt-get install apache2 bind9 nmap ssh vim mysql-server mysql-client php5
libapache2-mod-php5 dpkg php5-mysql php5-curl php5-gd php5-intl php-pear
php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell
php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
-
cd /etc/bind
-
vim named.conf.local
zone
"Namakalian.smknusabangsa.web.id" {
type master;
file "/etc/bind/db.keset";
};
zone
"10*.168.192.in-addr.arpa" {
type master;
file
"/etc/bind/db.raiso_sisan";
};
nb : * = nomor absen kalian
------save :wq
-
cp db.local db.keset
-
cp db.127 db.raiso_sisan
-
vim db.keset
$TTL 604800
@ IN
SOA localhost. root.localhost.
(
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN
NS localhost. ; delete this line
@ IN
A 127.0.0.1 ; delete this line
@ IN
AAAA ::1 ; delete this line
ganti
jadi seperti ini
$TTL 604800
@ IN
SOA server.nama.smknusabangsa.web.id.
server.nama.smknusabangsa.web.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN
NS
server.nama.smknusabangsa.web.id
@ IN
A 192.168.10*.1
server IN A
192.168.10*.1
--------save
:wq
-
vim db.raiso_sisan
ganti menjadi seperti ini
$TTL 604800
@ IN
SOA
server.nama.smknusabangsa.web.id. server.nama.smknusabangsa.web.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN
NS
server.nama.smknusabangsa.web.id
2 IN PTR server.nama.smknusabangsa.web.id
-
mysql_secure_installation
-
cd /home/ && wget http://wordpress.org/latest.tar.gz
-
tar -xvzf latest.tar.gz
-
mv wordpress/* /var/www/html/
-
mysql -u root -p
-
CREATE DATABASE wpdb;
-
CREATE USER wpuser@localhost IDENTIFIED BY '123456';
-
GRANT ALL ON wpdb.* to wpuser@localhost;
-
FLUSH PRIVILEGES;
-
exit
-
cp /var/www/html/wp-config-sample.php /var/www/html/wp-config.php
-
vim /var/www/html/wp-config.php
// ** MySQL settings – You can get
this info from your web host ** //
/** The name of the database for
WordPress */
define(‘DB_NAME’, ‘wpdb‘);
/** MySQL database username */
define(‘DB_USER’, ‘wpuser‘);
/**
MySQL database password */
define(‘DB_PASSWORD’, ‘password‘);
-
chown -R www-data:www-data /var/www/html/
-
chmod -R 755 /var/www/html/
-
rm /var/www/html/index.html
-
service apache2 restart
-
/etc/init.d/bind9 restart
Komentar
Posting Komentar