1. 准备cpanel专供php
# cd /var/cpanel/easy/apache/custom_opt_mods # wget http://docs.cpanel.net/twiki/pub/EasyApache/EasyApacheCustomModules/custom_opt_mod-PHP5217.tar.gz # tar -xzvf custom_opt_mod-PHP5217.tar.gz
2. 通过easyApache重装
搜索easyApache,然后一步步看图。
easyApache
cPanel安装php5.2.17
cPanel安装php5.2.17
cPanel安装php5.2.17
cPanel安装php5.2.17
然后和往常一样一步步往下走即可完成。
3. php扩展配置
因为这不是cPanel原生的安装,所以没有php的扩展选项,它会根据php压缩包内的默认配置参数安装。如果你需要支持额外选项,例如gd和ftp,如下操作:
# cat /var/cpanel/easy/apache/rawopts/PHP-5.2.17
--with-gd
--enable-ftp
一行一个,它会解析成–with-gd –enable-ftp,然后整合到configure后面。
备注:安装模块的方法我没有实际测试,因为默认安装以及满足了朋友的要求,cPanel安装速度很慢,所以我不在测试了。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.