#rpm -qa |grep mysql
#mkdir /usr/local/src/apm
#pwd
mysql-5.1.38.tar.gz 다운로드
#tar xvfz mysql-5.1.38.tar.gz
#cd mysql-5.1.38
#useradd -M -s /sbin/nologin mysql
#./configure \
--prefix=/usr/local/mysql \
--localstatedir=/var/lib/mysql \
--with-charset=utf8
--sysconfdir=/etc
#make && make install
#cd /usr/local/mysql
#cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
#/usr/local/mysql/bin/mysql_install_db --user=mysql
#chown -R root /usr/local/mysql/
#chown -R mysql /var/lib/mysql/
#chgrp -R mysql /usr/local/mysql/
#vi ~/.bash_profile
10 PATH=$PATH:$HOME/bin:/usr/local/mysql/bin
추가
#source ~/.bash_profile
#cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
#cd /etc/init.d/
#chkconfig --add mysqld
#chkconfig mysqld on
#service mysqld start
#netstat -nlp |grep :3306
#ps -ef |grep mysqld
확인
#mysqladmin -u root password'wh wjdgu'
#mysql -u root -p
password: *****
>show databases;
quit
#cd /var/lib/mysql
#ll
#mysql -u root -p
password:****
show databases;
>use test;
>use mysql;
>show tables;
>quit
< gui tools 설치 >
#vi /etc/sysconfig/iptables
3306포트 추가
mysql안에서
>grant all privileges on mysql.* to root@"%";
>set password for root@"%"=password('wh wjdgu');
root 는 localhost 에서만 접속이 되기때문에
이것을 외부에서 접속이 되게하기위해 root@"%"를 준다.
%는 any, 0.0.0.0을 뜻한다.
모든 네트워크를 의미 , 즉, 모든곳에서 접속이 가능하게
한다.
원래는 root 접속을 허용하면 안되지만
지금은 테스트 목적이므로 이렇게한다.
잘 된다.
기본적으로 url이 되려면
bind가 설치되어 있어야 한다.
< Apache 설치 >
먼저 기존의 패키지 설치 여부부터 확인
#rpm -qa |grep httpd
httpd-tools-2.2.10-2.i386
httpd-2.2.10-2.i386
#rpm -e --nodeps httpd-tools-2.2.10-2.i386
#rpm -e --nodeps httpd-2.2.10-2.i386
#wget http://mirror.korea.ac.kr/apache/httpd/httpd-2.2.13.tar.gz
#tar xvfz httpd-2.2.13.tar.gz
#cd httpd-2.2.13
#./configure --prefix=/usr/local/http --enable-mods-shared=all \
--enable-so --enable-rewrite \
--enable-ssl --with-mpm=worker
#cp /usr/local/httpd/bin/apachectl /etc/init.d/httpd
#vi /etc/init.d/httpd
밑에꺼 추가 맨위 !/bin/sh밑에
#chkconfig:2345 90 90
#description:init file for Apache Server daemon
#processname:/usr/local/http/bin/apachectl
#config:/usr/local/http/conf/httpd.conf
#pidfile:/usr/local/http/logs/httpd.pid
#chkconfig --add httpd
#chkconfig httpd on
#service httpd
#service httpd start
#netstat -nlp |grep :80
#vi /etc/sysconfig/iptables
80, 443포트 추가
#service iptables restart
vmware에서 80 443포트포워딩
인터넷창에서 서버 IP주소로 테스트
< PHP설치 >
#wget http://kr.php.net/get/php-5.3.0.tar.gz/from/this/mirror
#tar xvfz php-5.3.0.tar.gz
#cd php-5.3.0
#pwd
#yum install libjpeg-devel libpng-devel freetype-devel gd-devel
라이브러리 설치
#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/http/conf/ --enable-force-cgi-redirect --disable-debug --enable-sockets --enable-track-var --with-mod-charset=utf8 --with-xml --with-language=korean --enable-mailparse --enable-calender --with-jpeg --with-png --with-zlib --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --with-gd --with-ttf --enable-mbstring
#make && make install
#cp -p /usr/local/src/apm/php-5.3.0/php.ini-production /usr/local/http/conf/php.ini
#cd /usr/local/httpd/conf/
#vi httpd.conf
218 index.php 추가
149 밑에 추가: ServerName www.jhcho.iss:80
362 AddType application/x-httpd-php .php 추가
363 Addtype application/x-httpd-php-source .phps 추가
105 LoadModule php5_module modules/libphp5.so 확인
#service httpd restart
===============================
Tail –f /var/log/messages
밑에 run 다음 부터 끝까지 복사
sealert –l 붙여넣기
Fix Command: 복사
붙여넣기
chcon -t textrel_shlib_t '/usr/local/http/modules/libphp5.so'
Service httpd restart
Ps –ef |grep httpd
동작확인
Cd /usr/local/http/htdocs 웹페이지를 보여줄 파일들이 있는 위치
Vi phpinfo.php
<?php
phpinfo();
?>
run sealert 부분을 복사해서
#sealert -l 붙여넣기
======================
중간쯤
chocon -t textrel_shlib_t '붙여넣기
php 라이브러리 올리려고하는데 커널레벨에서 잡은거다
그래서 이거 풀라고
#service httpd restart
#ps -ef |grep httpd
#cd /usr/local/httpd/
여기다 phpinfo 생성
제로보드 다운로드
http://www.xpressengine.com/
xe_full.1.2.4.tgz
#tar xvfz xe_full.1.2.4.tgz
#mysql -u -p
password: ***
db생성
>create database xe;
>grant all privileges on xe.* to naruto@"localhost";
>grant all privileges on xe.* to naruto@"%";
>set password for naruto@"%"=password('pass1234');
>set password for naruto@localhost=password('pass1234');
웹페이지 http://192.168.217.100/xe/
DB호스트 네임 : 127.0.0.1
DB Port 3306
DB 아이디 : naruto
DB 비밀번호:pass1234
c
관리자 정보