WordPress – OpenCart – SEO – Web Development

Hướng dẫn nâng cấp lên PHP và MySQL trên DirectAdmin

Để nâng cấp lên phiên bản php 5.3 trên directadmin có thể làm theo từng bước sau: SSH vào server sau đó gõ những lệnh sau: cd /usr/local/directadmin/custombuild -->nhấn enter ./build update   --> nhấn enter ./build set php5_ver 5.3    --> nhấn enter ./build php n --> nhấn enter Nếu chạy bị lỗi this version of PCRE is not complied with PCRE_UTF8 Thì có thể làm theo hướng dẫn sau: Đầu tiên, edit /usr/local/directadmin/custombuild/configure/ap2/configure.php5 Replace --with-pcre-regex=/usr/local with --with-pcre-regex cd /usr/local/directadmin/custombuild ./build update ./build set php5_ver 5.3 ./build php n And check phpinfo() to see if PHP and PCRE are updated. Alternative solution First, install PCRE 8.10: wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.bz2 tar jxf pcre-8.10.tar.bz2 && cd pcre-8.10 ./configure --prefix=/usr/local make && make install cd /usr/local/directadmin/custombuild/ ./build update ./build set php5_ver 5.3 ./build php n Finally, check phpinfo() to see if it's properly installed. PHP Version: 5.3.x PCRE Library Version: 8.10 Under Configure Command, you should find: --with-pcre-regex=/usr/local  
Nâng cấp lên PHP 5.4.x
cd /usr/local/directadmin/custombuild
./build set custombuild 1.2
./build set php5_ver 5.4
./build update
./build clean
./build php d


I wish to install Zend Optimizer/Guard, and/or Ioncube. Last Modified: Sep 19, 2011, 4:29 pm
For Zend, type:

cd /usr/local/directadmin/custombuild ./build set zend yes ./build zend

after changing php versions, it's recommended you install zend again. Note that Zend Guard is the new name for Zend Optimizer, and is used for newer versions of php. Custombuild will install the correct one for your system. For Ioncube, type:

cd /usr/local/directadmin/custombuild ./build set ioncube yes ./build ioncube

The "./build set" command only sets the option in the options.conf, so you only need to do that once to enable the feature, then install the item after it's enabled.
--
How to upgrade mysql with custombuild
To upgrade mysql using the custombuild script, do the following:

cd /usr/local/directadmin/custombuild ./build set mysql 5.1 ./build set mysql_inst yes ./build set mysql_backup yes ./build update ./build mysql

Where mysql can be 5.0, 5.1 or 5.5. A full raw sql backup will be run prior to the upgrade if you have mysql_backup=yes set.  It goes without saying, always make backups, either with this tool, or with other means. After the mysql update, always recompile php.

./build php n

Giới thiệu tác giả

Giới thiệu tác giả: .

Gửi bình luận

Your email address will not be published. Required fields are marked *

Top