본문 바로가기
조회 수 5770 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
###################
# Installation OS
###################
1. Install CentOS
- Minimal with development tools checked

###################
# Initial settings
###################

1. set interface up
dhclient -v

2. (option) ssh to VM for ease of copying and pasting

3. install system-config-network and configure static ip on interface
yum -y install system-config-network-tui && system-config-network
sed -i 's/ONBOOT=no/ONBOOT=yes/' /etc/sysconfig/network-scripts/ifcfg-eth0
service network restart <------------ you might need to ssh to VM again if ip changed

4. disable selinux
echo 0 > /selinux/enforce
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

5. (optional) set hostname
vi /etc/sysconfig/network
------------------8<--------------------
HOSTNAME=www.example.com
------------------8<--------------------

6. time sync
yum -y install ntpdate
ln -sf /usr/share/zoneinfo/Asia/Singapore /etc/localtime
ntpdate pool.ntp.org
date

yum -y install ntp
service ntpd start
chkconfig ntpd on

7. install vmware tool
Menu -> Virtual Machine -> Install VMWare Tools
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp/
umount /dev/cdrom
rm -rf /mnt/cdrom
cd /tmp
tar xfz VMwareTools*
cd vmware-tools-distrib
./vmware-install.pl

8. update packages
yum -y update


#########
# MySQL
#########

yum install -y mysql mysql-server
chkconfig --levels 235 mysqld on
service mysqld restart
mysql_secure_installation
mysql -uroot -p


##########
# Apache
##########

yum install -y httpd
vi /etc/httpd/conf/httpd.conf
------------------8<--------------------
ServerName localhost:80
DirectoryIndex index.php index.html index.html.var
------------------8<--------------------
service httpd restart
chkconfig --levels 235 httpd on

iptables -I INPUT 2 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
iptables -I INPUT 3 -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart


#######
# PHP 
#######

yum install -y php php-mysql php-gd
vi /etc/php.ini <----------- optional
------------------8<--------------------
upload_max_filesize = 50M
post_max_size = 50M
------------------8<--------------------
service httpd restart


##############
# phpMyAdmin
##############

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
yum install -y http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum install -y phpmyadmin
vi /etc/httpd/conf.d/phpmyadmin.conf
-----------------//-------------------
<Directory "/usr/share/phpmyadmin">
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
  Allow from 192.168.122
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
-----------------//-------------------

cd /usr/share/phpmyadmin
cp config.inc.php config.inc.php.ori
vi config.inc.php
------------------8<--------------------
/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'BLOWFISH PASSWORD HERE'; <----- you can generate random key with 'openssl rand -base64 32'
------------------8<--------------------

yum install -y php-mcrypt
vi /etc/php.d/mcrypt.ini
------------------8<--------------------
; Enable mcrypt extension module
#extension=module.so
extension=mcrypt.so
------------------8<--------------------
service httpd restart

http://192.168.122.186/phpmyadmin/


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
448 How to install Java on linux with no Internet connectivity (using local repository) Hojung 2015.12.22 4167
447 How to install tcpreplay on CentOS 6.5 Hojung 2015.08.21 9284
446 Install et131x network interface driver in CentOS 6 (LW25-BDUO3) file Hojung 2015.07.03 5270
445 How to find CentOS and kernel version Hojung 2015.04.30 4584
444 MD5 Test Hojung 2015.04.01 4766
443 MAC times in Linux (atime, mtime, ctime, crtime, touch, stat, debugfs) Hojung 2015.01.13 5737
442 How to generate a key with passphrase Hojung 2014.11.22 5888
441 Most Common OpenSSL Commands Hojung 2014.11.21 6416
440 How to use screen command Hojung 2014.11.17 4773
439 snorby (on testing) Hojung 2014.11.17 7583
» APM (Apache + PHP + MySQL) with phpmyadmin in CentOS VM Hojung 2014.11.16 5770
437 10 Ways to Generate a Random Password from the Command Line Hojung 2014.11.16 4981
436 How to increase the size of a Linux LVM by adding a new disk file Hojung 2014.11.14 5250
435 Configuring logrotate for Rails logs file Hojung 2014.11.13 5660
434 Installing Splunk on CentOS file Hojung 2014.10.31 7564
433 Web performance test with ab (ruby web, dd, ab) file Hojung 2014.10.01 6482
432 Web performance test with Pylot (ruby web, dd, pylot) file Hojung 2014.10.01 6078
431 Install and Configure NTP to Synchronize The System Clock (ntpd, ntpdate) Hojung 2014.09.17 5549
430 How to disable IPv6 in CentOS 6 Hojung 2014.09.04 5736
429 IDS with snort in CentOS (Snort, Barnyard2) Hojung 2014.08.19 9125
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 23 Next ›
/ 23

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5