- Will centos 7 support php 5.2 install#
- Will centos 7 support php 5.2 update#
- Will centos 7 support php 5.2 upgrade#
When it finishes (will take a while), install the resultant RPM files as root user: Run the rpmbuild command again (as non-root). If you get a GD error after the T1_StrError line, try running this command as root: Yum -y -skip-broken install bzip2-devel curl-devel db4-devel expat-devel gmp-devel aspell-devel httpd-devel libjpeg-devel libpng-devel pam-devel libstdc++-devel sqlite-devel pcre-devel readline-devel libtool gcc-c++ libc-client-devel cyrus-sasl-devel openldap-devel postgresql-devel unixODBC-devel libxml2-devel net-snmp-devel libxslt-devel libxml2-devel ncurses-devel gd-devel freetype-devel Su to the root user and install them, then logout back to the admin user after this command: The following is my list – yours may be different. It’s highly likely that you will now get a list of failed dependencies. Rpmbuild -bb /usr/src/redhat/SPECS/php.spec Remove the line that says -disable-rpath \ which will stop the compile working (this is PHP bug #48172) and add at the end: -with-t1lib \Įxit insert mode, save and exit (hit Esc, then ZZ). Scroll to where is says %configure with various includes after the line. Technically, we should edit the release line to reflect the changes we are making, but that creates dependency issues, so we’ll ignore that and edit the configure lines. Now, we need to lose our root privileges to compile the software, so we need to run exit or logout to drop back to the admin user (make sure this is the right version of PHP you have just installed, use rpm -q php to check). Firstly, set up a build environment (still as root) and install some software that we’ll need to compile:
Will centos 7 support php 5.2 upgrade#
If you upgrade your software in the future and get an error about libt1.so.5()(64bit) then install t1lib again using this method and then service httpd restart Installing t1lib can also be accomplished if you have the rpmforge repo installed (see previous post step 6) with: yum -enablerepo=rpmforge install t1lib
If it exits with a latex error, install latex: So let’s download and install it (you’ll need make and gcc installed): PHP is now updated, but the t1lib is not installed or compiled into PHP.
Will centos 7 support php 5.2 update#
Then update PHP and restart Apache (yum will double-check you want to go ahead): # development period, so it should not be left enabled or used on production systems without due
Packages in this repository will come and go during the # These packages build and install, but are waiting for feedback from testers as to # They may or may not replace core CentOS packages, and are not guaranteed to function properly. # This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras. Change to root user first, then create the repo:Įnter insert mode (hit i) and paste the following into the new file: The first step is to vanilla install PHP 5.2 (to handle any dependency issues) and then recompile it with the t1lib option.