apm yum으로

2013. 10. 18. 18:30OS/리눅스

반응형

yum install -y gcc cpp gcc-c++ flex libxml2 libxml2-devel compat-gcc*

yum -y install httpd

yum -y install mysql mysql-server mysql-devel

yum -y install zlib zlib-devel freetype freetype-devel freetype-utils gd gd-devel libjpeg libjpeg-devel libpng libpng-devel php-gd libmcrypt libmcrypt-devel

yum -y install php php-mysql

cp /usr/share/mysql/my-large.cnf /etc/my.cnf

/usr/bin/mysql_install_db --user=mysql

chown -R root /usr/bin

chown -R mysql /var/lib/mysql

chgrp -R mysql /usr/bin

/sbin/chkconfig --list | grep mysqld

/sbin/chkconfig --level 2345 mysqld on

/sbin/chkconfig --list | grep mysqld

service mysqld restart

mysql mysql

vi /etc/httpd/conf/httpd.conf

DirectoryIndex index.jsp index.html index.php index.html.var

AddType application/x-httpd-php .php .php3 .html .htm .phtml .inc

AddType application/x-httpd-php-source .phps

#ServerName www.example.com:80 에서 # 을 제거


setup

service iptables restart

vi /etc/selinux/config

setenforce 0

vi /etc/php.ini

short_open_tag = Off

Off->On

service httpd restart

vi /var/www/html/phpinfo.php

ls

tar xvzf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz 

ls

cd ZendGuardLoader-php-5.3-linux-glibc23-x86_64

ls

cd php-5.3.x/

ls

cp ZendGuardLoader.so /etc/httpd/modules/

vi /etc/php.ini

[Zend_Guard_Loader]

zend_extension=/etc/httpd/modules/ZendGuardLoader.so

zend_loader.enable=1


service httpd restart

반응형

'OS > 리눅스' 카테고리의 다른 글

phpmyadmin 설치시  (0) 2013.10.28
cp 명령어가 안될 때  (0) 2013.10.28
/tmp 디렉토리 보안 설정 옵션 설명  (0) 2013.09.26
리눅스 마지막 재부팅 시간  (0) 2013.09.26
리눅스 오류로 재부팅 될때 로그  (0) 2013.09.24