× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Danny,

I have to admit that I am not 100% familiar with installing a different PHP and making it work with IBM Apache.  It would probably come down to telling Apache where to find the binary to execute the PHP scripts.  In "standard" IBM i Apache you'd see something like this for the modules:


LoadModule zend_enabler_module /QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM

AddType application/x-httpd-php .php .php5
AddHandler fastcgi-script .php .php5

You'll notice that the modules are all SRVPGM types.  In a "off the shelf" Apache install you'd see something like this:

LoadModule php5_module modules/libphp5.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>
#
# Allow php to handle Multiviews
#
AddType text/html .php

PHP docs should fill in the blanks....I haven't felt the need to mix and match yet.

Pete Helgren
www.petesworkshop.com
GIAC Secure Software Programmer-Java
Twitter - Sys_i_Geek IBM_i_Geek

On 9/2/2019 7:46 AM, Danny Rodius wrote:
Hi to all,

Very new to all this opensource stuff.

Could install php with 'yum install php', however nowhere I found a doc
saying how to link this in the standard installed IBM apache server.

Has anyone an idea?

Danny

-----Original Message-----
From: OpenSource <opensource-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Richard Schoen
Sent: zaterdag 31 augustus 2019 23:59
To: opensource@xxxxxxxxxxxxxxxxxx
Subject: Re: [IBMiOSS] PHP and open source

I tried this repo and can hit it on the web, but the ACS package management
doesn't seem to pick anything up once the repo is set.

Interesting.

Let us know if you get it to work.

Richard

----------------------------------------------------------------------

message: 1
date: Fri, 30 Aug 2019 17:04:17 -0500
from: Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>
subject: Re: [IBMiOSS] PHP and open source

I did not use all the options you show. I'll try again.

Jim Oberholtzer
Agile Technology Architects



On Aug 30, 2019, at 1:43 PM, Massimo Fantin <massimo.fantin@xxxxxxxx>
wrote:
Are you using direct : "rpm -ihv php...." instead of "yum install php"
??
create in "/QOpenSys/etc/yum/repos.d" a file "openmax.repo"
with inside :

[openmax]
name=openmax
baseurl=ftp://openmax.duckdns.org/IBMi_Repo
enabled=1

gpgcheck=0


yum clean all
yum install php

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To post a
message email: OpenSource@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.