Home php教程 php手册 解决cPanel无法安装php5.2.17

解决cPanel无法安装php5.2.17

Jun 13, 2016 am 09:29 AM
cpanel

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
Copy after login

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安装速度很慢,所以我不在测试了。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)