Académique Documents
Professionnel Documents
Culture Documents
AllowOverride All
</Directory>
</VirtualHost>
Simpan dan keluar dari file, kemudian start apache. pastikan command perintah dibawah ini
sebelum reboot.
[root@testing www]# /etc/init.d/httpd start
[root@testing www]# chkconfig httpd on
Sekarang tutorial menempatkan alokasi A record buat url dns ip address vps anda
Configure MySQL
MySQL dan password root vps pastikan berbeda
Pertama Start Mysql dan pastikan dapat start automatically pada setiap kali reboot
[root@testing www]# /etc/init.d/mysqld start
[root@testing www]# chkconfig mysqld on
Sekarang kita perlu melakukan koneksi dengan MySQL server dan setting passwordnya
sebagai berikut :
[root@testing www]# mysql -u root
mysql> UPDATE mysql.user SET Password = PASSWORD('NewPassWord')
-> WHERE User = 'root';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 3 Changed: 0 Warnings: 0
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Next you should create a MySQL user and give that user access to their own database for
each site you want to create that needs a database. Again be sure to change example and
NEWPASSWORD to your username and your password. Dont forget this password. You
will need it when setting up your website.
[root@testing www]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
mysql> create database example;
Query OK, 1 row affected (0.00 sec)
mysql> grant usage on *.* to quickvds@localhost identified by 'NEWPASSWORD';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on example.* to example@localhost ;