Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NickTheGreek

Legacy PHP version with cPanel

Recommended Posts

αν και μπορεί κάποιος απλά να παίξει με CloudLinux όπου και διοατηρούνται repo για τόσο παλιές εκδόσεις PHP υπάρχουν και άλλοι τρόποι να έχεις PHP 5.2.17 μέσα από EasyAPache 3

https://www.interserver.net/tips/kb/install-php-5-2-latest-cpanel-server/

https://softescu.com/blog/knowledge-centre/how-install-php-52-cpanelwhm-1140-your-old-drupal-6x-drupal-cpanel-apache

 

 

Share this post


Link to post
Share on other sites

The latest versions of EasyApache has removed the ability to compile PHP 5.2 and thus most of the legacy Drupal 6.x fails to run properly (lots of random 404 errors).

Here is how you get this back:

yum install libcurl-devel libmcrypt libmcrypt-devel aspell aspell-devel tidy libtidy libtidy-devel libxslt libxslt-devel
cd /var/cpanel/easy/apache/custom_opt_mods/

You need to get the last mod for EasyApache. You can do this by visiting this link.

wget https://documentation.cpanel.net/download/attachments/362562/custom_opt_mod-PHP5217update.tar.gz
tar -xzf custom_opt_mod-PHP5217update.tar.gz
nano /var/cpanel/easy/apache/rawopts/all_php5

and add these options:

--with-curl
--with-gd
--enable-exif
--with-gettext
--with-imap=/opt/php_with_imap_client/
--enable-mbstring
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-mysqli=/usr/bin/mysql_config
--with-openssl=/usr
--enable-pdo=shared
--with-pdo-mysql=shared
--with-pdo-sqlite=shared
--with-sqlite=shared
--with-mime-magic
--enable-soap
--with-pspell
--enable-wddx
--with-xmlrpc
--with-xsl=/opt/xslt/
--with-kerberos
--with-curl
--enable-zip
--with-ttf
--enable-gd-native-ttf
--with-freetype-dir=/usr

You can enable there any other relevant PHP modules you need. Then recompile Apache using Easy Apache from WHM. 

Go to step 3 “Please choose which specific PHP version(s) to build”. Then on the “PHP Versio n” screen chose “None” and continue to step 4, The “Short Options List” page you will see “PHP 5.2.17 support (no FastCGI)” listed. Check that box and continue your EasyApache installation like normal.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...