Apache http server and configuration for php programs

General discussion on Zend Server for IBM System i
Post Reply
bran5102
Posts: 9
Joined: Thu Dec 03, 2015 4:41 pm

Apache http server and configuration for php programs

Post by bran5102 » Thu Dec 03, 2015 4:52 pm

Hi,

We have an Apache http server, which serves dynamic html pages created by RPG programs.

Server also serves php programs where we changed the apache http configuration to point to the Zend php server.

We have just upgraded to Zend Server 8.5.1 from a much older version 2.6.1

Problem we are having is how to change the Apache http configuration to again point the php requests to the Zend php server.

Any help would be appreciated.

Brandon

bran5102
Posts: 9
Joined: Thu Dec 03, 2015 4:41 pm

Re: Apache http server and configuration for php programs

Post by bran5102 » Fri Dec 04, 2015 4:36 pm

As a note these were the entries we added to the Apache http config;

ProxyPass /phpapps http://127.0.0.1:8000/phpapps
ProxyPassReverse /phpapps http://127.0.0.1:8000/phpapps

Also had to add code to Zend's apache php config which is found in root>usr>local>Zend>conf>httpd.conf

Alias /hht/phpapps "/www/Apache server name/htdocs/phpapps"

<Directory "/www/Apache server name/htdocs/phpapps">
Options -Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

bran5102
Posts: 9
Joined: Thu Dec 03, 2015 4:41 pm

Re: Apache http server and configuration for php programs

Post by bran5102 » Wed Oct 12, 2016 9:30 am

Go this working by;

Pointing our apache http config proxy pass statement to point to http://127.0.0.1:10080/phpapps

Changing the ZENDSVR6 apache http config to include the alias and directory statements.

Post Reply