Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Hướng dẫn sử dụng Direct Admin (http://quantrinet.com/forum/forumdisplay.php?f=196)
-   -   Hướng dẫn nâng cấp lên PHP 5.4 và MySQL trên DirectAdmin (http://quantrinet.com/forum/showthread.php?t=10019)

hoctinhoc 18-05-2016 04:10 AM

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

Tham khảo:
http://www.wphostinggeeks.com/update...n-custombuild/


Để nâng cấp lên phiên bản php 5.4 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.4 --> 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.4
./build php n


And check phpinfo() to see if PHP and PCRE are updated.
Alternative solution


Cách 2: install PCRE 8.10:


wget ftp://ftp.csx.cam.ac.uk/pub/software...e-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.4
./build php n

Finally, check phpinfo() to see if it's properly installed.
PHP Version: 5.4.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.5
./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




:battay:


Bây giờ là 01:33 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.