I actually prefer to connect via SSH. Pretty simple to get going.
1. Create server host keys (if not already done):
on V5R3 or V5R4:
CALL QP2TERM
>ssh-keygen -t rsa1 -f
/QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_key -N ""
>ssh-keygen -t dsa -f
/QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_dsa_key -N
""
>ssh-keygen -t rsa -f
/QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_rsa_key -N
""
on V6R1
the server host keys will be created if necessary during
STRTCPSVR *SSHD
2. Start sshd server side (i5/OS):
on V5R3 or V5R4:
CALL QP2TERM
>/usr/sbin/sshd &
on V6R1:
STRTCPSVR *SSHD
3. Then create a connection in Zend Studio using the "SSH Only"
connection type. You should be good to go.
HTH,
Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi
Young i Professionals
http://www.youngiprofessionals.com
"Mike Pavlak" <Mike.Pavlak@xxxxxxxx>
Sent by: web400-bounces@xxxxxxxxxxxx
07/01/2009 08:40 AM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
"Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx>
cc
Subject
Re: [WEB400] Zend Studio on iSeries
Let me see if I can take a swing at this one:
No, sFTP is not necessary, but is certainly an option. We have chosen
to implement the least intrusive method of file access for IBM i to
Eclipse. We are certainly exploring alternatives, but here are two of
several methods for accessing files on your i5 using ZSEi5. But before
we get into that, please ensure you have Zend Studio for Eclipse, i5
Edition, that you have proper authority to the directories in the IFS
that lead to the document root (default is '/www/zendcore/htdocs/*', and
that you have no firewalls between you and the i5 inhibiting port 21
default FTP processes (Default port for SSH is 22, I think).
Method 1: Create a mapped drive.
If you have NetServer configured and running with good response time
this might be attractive as you can use the local system access to the
IFS. This might require your system admin to setup a "share" directly
to the document root (or wherever) like '/www/zendcore/htdocs' using
iSeries Nav. My recommendation is that you setup a share for a group of
developers. Save time and headache down the road.
Method 2: Use the FTP construct of the remote server configuration. I
outline the steps involved in doing this in a free webinar on Zend.com
called Getting Started with PHP on IBM i.
http://www.zend.com/en/resources/webinars/i5-os
To use the FTP process here are the steps:
1) Issue the host command to change the FTP default CHGFTPA
NAMEFMT(*PATH) CURDIR(*HOMEDIR) LISTFMT(*UNIX)
Note: Please research this command to ensure you do not disrupt batch
based FTP processes in your shop!!!
2) Bounce the FTP server using ENDTCPSVR SERVER(*FTP) & STRTCPSVR
SERVER(*FTP)
Note: It is normally a good idea to check to see if the FTP servers have
ended before restarting them, they live in the QSYSWRK subsystem under a
job named QTFTPnnnnn
3) Open ZSEi5 and navigate to the "Remote Systems" window typically in
the upper left pane of the ZSE desktop.
4) Select the tab for "Remote Systems" then right click inside this
pane and select "New Connection..." There is also a button that looks
like a 3 way plumbing connection and you can use that as well.
5) You should be presented with a dialog box: "Select Remote System
Type". Expand the General option if not expanded and select "FTP Only"
and click next.
6) You will be presented with a dialog box that says: "Remote FTP Only
Connection". Enter the pertinent information You will need a host name
and a connection name that will appear in the ZSE desktop. Description
is optional, but I usually fill it in. I leave verify host name checked
as I am usually online when attempting this and I want to know right
away if I can see the host IBM i. It will tell you if it cannot find
it! Click Next
7) you will be presented with a dialog window that says: "Files".
Single-click on "FTP Settings" and the properties box will get
populated.
8) In the cell that is the intersection of "Value" and "parser"
single-click to activate the drop down arrow and then click the drop
down arrow. From the pick list select "org.eclipse.rse.ftp.Unix.
9) Click finish and the dialog box should disappear. You should now
have a new connection in the "Remote Systems" pane.
10) Expand the system you just created in the "Remote Systems" pane,
repeated until you see root. When you expand root you should be
challenged for your IBM i UserID and password. Key in your credentials
and navigate to the directory you are looking for.
If you have trouble please give me a shout or open a ticket with support
under the silver level contract or an upgraded contract, should you have
one.
Regards,
Mike
mike.p@xxxxxxxx Cell: (408)679-1011 Office: (815)722-3454
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Thomas Garvey
Sent: Tuesday, June 30, 2009 11:54 PM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Zend Studio on iSeries
Anybody able to get Zend Studio to be able to access the iSeries and
store
the PHP and HTM L scripts in the IFS there?
Tom Garvey
As an Amazon Associate we earn from qualifying purchases.