• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

LinuxSec Exploit

Nothing is Ever Locked

  • XSS Payloads
  • About Us

Tutorial Install Apache , MySQL dan PhpMyAdmin on CentOS 6

April 11, 2014 by Jack Wilder Leave a Comment

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 πŸ˜€
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 πŸ˜€

Langkah selanjutnya restart apache
[root@localhost ~]# service httpd start

Nah , server kalian sudah siap digunakan πŸ˜€
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 πŸ˜€
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. πŸ˜€

Shares

Filed Under: Uncategorized Tagged With: CentOS, Tutorial, VPS

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Popular Post

CVE-2019-13360 – CentOS Control Web Panel Authentication Bypass

bWAPP Remote File Inclusion Medium Security Level

Open Redirect Bypass Cheat Sheet

Zendesk Custom Domain or Subdomain Takeover

Heroku Custom Domain or Subdomain Takeover

WordPress 4.7.0/4.7.1 Content Injection Exploit

RCE pada Redis via Master-Slave Replication

Deface dengan Metode Timthumb Remote Code Execution

Exploit WordPress Ajax Load More PHP Upload Vulnerability

Exploit WPStore Themes Upload Vulnerability

LinuxSec / 62 queries in 0.07 seconds