본문 바로가기

리눅스

[리눅스] phpmyadmin 설치

반응형

패키지 정보

mysql-5.1.50

httpd-2.2.16

php-5.2.14

ZendOptimizer-3.3.3

phpMyAdmin-3.3.7

 

라이브러리 설치

# yum -y install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel libxml2 libxml2-devel openssl openssl-devel mhash mhash-devel

 

MySQL

# useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -u 27 mysql

# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr --with-extra-charsets=all

# make && make install

# cp /usr/local/mysql/share/mysql/my-huge.cnf /etc/my.cnf

# /usr/local/mysql/bin/mysql_install_db

# cd /usr/local/mysql

# chown mysql.mysql data -R

# /usr/local/mysql/bin/mysqld_safe &

 

Apache

# useradd -c "Apache" -u 48 -s /sbin/nologin apache

# ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-ssl --enable-proxy --enable-modules=all

# make && make install

# /usr/local/apache2/bin/apachectl start

 

PHP

# ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-sysvshm=yes --enable-sysvsem=yes --enable-debug=no --with-ttf --with-png-dir=/usr --with-zlib-dir --with-jpeg-dir=/usr --with-gdbm=/usr --enable-ftp --enable-mbstring --enable-sockets --enable-wddx --with-freetype-dir=/usr --enable-bcmath --with-curl --with-mcrypt --enable-mbregex --enable-exif --with-gd --enable-gd-native-ttf --enable-calendar --with-openssl --with-libxml-dir

# make && make install

# cp /usr/local/src/php-5.2.14/php.ini-dist /usr/local/php/lib/php.ini

 

-----------------------------------------------------------------------------------------

httpd.conf 파일 설정

- 자동 추가

# Example:

# LoadModule foo_module modules/mod_foo.so

LoadModule php5_module        modules/libphp5.so

#

 

- 수동 추가

AddType application/x-httpd-php .ph .php .php3 .inc .asp .html

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

 

# AddHandler allows you to map certain file extensions to "handlers":

 

 

<IfModule dir_module>

    DirectoryIndex index.html index.htm index.php

</IfModule>

-----------------------------------------------------------------------------------------

 

Zend

# sh install.sh

 

phpMyadmin

 

 

 

728x90
반응형