Oke, kali ini ane mau berbagi sedikit tutorial install webserver apache, mysql, dan phpmyadmin di CentOS 6. Ane masih tahap belajar juga sih . Ada VPS baru kemaren yaudah buat belajar dikit dikit . heheh :D
Oke langsung saja ke langkah langkah nya :
Setelah login root di server , masukkan command
[root@localhost ~]# yum updatelalu
Mulai
Installasi Apache[root@localhost ~]# yum install httpdSetelah penginstalan, buka file
/etc/httpd/conf/httpd.conf dan cari
#ServerName www.example.com:80 .
ganti
www.example.com dengan ip server vps kalian :D
Langkah selanjutnya restart apache
[root@localhost ~]# service httpd startNah , server kalian sudah siap digunakan :D
public html nya ada di
/var/www/html/Selanjutnya
MySQL Installation[root@localhost ~]# yum install mysql-servertunggu proses installasi
start mysql service
[root@localhost ~]# service mysqld startlanjut, command dibawah ini supaya apache otomatis berjalan saat booting
[root@localhost ~]# chkconfig --levels 235 mysqld onSelanjutnya, membuat root password untuk mysql.
[root@localhost ~]# mysqladmin -u root password 'passwordkalian'Test dengan login mysql
[root@localhost ~]# mysql -u root -p ( tekan enter)
Enter password:(masukkan password root yang telah kalian buat)
kalau sukses kalian akan mendapat tampilan seperti ini
[root@localhost ~]# mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 3Server version: 5.1.61 Source distributionCopyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>Installasi PHP
[root@localhost ~]# yum install php php-mysqlSetelah itu restart apache
[root@localhost ~]# service httpd restartSebenarnya sampai sini server sudah siap digunakan :D
tapi kadang ada yang gak mau ribet jadi nginstall phpMyAdmin juga . Oke dah dibawah ini tutorialnya :
Installasi phpMyAdmin[root@localhost ~]# rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpmUpdate repositories
[root@localhost ~]# yum check-updateSetelah diupdate, sekarang install phpmyadminnya
[root@localhost ~]# yum install phpMyAdminrestart httpd
[root@localhost ~]# service httpd restartSekarang phpmyadmin siapdigunakan.
cek di
http://ipserver/phpmyadmin/contoh
http://48.48.48/phpmyadmin/Troubleshooting
#2002 � Can�t connect to local MySQL server through socket �/var/lib/mysql/mysql.sock� (2)( kemungkinan mysql tidak berjalan , coba jalankan dengan command "
service mysql start')
phpmyadmin saat dibuka menampilkan halaman 403 alias forbidden.coba kalian edit file
/etc/httpd/conf.d/phpMyAdmin.conf , hapus semua "
deny from all" , ganti "
allow from none" dengan "
allow from all"
Setelah itu restart apache.
Sekian tutorial kali ini , semoga bermanfaat. :D