ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Starting from scratch

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

  • Starting from scratch

    Sorry I delete original post so all that followed is gone

    I will attempt to recreate here.

    We will work to set up you Iseries to be a webserver.

    We will need to first check your version

    we can do that by typing command
    Code:
     DSPDTAARA QSS1MRI
    I am hoping to see V5R? (something)

    Goto this page and copy only the bold lines from the
    HTTP config file. use WRKHTTPCFG to view/edit yours.


    the line ==> PASS /* /Web/*
    tells the server to look for folder Web for your index page
    (by the way "#" = commented out)
    create this folder by typing on command line
    Code:
    MD Web
    This will make directory Web
    you can use iseries navigator to see this it will be under
    root/Web.

    you can see it from the green screen by typing
    Code:
    WRKLNK

    We will take your personal site http://www.quadrapet.com and place it on the Iseries. The Java script will also function here.

    I have attached your modified site...Please drop this into folder
    Web.

    Once you modifiy your config file then start the webserver
    Code:
    STRTCPSVR *HTTP

    Let me know when you get to this point

    Thanks
    Attached Files
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

  • #2
    http

    One problem
    when we do this line in the config:
    Exec /cgi-bin/* /QSYS.LIB/CGI_BIN.LIB/*.PGM %%EBC
    the editor says this is an invalid command, everything else is good...

    Comment


    • #3
      http

      also when I do
      WRKLNK and option 5 on the web directory I created it tells me
      Cannot find object to match specified name
      not sure if this a problem or not...
      Thanks again

      Comment


      • #4
        http

        I now have the 'web' directory created and have dropped index.html and the images folder in there.

        You worked for Roland? Awesome!!
        I have roland keyboards and also my home studio is a BR1180CD
        Love it!

        Comment


        • #5
          Okay let me try to catch up

          I loved Roland great place to work super products.


          Case is important here i believe folder should be Web


          Okay dont worry bout this
          Exec /cgi-bin/* /QSYS.LIB/CGI_BIN.LIB/*.PGM %%EBCDIC%%

          Also above line says there has to be library on Iseries
          name CGI_BIN (you can name this whatever)
          lets create this
          Code:
           CRTLIB CGI_BIN

          It is very important to our CGI but not so important to getting the server up.


          also when I do
          WRKLNK and option 5 on the web directory I created it tells me
          Cannot find object to match specified name
          not sure if this a problem or not...


          Above okay cause it was MT

          So now that the page is in folder we need to start the web server

          strtcpsvr *HTTP

          Then open up explorer and type
          Code:
          http://YourIseriesIp
          you should see your page


          thanks
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Http

            Awesome it works.
            I'll post my original question on monday....
            Thanks for everything, enjoy the cold this weekend...

            Comment


            • #7
              no need for that

              But you better post an image of your site running on Iseries.

              Monday I can help you create the CGI stuff.

              Take Care
              Jamie
              All my answers were extracted from the "Big Dummy's Guide to the As400"
              and I take no responsibility for any of them.

              www.code400.com

              Comment


              • #8
                This has come in very helpful.

                I just have a couple of requests.

                Where can i find out the meaning behind the syntax of the HTTP configuration?

                Also, I have a problem using the web based HTTP Administration web page. It won't come up

                Comment


                • #9
                  try this link it should help




                  also check this out




                  let me know if you need more.

                  jamie
                  All my answers were extracted from the "Big Dummy's Guide to the As400"
                  and I take no responsibility for any of them.

                  www.code400.com

                  Comment


                  • #10
                    Here is a screen shot of the Web admin for HTTP on the 400

                    Error: 500
                    Location: /HTTPAdmin/Frame/SetupNav/Intro
                    Internal Servlet Error:


                    That is on the opening screen

                    and when i try to configure a new server i either get an error or i am told that i don't have authority.

                    I'm signing on as QSECOFR for this since i am the SOLE proprietor of our AS/400's web workings

                    Comment


                    • #11
                      you need more than just qsecofr

                      You need special authority

                      Code:
                      CHGUSRPRF 
                      
                       Special authority  . . . . . . .   *IOSYSCFG

                      and you need special authority *SYSADM to change your password.


                      I believe you donot have *IOSYSCFG special authority


                      Jamie
                      All my answers were extracted from the "Big Dummy's Guide to the As400"
                      and I take no responsibility for any of them.

                      www.code400.com

                      Comment


                      • #12
                        no dice.

                        Same error

                        Error: 500
                        Location: /HTTPAdmin/Frame/SetupNav/Intro
                        Internal Servlet Error:

                        java.lang.NoClassDefFoundError: com/ibm/as400/httpsvr/portal/WizardValidation

                        Comment


                        • #13
                          this may be a dumb question but.....

                          did you start the *HTTP server

                          and is there an admin session running?
                          and what version are you running of OS400?

                          Also if you cant get to the gui you can copy the HTTP config from this site and setup your config with WRKHTTPCFG.

                          each server definition is store in member(s) in file QATMHTTPC





                          Code:
                           QHTTPSVR       QSYS        SBS      .0                   DEQW    
                             ADMIN        QTMHHTTP    BCH      .0  PGM-QZHBHTTP     SIGW    
                             ADMIN        QTMHHTTP    BCI      .0  PGM-QZSRLOG      SIGW    
                             ADMIN        QTMHHTTP    BCI      .0  PGM-QZSRHTTP     SIGW    
                             DEFAULT      QTMHHTTP    BCH      .0  PGM-QZHBHTTP     CNDW    
                             DEFAULT      QTMHHTTP    BCI      .0  PGM-QZHBHJOB     TIMW    
                             DEFAULT      QTMHHTTP    BCI      .0  PGM-QZHBHJOB     TIMW    
                             DEFAULT      QTMHHTTP    BCI      .0  PGM-QZHBHJOB     TIMW    
                             DEFAULT      QTMHHTTP    BCI      .0  PGM-QZHBHJOB     TIMW
                          All my answers were extracted from the "Big Dummy's Guide to the As400"
                          and I take no responsibility for any of them.

                          www.code400.com

                          Comment


                          • #14
                            this is what mine looks like

                            QHTTPSVR QSYS SBS .0 DEQW
                            ADMIN QTMHHTTP BCH .0 PGM-QZHBHTTP SIGW
                            ADMIN QTMHHTTP BCI .0 PGM-QZSRLOG SIGW
                            ADMIN QTMHHTTP BCI .0 PGM-QZSRHTTP SIGW
                            ADMIN QTMHHTTP BCI .0 PGM-QYUNLANG TIMW
                            DEFAULT QTMHHTTP BCH .0 PGM-QZHBHTTP CNDW
                            DEFAULT QTMHHTTP BCI .0 PGM-QZHBHJOB TIMW
                            DEFAULT QTMHHTTP BCI .0 PGM-QZHBHJOB TIMW
                            DEFAULT QTMHHTTP BCI .0 PGM-QZHBHJOB TIMW

                            all i'm trying to do is configure the generic HTTP server so that i can then move on to the SSL set up.

                            This is ridiculous. It shouldn't be this hard.

                            Comment


                            • #15
                              Once its set up its done this is the hard part.

                              All downhill after setup


                              hey goto this site download tools (Its IBM ITALY) then just run their tool it will do the work for you,





                              jamie
                              All my answers were extracted from the "Big Dummy's Guide to the As400"
                              and I take no responsibility for any of them.

                              www.code400.com

                              Comment

                              Working...
                              X