Apache/PHP5
이제 우리는 Apache를 PHP5와 함께 설치한다:
# yast2 -i apache2 apache2-devel apache2-mod_perl apache2-mod_php5 apache2-prefork perl-HTML-Parser perl-HTML-Tagset perl-Tie-IxHash perl-URI perl-libwww-perl php5 php5-devel zlib zlib-devel그리고 나서 필요한 PHP5의 module들을 설치한다:
# yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mhash php5-mysql php5-ncurses php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm ImageMagick curl다음으로 /etc/apache2/httpd.conf를 수정한다:
# vi /etc/apache2/httpd.conf
DirectoryIndex를 다음과 같이 바꿔준다:/etc/sysconfig/apache2를 수정한다.
[...]
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php5 index.php4 index.php3 index.pl index.html.var index.aspx default.aspx
[...]
rewrite를 APACHE_MODULES line에 추가해준다:이제 Apache가 boot 시 시작되도록 System을 설정한다:
# vi /etc/sysconfig/apache2[...]APACHE_MODULES="actions alias auth_basic authn_file
[...] setenvif ssl suexec userdir php5 rewrite"[...]또한 SSL을 APACHE_SERVER_FLAGS line에 추가해준다:[...]APACHE_SERVER_FLAGS="SSL"[...]
# chkconfig --add apache2그리고 나서 SuSEconfig를 실행하고 Apache를 시작한다.
# SuSEconfig
# /etc/init.d/apache2 start
/////////////////////////////////////////////////////////////////////////////////////////////////
Tattertools의 사용을 위해서는
1. 다음의 내용을 httpd.conf에 삽입한다.
<Directory "/srv/www/htdocs/tt">2. /srv/www/htdocs/tt와 /srv/www/htdocs/tt/skin의 소유권을 777로 변경한다.
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
trackback from: Tuning LAMP systems, Part 2: Optimizing Apache and PHP
답글삭제[Source] IBM developerWorks Tuning LAMP systems, Part 2 Tuning LAMP systems, Part 2: Optimizing Apache and PHP What slows Apache down, and how to get the most out of PHP Level: Intermediate Sean A. Walberg (sean@ertw.com), Senior Network Engineer 30 Apr..
trackback from: Tuning LAMP systems, Part 1: Understanding the LAMP architecture
답글삭제[Source] IBM developerWorks Tuning LAMP systems, Part 1 Tuning LAMP systems, Part 1: Understanding the LAMP architecture How LAMP systems work, how to measure their performance, and how to tune the underlying operating system Level: Intermediate Sean A...