Problem with the default ZENDCORE, port :89, instance

General discussion on Zend Core for IBM System i
Post Reply
ilmasce
Posts: 4
Joined: Fri May 29, 2009 9:41 am

Problem with the default ZENDCORE, port :89, instance

Post by ilmasce » Fri Mar 19, 2010 10:49 am

Using the *ADMIN HTTP instance on port 2001 I've selected the ZENDCORE instance on port 89 and I've added an alias to serve my php test page; the page is /www/zendcore/htdocs/myphppages/index.php and the alias I've defined in ZENDCORE's httpd.conf is
Alias /php /myphppages
But when I try to type http://<myserver>:89/php/index.php I get the following error:

Not Found

The requested URL /php/index.php was not found on this server.
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7d PHP/5.2.11 Server at 127.0.0.1 Port 8000

What's wrong with this? I suspect - but I could be wrong - that it's because the aliases must be defined into the PASE instance on port 8000 (/usr/local/zend/apache2/conf/httpd.conf)and not into the ZENDCORE's (/www/zendcore/conf/httpd.conf)...I'm I wrong or right?
But if I'm right, do I have to edit PASE's httpd.conf by hand for every directive I want to add and then replicate it on the ZENDCORE instance?
I'm a little bit confused!
Thanks for your kind answers
Fabio.

aaron-s-hawley
Posts: 46
Joined: Thu Mar 11, 2010 4:43 pm
Location: Colchester, VT
Contact:

Re: Problem with the default ZENDCORE, port :89, instance

Post by aaron-s-hawley » Fri Mar 19, 2010 8:57 pm

The aliases will be needed to the PASE Apache server on port 8000. The IBM i Apache server only acts as a proxy. The httpd.conf at /www/zendcore/conf/ is misleading because it has <Directory>, <Location> and Alias directives at the end of it, but I'm pretty sure they're bunk given the ProxyPass and ProxyPassReverse lines. So far, I've only been changing the httpd.conf at /usr/local/zend/apache2/conf/ and found it gets things done.

Fortunately, this confusion will be going away as Zend Server goes forward with a single HTTP server instance.
Last edited by aaron-s-hawley on Tue Mar 23, 2010 1:10 pm, edited 1 time in total.

ilmasce
Posts: 4
Joined: Fri May 29, 2009 9:41 am

Re: Problem with the default ZENDCORE, port :89, instance

Post by ilmasce » Mon Mar 22, 2010 4:11 pm

You couldn't be more clear, thanks!
Fabio

Post Reply