Innovate faster and cut risk with PHP experts from Zend Services.
Beginning to advanced PHP classes to learn and earn global certification.
Help me choose >
Submit support requests and browse self-service resources.
Community PHP has been released for the IBM i platform! In a recent Zend blog, we covered the release of community PHP for the IBM i platform and provided a comparison of community PHP with the certified PHP stack delivered with Zend Server.
Now that community PHP is available, we want to provide you with information needed to install community PHP on the platform.
Below are the steps to get you started installing PHP. If you’d prefer to have one of our team members from Zend by Perforce connect with you, we’d be happy to help you with the process. You can connect with an expert here.
For those new to the open source way of delivering software, a repository is simply an indexed location where open source packages reside and can be downloaded and installed. The first step needed in installing your PHP is to provide a repository definition for where the PHP packages reside.
For community PHP, the repository location is repos.zend.com/ibmiphp/ and the protocol supported is http. The first patch level of community PHP that has been made available for the platform is 7.3.11. As new patches are released, they will be built for IBM i and added to the repository location.
Repository definition files are located in the /QOpenSys/etc/yum/repos.d directory and while multiple repositories can be defined in a single file typically there is one repository definition file per repository.
Assuming you have the OSS bootstrap installed on your system (download it if you don’t have it, you will need it) a review of the aforementioned directory should reveal a single file named ‘ibm.repo’ which is the definition of the IBM hosted and maintained repository of open source packages. The community PHP repository is hosted and maintained by Zend and therefore a new repository definition will need to be created.
The repository definition can either be created by creating the file by hand or the yum-config-manager utility can be used to create the repository definition file.
yum-config-manager --add-repo http://repos.zend.com/ibmiphp
name=added from: http://repos.zend.com/ibmiphp
repos.zend.com_ibmiphp | 2.9 kB 00:00
repo id repo name status
ibm ibm 470
repos.zend.com_ibmiphp added from: http://repos.zend.com/ibmiphp 29
A non-zero status indicates the number of packages in the repository.
Coming January 3rd: Further instruction on installation and validation. Stay tuned!
Looking for an expert to walk you through the process?
Watch this one-hour live webinar on open source for IMBi and learn how to:
Prefer a consultation one-on-one? The Zend by Perforce team is willing and ready to help you get started with PHP on IBM i and your migration of existing PHP applications to newer versions. Connect with one of our experts!
CONNECT WITH AN EXPERT
IBM Champion | Former - Senior Solutions Consultant, Zend, Perforce Software
As an IBM champion, Mr. Earley has been recognized as a leader in the IBM i community and offers more than 20 years of experience helping customers to implement solutions on the platform. His expertise includes using PHP, MariaDB, Docker, and Chef for creating modern enterprise solutions that run on IBM i, as well as PowerVC for cloud deployments and virtualization management. Mr. Earley is a frequent speaker at global technology conferences, and he has authored numerous articles on Linux, PHP, virtualization, systems management, and open source solutions and concepts.