LINUX

게시글 'APACHE 설치'에 대한 정보
APACHE 설치
등록일 2012-06-12 조회 3,020

# yum -y install gcc cpp gcc-c++ compat-gcc-34-g77 flex openssl*

# yum -y install libjpeg-devel libpng-devel freetype-devel gd-devel libtermcap-devel ncures-devel libmxl2-devel libc-client-devel bzip-devel

# rpm -qa gcc* cpp* compat-gcc* flex* openssl*

# rpm -qa libjpeg* libpng* freetype* gd*

# reboot

 

# tar xvzf httpd-2.2.22.tar.gz

# cd httpd-2.2.22

# mkdir -p /usr/local/apache2

# ./configure --prefix=/usr/local/apache2 --enable-module=so --enable-mods-shared=most --enable-ssh=shared --with-ssl

# make

# make install

# vi /etc/ld.so.conf

   /user/local/apache2/lib

   /usr/local/apache2/modules

# ldconfig

# cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd

# vi /etc/init.d/httpd

   # chkconfig: -85 15

   # description:Apache Web Server

# chkconfig httpd on

# service httpd start

# ps -ef | grep httpd