Search found 187 matches

by scottgcampbell
Wed Nov 18, 2015 6:21 pm
Forum: PHP
Topic: PHP on AS400
Replies: 5
Views: 3886

Re: PHP on AS400

On the IBM i you can:

Code: Select all

qsh
ls /usr/local
You should see zendsvr6, or you can use the menu:

Code: Select all

go zendsvr6/zsmenu
Scott
by scottgcampbell
Mon Nov 09, 2015 5:47 pm
Forum: Zend Server for IBM i
Topic: Error Pages with FastCGI
Replies: 9
Views: 4133

Re: Error Pages with FastCGI

No problem:

V7R1
Apache: Apache/2.2.11 (i5)
Zend: 2.5.0
PHP: 5.5.26
Zend Server Version: 8.5.1 Build: 100844

If you post your complete config I can compare to see if there are differences and test to see if I can break mine :)

Scott
by scottgcampbell
Thu Nov 05, 2015 8:46 pm
Forum: Zend Server for IBM i
Topic: Error Pages with FastCGI
Replies: 9
Views: 4133

Re: Error Pages with FastCGI

Yes, same as yours (almost)

Code: Select all

# zend fastcgi
AddType application/x-httpd-php .php .inc
AddHandler fastcgi-script .php .inc
Very strange that it wouldn't work for you. Could be one of the other directives in there, but I have no idea what :)
by scottgcampbell
Thu Nov 05, 2015 3:27 pm
Forum: Zend Server for IBM i
Topic: Error Pages with FastCGI
Replies: 9
Views: 4133

Re: Error Pages with FastCGI

I just added it at the server level and it works for me there too.

Code: Select all

Listen *:89
DocumentRoot /www/zendsvr/htdocs
ErrorDocument 404 /ecomm/404.php
Does the file exist in your <document root>/errormsg/ and do the permissions match (file and folder) to scripts that do work?

Scott
by scottgcampbell
Thu Nov 05, 2015 3:01 pm
Forum: Zend Server for IBM i
Topic: Error Pages with FastCGI
Replies: 9
Views: 4133

Re: Error Pages with FastCGI

I have a 404 working in a virtual host, is that what you tried or do you have it at the top level?
What version of ZendServer do you have?

Code: Select all

<VirtualHost *:92>
	ServerAdmin service@yyy.ca
	DocumentRoot /www/ZendSvr/htdocs/ecomm
	ServerName www.yyy.ca
	ErrorDocument 404 /404.php
....
</VirtualHost>
by scottgcampbell
Thu Oct 29, 2015 12:36 pm
Forum: PHP
Topic: Virtual host php calls, all revert to same host.
Replies: 2
Views: 4063

Re: Virtual host php calls, all revert to same host.

Try turning on rewrite logging to see if you can tell what the problem is: http://stackoverflow.com/questions/9632852/how-to-debug-apache-mod-rewrite And post your COMPLETE httpd.conf (change any server names if you have any concerns) and any .htaccess access files (if any) as the issue could be in ...
by scottgcampbell
Wed Oct 21, 2015 2:18 pm
Forum: Zend Server for IBM i
Topic: Unable to verify SSL cert using ldaps
Replies: 2
Views: 4272

Re: Unable to verify SSL cert using ldaps

Take a look at this article about adding a certificate authority, not sure it is the issue but one thing to check:

https://support.zend.com/hc/en-us/artic ... or-PHP-5-6

Scott
by scottgcampbell
Wed Oct 07, 2015 8:17 pm
Forum: PHP Questions / Hints
Topic: PHP 'db2_prepare failed' error
Replies: 3
Views: 3744

Re: PHP 'db2_prepare failed' error

What is the output from this line: $stmt = db2_prepare($conn, $proc) or die("db2_prepare failed " . db2_stmt_error(). " and " .db2_stmt_errormsg()); When it fails? Is there no error number or message? Are you sure it is failing on that line? If you are adding it into other code it is possible it is ...
by scottgcampbell
Wed Oct 07, 2015 6:26 pm
Forum: PHP Questions / Hints
Topic: PHP 'db2_prepare failed' error
Replies: 3
Views: 3744

Re: PHP 'db2_prepare failed' error

What is the error code and message?

Is it the same environment where the code is running (same server)?

Is it the same user connecting in both instances, since you said the database connect was in a different location (maybe a permissions issue)?

Scott
by scottgcampbell
Wed Oct 07, 2015 4:33 pm
Forum: Zend Server
Topic: Start Debugging Session Without ZRay Toolbar
Replies: 3
Views: 2488

Re: Start Debugging Session Without ZRay Toolbar

I use this bookmarklet, don't remember exactly where it came from but it works. Just click on it before you click on a link, or reload the page after clicking on it, debug session should start in Zend Studio. Start Debug: javascript:(/** @version 0.5.2 */function() {document.cookie='ZendDebuggerCook...