ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

setup for cgidev2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • setup for cgidev2

    Hello, I'm hoping someone can help me get CGIDEV2 going today so I can play with it over the weekend. Last year we downloaded CGIDEV2 for our immediate xml needs. Now we want to get our feet wet with some web stuff with RPG. To that end:

    Ran the command: CPYF FROMFILE(CGIDEV2/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
    FROMMBR(CGIDEV2APA) TOMBR(CGIDEV2APA) MBROPT(*REPLACE) CRTFILE(*YES)

    Created/started server CGIDEV2APA


    Created a new CGIDEV2 libary CGIDEVHP using the cgidev2/setcgilib command as both the source and production libraries. Now, when running the setcgilib command we are using Apache as the type of directive, and choose CGIDEV2APA as the http instance to be updated. I get a 'Not authorized to stream file
    /cgidev/conf/httpd.conf.' message. but my boss said he gave me *USE authority to it. Here are some questions and thanks for any help.

    Do I need to create another directory which would basically be a copy of the CGIDEV directory?

    Do I need a differnt type of authority for stream file message...(obivisosly I do, but what?)

    Once I get the proper authority to run the command all the way, will my httpd.conf file be configured correctly and I will be able the run the sample pgm?

    Anything else that would get me going??

    Thanks again.

  • #2
    Re: setup for cgidev2

    Try using security profile (QSECOFR or QSECADMIN)
    Or get them to give you full read/write authority and then tighten up later.

    It's been a while since I've done this, and I think IBM changed the procedure a few years ago, if you are using IBM version...

    Each instance of server is defined in a member of QUSRSYS/QATMHINSTC points to a httpd.conf configuration file.

    Do I need to create another directory which would basically be a copy of the CGIDEV directory?
    No, I don't think that is necessary. I think you can have two instances pointing to the same config file,
    or two config files in the same directory.


    I think setcgilib is used to set up source file members and move service program to new library

    I would start by getting examples in CGIDEV2 working and then create new test and production directories
    once you start get confortable.


    and take a look here...

    Comment


    • #3
      Re: setup for cgidev2

      Thank you for your reply. I was able to get my boss to run the command and then I was able to get the sample program to work. I'm sure I will have questions in the future but will always do a search beforehand.

      Thanks again.

      Comment

      Working...
      X