â Scientific Linux 5.6ã«php5.2.xãå°å
¥ããã¡ã¢
ãScientific Linux 5.6ã«æ¨æºå°å
¥ãããã®ã¯CentOS5.6åæ§ã«php5.1.6ã«ãªããããææ°ã®WordPress3.2.xãåä½ã§ããªããããã§5.2.xç³»ã®ææ°çãå°å
¥ããï¼ã«ã¹ã¿ãã¤ãºããSNSã¢ããªãphp5.3対å¿æªå®ã®ããï¼ãå°å
¥ãããªãã¸ããªã¯IUS Community Projectã®ãã®ãåProjectã¯PHP,Python,MySQLã®ææ°çãRHç³»ãã£ã¹ããªãã¥ã¼ã·ã§ã³åãã«æä¾ãããã¨ãç®çã¨ãã¦ãããããã5.3ç³»ã«ããå ´åã«ãã¡ãªãããããã¨æãããã®ã§å°å
¥ãããã¨ã«ããã
â IUSãªãã¸ããªã®å°å
¥
ãepelã®ãªãã¸ããªãåæã«ã¤ã³ã¹ãã¼ã«ããå¿
è¦ãããã®ã§SLã®è¨å®ã§å©ç¨ããyum-conf-epel-5-1ãåé¤ãã¦ãããIUSãªãã¸ããªãã¤ã³ã¹ãã¼ã«ããã詳細ãªèª¬æã¯æ¬å®¶ã®ã¬ã¤ããåç
§ã
[code]
# yum remove yum-conf-epel-5-1
# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-8.ius.el5.noarch.rpm
# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -Uvh ius-release*.rpm epel-release*.rpm
# yum update
[/code]
â phpã®å
¥æ¿ã
ãyumã®replaceãã©ã°ã¤ã³ãå©ç¨ãã¦ä¸æ°ã«å
¥æ¿ããè¡ããepelããphp-eacceleratorãå°å
¥ãã¦ããå ´åãä¾åæ§æ¬ å¦ã§åé¤ããã¦ãã¾ããã注æãå¿
è¦ã
[code]
# yum install yum-plugin-replace
# yum replace php –replace-with php52
[/code]
â eAcceleratorãã¤ã³ã¹ãã¼ã«ãã
ãsourceforge.netããææ°ã®eaccelerator-0.9.6.1.tar.bz2ããã¦ã³ãã¼ããã¦ãããã¤ã³ã¹ãã¼ã«æé ã®è©³ç´°ã¯ãã¡ãã
äºåæºå
# yum install php52-devel gcc
ã³ã³ãã¤ã«ã¤ã³ã¹ãã¼ã«
[code]
# tar jxvf eaccelerator-0.9.6.1.tar.bz2
# cd eaccelerator-0.9.6.1
# phpize
# ./configure
# make
# make install
[/code]
è¨å®ãã¡ã¤ã«ä½æ
[code]
# vi /etc/php.d/eaccelerator.ini
ãextension=”eaccelerator.so”
ã;zend_extension=”/usr/lib/php/modules/eaccelerator.so”
ãeaccelerator.shm_size=”128″
ãeaccelerator.cache_dir = “/var/cache/php-eaccelerator”
ãeaccelerator.enable=”1″
ãeaccelerator.optimizer=”1″
ãeaccelerator.check_mtime=”1″
ãeaccelerator.debug=”0″
ãeaccelerator.log_file = “/var/log/httpd/eaccelerator_log”
ãeaccelerator.name_space = “”
ãeaccelerator.filter=””
ãeaccelerator.shm_max=”0″
ãeaccelerator.shm_ttl=”3600″
ãeaccelerator.shm_prune_period=”0″
ãeaccelerator.shm_only=”0″
ãeaccelerator.compress=”1″
ãeaccelerator.compress_level=”9″
ãeaccelerator.keys = “shm_and_disk”
ãeaccelerator.sessions = “shm_and_disk”
ãeaccelerator.content = “shm_and_disk”
ã;eaccelerator.allowed_admin_path = “”
[/code]
ãã£ãã·ã¥ãã£ã¬ã¯ããªä½æ
[code]
# mkdir /var/cache/php-eaccelerator
# chmod 0777 /var/cache/php-eaccelerator
[/code]
apacheåèµ·å
# apachectl graceful
phpinfoã§æå¹ã«ãªã£ã¦ãããã¨ã確èªãã
Scientific Linux 5.6ã«php5.2.xãå°å ¥ããã¡ã¢ http://t.co/38MsCWg CentOSãããªãè¨ç»å®è¡ä¸
Scientific Linux 5.6ã§PHPã5.3ã«ãWordPressãææ°ã®3.2.1ã«ã¢ããã°ã¬ã¼ããåèã«ããã®ã¯ http://t.co/NzXzMO0 説æãx86_64ãªã®ã§i386ã®æ¹ã¯èªã¿æ¿ããå¿ è¦ãããåé¡ãªãåä½ã #linux #WordPress
âScientific Linux 5.6ã«php5.2.xãå°å ¥ããã¡ã¢â http://t.co/NldvzQ7v
âScientific Linux 5.6ã«php5.2.xãå°å ¥ããã¡ã¢â http://t.co/NldvzQ7v
Scientific Linux 5.6ã«php5.2.xãå°å ¥ããã¡ã¢ http://t.co/xBGcwPfm