SAMSUNG CUSTOM ROM
  • Home
  • Samsung
  • Oppo
  • Lenovo
  • Sony Xperia
  • Apk File
Beranda » Tanpa Kategori » Tutorial Install Apache , MySQL dan PhpMyAdmin on CentOS 6

Tutorial Install Apache , MySQL dan PhpMyAdmin on CentOS 6

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 update

lalu
Mulai Installasi Apache
[root@localhost ~]# yum install httpd
Setelah 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 start

Nah , server kalian sudah siap digunakan :D
public html nya ada di /var/www/html/

Selanjutnya
MySQL Installation
[root@localhost ~]# yum install mysql-server
tunggu proses installasi
start mysql service
[root@localhost ~]# service mysqld start

lanjut, command dibawah ini supaya apache otomatis berjalan saat booting
[root@localhost ~]# chkconfig --levels 235 mysqld on

Selanjutnya, 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 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.61 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>

Installasi PHP
[root@localhost ~]# yum install php php-mysql
Setelah itu restart apache
[root@localhost ~]# service httpd restart

Sebenarnya 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.rpm

Update repositories
[root@localhost ~]# yum check-update

Setelah diupdate, sekarang install phpmyadminnya
[root@localhost ~]# yum install phpMyAdmin

restart httpd
[root@localhost ~]# service httpd restart

Sekarang 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

Tweet

Jangan sampai ketinggalan postingan-postingan terbaik dari SAMSUNG CUSTOM ROM. Berlangganan melalui email sekarang juga:

Atau sobat juga bisa follow SAMSUNG CUSTOM ROM dengan mengklik tombol di bawah ini:

follow mas sugeng

Artikel keren lainnya:

Blogger Templates
Ditulis oleh hendry pada tanggal Saturday, April 12, 2014
Newer Post
Older Post
Home
Copyright © 2014 SAMSUNG CUSTOM ROM - Powered by Blogger
Template by Mas Sugeng - Versi Seluler