PhpRPM Install
PHP RPM ¼³Ä¡Çϱâ
¹®ÅÂÁØ 2006-08-22 16:14:55
http://tunelinux.pe.kr http://database.sarang.net
1.1. rpm ¼³Ä¡ÈÄ ÁÖÀÇ»çÇ× ¶
[root@localhost conf]# vi httpd.conf 194 Include conf.d/*.conf [root@localhost conf]# ls /etc/httpd/conf.d/ perl.conf php.conf python.conf README ssl.conf welcome.conf [root@intranet conf.d]# cat welcome.conf # # This configuration file enables the default "Welcome" # page if there is no default index page present for # the root URL. To disable the Welcome page, comment # out all the lines below. # <LocationMatch "^/+$"> Options -Indexes ErrorDocument 403 /error/noindex.html </LocationMatch> 1.2. php ¿¬µ¿ ¶
[root@localhost log]# ls /etc/php.d/ ldap.ini mysql.ini [root@localhost php.d]# cat /etc/php.d/mysql.ini ; Enable mysql extension module extension=mysql.so
[root@localhost php.d]# rpm -ql php-ldap /etc/php.d/ldap.ini /usr/lib/php4/ldap.so [root@localhost php.d]# cat /etc/php.d/ldap.ini ; Enable ldap extension module extension=ldap.so 1.3. PHP srpm ÀÌ¿ëÇÏ¿© ¼³Ä¡Çϱ⠶ÇÁ·Î±×·¥ÀÇ °ü¸®¸¦ À§ÇÏ¿© °¡±ÞÀû rpmÀ» ÀÌ¿ëÇÏ¿© »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ´Ù. ÀÌ°æ¿ì srpmÀ» ÀÌ¿ëÇÏ¿© ÇÊ¿äÇÑ ¿É¼ÇÀ» Á¶±Ý¾¿ ¹Ù²ã¼ ¾²¸é µÈ´Ù.
CentOS¿¡´Â mysql 4.x °¡ ¼³Ä¡µÇ¾îÀÖ´Ù. mysqlÀº mysql »çÀÌÆ®¿¡¼ ´Ù¿î·Îµå¹Þ¾Æ »ç¿ëÀ» ÇÑ´Ù°í ÇÏ´õ¶óµµ php¿¬µ¿ÀÌ °É¸°´Ù. ÀÌ°æ¿ì¿¡ ¸ÕÀú mysql 5.x ¸¦ mysql »çÀÌÆ®¿¡¼ ´Ù¿î·Îµå¹Þ¾Æ 5.x·Î ¹Ù²Û´Ù. ¿©±â¼ Áß¿äÇÑ°ÍÀº devel ÆÐÅ°Áö¸¦ ¹Ýµå½Ã ¼³Ä¡ÇØ¾ß srpm À¸·Î ºôµå°¡ °¡´ÉÇÏ´Ù. ¹°·Ð php¸¦ ¼Ò½º¼³Ä¡·Î ÇÒ °æ¿ì¿¡µµ devel ÆÐÅ°Áö´Â ÇÊ¿äÇÏ´Ù.
¸ÕÀú CentOS »çÀÌÆ®¿¡¼ °¡Àå ÃÖ½ÅÀÇ php srpm ¹öÀüÀ» ¹Þ´Â´Ù. 2006-09-08 16:04:16 ÇöÀç °¡Àå ÃֽŠ¹öÀüÀº php-4.3.9-3.15.src.rpm ÀÌ´Ù.
# rpm -ivh php-4.3.9-3.15.src.rpm # cd /usr/src/redhat/SPECS/ # vi php.spec 9 Release: 3.15.samjung # rpmbuild -ba php.spec # ls /usr/src/redhat/RPMS/i386/ php-4.3.9-3.15.samjung.i386.rpm php-imap-4.3.9-3.15.samjung.i386.rpm php-odbc-4.3.9-3.15.samjung.i386.rpm php-debuginfo-4.3.9-3.15.samjung.i386.rpm php-ldap-4.3.9-3.15.samjung.i386.rpm php-pear-4.3.9-3.15.samjung.i386.rpm php-devel-4.3.9-3.15.samjung.i386.rpm php-mbstring-4.3.9-3.15.samjung.i386.rpm php-pgsql-4.3.9-3.15.samjung.i386.rpm php-domxml-4.3.9-3.15.samjung.i386.rpm php-mysql-4.3.9-3.15.samjung.i386.rpm php-snmp-4.3.9-3.15.samjung.i386.rpm php-gd-4.3.9-3.15.samjung.i386.rpm php-ncurses-4.3.9-3.15.samjung.i386.rpm php-xmlrpc-4.3.9-3.15.samjung.i386.rpm # ls /usr/src/redhat/SRPMS/ php-4.3.9-3.15.samjung.src.rpm # yum remove php # rpm -ivh php-4.3* php-mysql-*
|