ZendServer on port 10081 displaying rubbish

General discussion on Zend Server for IBM System i
Post Reply
nl059810
Posts: 16
Joined: Thu Sep 03, 2009 10:29 pm

ZendServer on port 10081 displaying rubbish

Post by nl059810 » Tue Oct 13, 2015 9:22 am

Yesterday I upgraded a Zend Server for IBM i installation to version 8.5.1 ( PHP 5.5 ) ( from version 6.2.0 ( PHP 5.4 )) by installing PTF 6ZS0021.

The installation went flawless and in GO LICPGM the version of ZendServer shows "Zend Server for IBM i 8.5.1 ( PHP 5.5 )". Our intranet is working fine in the upgraded version. The ZendServer admin page (http://<hostname>:/10081/ZendServer however is showing rubbish. Anybody any idea how to get this fixed?
This is a development server, but upgrading our production server is out of the question if this can't be resolved.

See attached file of what I am looking at when expecting the ZendServer admin pages...
Attachments
ScreenShot 10-13-15 at 10.20.49 AM.jpg
Screenshot
ScreenShot 10-13-15 at 10.20.49 AM.jpg (32.97 KiB) Viewed 4327 times
Henri Timmermans, Software Engineer at FH Holding BV
Internet : http://www.exa-holding.com
LinkedIn: http://www.linkedin.com/pub/henri-timmermans/14/b39/236

paul5383
Posts: 6
Joined: Fri Aug 07, 2015 3:53 am

Re: ZendServer on port 10081 displaying rubbish

Post by paul5383 » Wed Oct 14, 2015 3:13 am

Could it be an encoding problem? I added DefaultFsCCSID and CGIJobCCSID to /www/zendsvr6/conf/httpd.conf (you may need to change the CCSID to your country).

DefaultFsCCSID 37
CGIJobCCSID 37

Also, any messages on QSYSOPR?

nl059810
Posts: 16
Joined: Thu Sep 03, 2009 10:29 pm

Re: ZendServer on port 10081 displaying rubbish

Post by nl059810 » Wed Oct 14, 2015 8:59 am

One would expect an encoding problem, but during the upgrade (PTF 6ZS0021 install) nothing is changed in /www/zendsvr6/conf/httpd.conf, or for that matter, any other file in /www/zendsvr6/conf. I think there is something wrong in directory /usr/local/zendsvr6

Also, all our intranets are working fine on the new version, including stuff like special characters in the German language. For that last thing, one thing I had to changes (which used to work before and is still working on our production server). In php.ini I had to change default_charset="iso-8859-1" to default_charset="UTF-8" to get all (as far as I can tell) special characters dispaying correct....

So it must be something else i guess. One possible cause I can think of be that I installed it as myself (*SECOFR authorisation) and not QSECFOFR. A difference in the userprofile as it comes to CCSID etc???

If no solution is thought of here I will try a fresh install from scratch.
Henri Timmermans, Software Engineer at FH Holding BV
Internet : http://www.exa-holding.com
LinkedIn: http://www.linkedin.com/pub/henri-timmermans/14/b39/236

paul5383
Posts: 6
Joined: Fri Aug 07, 2015 3:53 am

Re: ZendServer on port 10081 displaying rubbish

Post by paul5383 » Wed Oct 14, 2015 9:13 am

As it is your dev box, you could remove the licpgm and install from scratch. I tried to do the same route as you through PTF upgrade (also 6ZS0021) and had a whole heap of problems, including missing dependencies (e.g. a missing curl library that wasn't needed before). To be honest I didn't try http://...:10081/ZendServer so I don't know if I would have the same problem.

One upside of a complete re-installation is that you get the 30 days of full ZendServer, so that was a bit of a bonus.
The downside is that you need to reset all the permissions in /usr/local/zendsvr6/var/log, and do all the necessary changes to php.ini, (like set UTF-8) etc.

timo_karvinen
Posts: 82
Joined: Wed Aug 12, 2009 7:58 am
Location: Tampere, Finland
Contact:

Re: ZendServer on port 10081 displaying rubbish

Post by timo_karvinen » Wed Oct 14, 2015 10:33 am

I could be totally wrong, but the data shown in your screenshot resembles very closely what gzipped data would look like.
So there could be some sort of problem with compression/decompression. If your browser allows, could you make it send this:
Accept-Encoding: identity
in it's request headers instead of what it is probably now sending:
Accept-Encoding: gzip, deflate
Or get it to leave Accept-Encoding out altogether.
Ofcourse this is not a solution to the problem, but could point you in the right direction.

-Timo

nl059810
Posts: 16
Joined: Thu Sep 03, 2009 10:29 pm

Re: ZendServer on port 10081 displaying rubbish

Post by nl059810 » Wed Oct 14, 2015 11:11 am

You weren't wrong Timo...

I wondered how and where in the browser I could change something about compression / de-compression. But I had a look in php.ini (the current one and the one that used to work in the previous version).

I found the following lines

Code: Select all

zlib.output_compression=On
zlib.output_compression_level=-1
Exactly the same as before I did the upgrade. At least, that's what I think was in php.ini (I looked in /etc-6.3.0, which is the back-up from before the upgrade as I presume....

But, to find out if you were on the right track I commented these lines out. And guess what: I get am now redirected to the ZendServer login page.

Thanks!
Henri Timmermans, Software Engineer at FH Holding BV
Internet : http://www.exa-holding.com
LinkedIn: http://www.linkedin.com/pub/henri-timmermans/14/b39/236

timo_karvinen
Posts: 82
Joined: Wed Aug 12, 2009 7:58 am
Location: Tampere, Finland
Contact:

Re: ZendServer on port 10081 displaying rubbish

Post by timo_karvinen » Wed Oct 14, 2015 1:26 pm

Well nice that you got it to work.
Still I think Zend should look into this, seems there's something wrong anyway.
Why it happened etc. seems it was compressing twice, or compressing and then not sending the information in headers that the data is compressed...

-Timo

gfdg6720
Posts: 3
Joined: Wed Apr 13, 2016 6:24 pm

Re: ZendServer on port 10081 displaying rubbish

Post by gfdg6720 » Wed Apr 13, 2016 11:57 pm

Haha totally fixed my problem too! Commenting out "zlib.output_compression=On" from /etc/php.ini allowed the website to load and not display garbage.

Post Reply