A foreign business friend needs to re-install cPanel to purchase a server. cPanel, which was bought for dozens of dollars, does not support 5.2.17. the lowest version supports 5.3.27 and the highest version is 5.5. this is very annoying, find a solution on the official website, as shown in the following code: install php5.2.17. 1. prepare cpanel for php
# Cd/var/cpanel/easy/apache/custom_opt_mod # wget http://docs.cpanel.net/twiki/pub/EasyApache/EasyApacheCustomModules/custom_opt_mod-PHP5217.tar.gz# tar-xzvf custom_opt_mod-PHP5217.tar.gz
2. reinstall it through easyApache
Search for easyApache and view the image step by step.
EasyApache
CPanel install php5.2.17
CPanel install php5.2.17
CPanel install php5.2.17
CPanel install php5.2.17
Then proceed step by step as usual.
3. php extension configuration
Because this is not the native installation of cPanel, there is no php extension option, it will be installed according to the default configuration parameters in the php compressed package. If you need to support additional options such as gd and ftp, perform the following operations:
# Cat/var/cpanel/easy/apache/rawops/PHP-5.2.17
-- With-gd
-- Enable-ftp
One line, it will be parsed to-with-gd-enable-ftp, and then integrated to the end of configure.
Note: I have not actually tested the method for installing the module. because the default installation meets the requirements of my friends, cPanel installation is slow, so I am not testing it.