August 7, 2015

Hướng dẫn sử dụng easyapache thông qua command line

1. Giới thiệu:
Công cụ easyapache cho phép cài đặt, điều chỉnh, thiết lập các thành phần của PHP và Apache cho WHM và cPanel.Khách hàng có thể sử dụng công cụ này thông qua giao diện hoặc command line. Khi sử dụng phiên bản cPanel trial ta bắt buộc phải thực hiện công cụ này thông qua command line2. Sử dụng easyapache:Khởi động easyapache# /scripts/easyapache
Chọn Customize Profile
Chọn phiên bản apache cần build >> Next StepChọn phiên bản PHP >> Next StepChọn Exhaustive Options List để xem danh sách đẩy đủ các module PHP và Apache
Chọn module PHP hoặc Apache cần build >> Save and Build


Chọn Yes để tiến hành rebuild lại PHP và Apache. Thông thường quá trình này thường mất 15 đến 30 phút để hoàn thành.


Cách build trên WHM

There's a much easier/better way to do this if you are on cPanel 11 Stage 2 and are running PHP 5.

Go to WHM -> Software -> Apache Update. Then proceed through the configuration. When you get to Profile :: Apache :: PHP Main :: PHP Specific :: Basic click on Advanced Configuration. Under PHP 5, select the option for SOAP and proceed with the build process.


You can enable PDO in cPanel if you have cloudlinux installed. In cPanel search for PHP Version and on the resulting screen select and enable PDO and finally select save. *http://docs.cloudlinux.com/index.html?using_php_selector.html
If you do not have CloudLinux and PhpSelector installed you will need an administrator account to install PDO through easyapache. In WHM follow this guide:

Enabling PDO in Easyapache

  1. Log in to WHM ( http://domain.com/whm )
  2. Goto WHM »Software »EasyApache (Apache Update)
  3. Select "Previously Saved Config (** DEFAULT **)" and click "Start customizing based on profile"
  4. On the "Apache Version" page click "Next"
  5. On the "PHP Version" page click "Next"
  6. On the "Short Options List" page click"Exhaustive Options List"
  7. On the "Exhaustive Options List" ensure that PDO, PDO sqlite and PDO MySQL are selected.
  8. Then Click Build on the bottom of the page.
PS. I note that you are on 11.24.5-STABLE. This is a extremely old version of WHM/cPanel. You should update your server as this version of cPAnel is no longer supported by cPanel.

0 comments:

Post a Comment