AWStats and CGI on SA7

Hello,
Trying to setup AWStats on OSv5.9. to do this I have to setup CGI. Is it my understanding (from the documentation) that .pl files and CGI in general are installed by default?
That all I have to do is setup the vhost prefix and path and CGI magically works?
I tried this and I get a "404 not found" when i tryto access the /cgi-bin/awstats.pl or any other .pl file 9from the browser).
Can anyone relay any specific experience in setting CGI up?

When I show Apache script for Java.exe, It try execute
java.exe programme_on_java.class
Put your class in a jar with a manifest file and execute with
java.exe -jar myjarfile.jar

Similar Messages

  • Oracle Describe Statement and CGI

    Hello,
    First of all,
    I would like to thank everyone that helped me out. It really
    made my much easier.
    Second,
    General Question.
    describe command in Oracle will display a specified table's
    definition.
    Now, I have a CGI program that will execute any SQL statement
    that has to do with tables on Oracle Database.
    i.e. select , update, insert, delete. Now when I tried
    describe student, i got an error (in httpd error log file:
    "invalid SQL statement". why?
    here is a code from my program,
    assuming: $fields{'sqlString'} = describe student
    $sth = $dbh->prepare($fields{'sqlString'})
    $sth->execute;
    Thanks Alex
    null

    Matt Surico (guest) wrote:
    : Alex Korneyev (guest) wrote:
    : {snip}
    : : General Question.
    : : describe command in Oracle will display a specified table's
    : : definition.
    : : Now, I have a CGI program that will execute any SQL
    statement
    : : that has to do with tables on Oracle Database.
    : : i.e. select , update, insert, delete. Now when I tried
    : : describe student, i got an error (in httpd error log file:
    : : "invalid SQL statement". why?
    : : here is a code from my program,
    : : assuming: $fields{'sqlString'} = describe student
    : : $sth = $dbh->prepare($fields{'sqlString'})
    : : $sth->execute;
    : : Thanks Alex
    : "describe" is a SQL*Plus command, not a SQL command. Other
    : SQL*Plus commands are column, spool, ttitle, etc...
    : If the Oracle user by which you execute the CGI above has
    access
    : to the data dictionary, you can issue the following command:
    : SELECT column_name, nullable, data_type, data_length
    : FROM dba_tab_columns
    : WHERE table_name = 'STUDENT'
    : AND owner = '{fill in the owner name in CAPS}'
    : If the Oracle user in your CGI doesn't have full access to the
    : data dictionary, you or the DBA could minimally grant SELECT on
    : DBA_TAB_COLUMNS to that user.
    : Hope that helps!
    : Matt Surico
    : Oracle 7.3 Certified DBA
    Thanks, that helps.
    Speaking of permissions. How do i set permissions for a user?
    acctually add user? for testing my CGI i am using orcl database
    with scott/tiger permissions. How do i view user's permissions?
    Also, I have this weird problem. Well I know the anser to it,
    but i need a way to go around it. Here it goes.
    Assuming following:
    alextable = (fname char (20), lname char(20))
    If I do the following from within SQL/Plus
    insert into alextable values('Alex','Was Here');
    then select * from alextable, i can see it. BUT if i do the same
    thing from CGI, I won't see, until i quit SQL/Plus. But if i
    issue the same command from CGI script and then do "select"
    statement, I will see the changes from SQL/Plus and CGI levels.
    I know that some databases use that as a "Rollback" feature.
    Is ther anyway to modify, maybe user permissions, or something
    else,so i would be able to see changes right away, no matter
    where i make them.
    thanks
    alex
    null

  • Perl, cookies and CGI.pm

    Does anyone use Perl and CGI.pm to create and read cookies on a WebLogic 5.1 server?
    I can create the cookie just fine, but I can't read the cookie I create
    and I believe it is because the cgi-bin is outside the
    public_html directory. Is this fixable?
    I just want to do something real simple and I don't have time to learn Java!

              To what?
              "james" <[email protected]> wrote:
              >
              >Still hoping someone will respond.
              

  • What is the relationship between CGI-Executables and cgi-bin?

    I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
    I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
    If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
    Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
    And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
    Ti Powerbook G4   Mac OS X (10.4.4)  

    Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
    My apache error log says:
    [Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
    Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
    I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
    Here's the first directory directives in httpd.conf:
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride Options
    </Directory>
    Farther down, there's this, which I added ExecCGI and index.cgi:
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    <Directory /Users/*/Sites>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    DirectoryIndex index.html index.cgi
    <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
    Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
    Include /private/etc/httpd/users/*.conf
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews Includes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
    Ti Powerbook G4   Mac OS X (10.4.4)  

  • A few questions about After Effects and CGI (Computer-generated Imagery)

    Hi,
    I'm very new to After Effects and this forum. But I have a few questions.
    Now, I have recently started a movie project with my friend at a workshop. It's an action/sci-fi film and I'm probably going to be the editor and if needed in charge of visual and/or special effects. This sounds like a pretty big job for a noob, but we don't have a time limit with the project so there's time to learn.
    But to my questions. I've thought of introducing CGI to myself (very simple of course). I've studied the use of blender, and I think I'll use it for the modelling and animation. But should Ae be used in any stage of producing the CGI or should everything be done in blender? If I do, how? Am I going in the wrong direction (wrong kind of software, etc.)?
    Also, I'm not talking of fully producing the scene with the computer, but adding things like characters or items, maybe special effects.
    I'm hoping for an answer to all my questions, but if you have just one or two answers I'm happy to hear them too. You're also welcome to correct me if I've misunderstood something. Please ask for further specifications if you need any!

    pek859 wrote:
    1. I'm very new to After Effects and this forum. But I have a few questions.
    2. Now, I have recently started a movie project with my friend at a workshop. It's an action/sci-fi film and I'm probably going to be the editor and if needed in charge of visual and/or special effects. This sounds like a pretty big job for a noob, but we don't have a time limit with the project so there's time to learn.
    3. But to my questions. I've thought of introducing CGI to myself (very simple of course). I've studied the use of blender, and I think I'll use it for the modelling and animation. But should Ae be used in any stage of producing the CGI or should everything be done in blender? If I do, how? Am I going in the wrong direction (wrong kind of software, etc.)?
    4. Also, I'm not talking of fully producing the scene with the computer, but adding things like characters or items, maybe special effects.
    5. I'm hoping for an answer to all my questions, but if you have just one or two answers I'm happy to hear them too. You're also welcome to correct me if I've misunderstood something. Please ask for further specifications if you need any!
    1. Welcome to the family. AE is big, Really big. It's hard. Really hard. You have no idea how hard AE is to learr and to master.
    2. No time limit is good but you will need some money.
    3. This is not a Blender forum. You want to explore filmmaking, CGI and Blender-specific forums for that kind of assistance.
    4. AE is for your compositing and special effects. But you will need to learn how both apps work before you can decide how to divide up your project. A comparison would be shooting your film. Are you using a DSLR? Do you know why? Or are you using a GoPro? Another example might be Apple's Final Cut Pro. You can edit audio in it but it's better to use an audio application. You can do some special effects in FCP but it's best to do complex stuff in Motion of After Effects. How do you know what app is appropriate Lots of experience. Lots of failures.
    5. We were all new to AE and to vidoe editing and to special effects at one time or another. The user forums are not places to learn how to use these applications. You do that with tutorials and books and tons of time. Learning to use Blender to make a robot move is one thing. Making the robot into a character that compels the audience to care about it is quite another. Using AE to create a layer of clouds is one thing. Having those clouds react to the bow waves created by your flying robot as it approaches sonic speeds is quite another challenge.

  • Still problems with Apache and cgi

    I thought it was the "admin" vs "staff", but that isn't the problem. I switched everything to staff but the scripts that weren't working still aren't.
    I've checked everything out that I can see (basically the ls -l listing) and I cannot see anything different between the two files.
    If I go into the one that works (newshdr.cgi) and paste into it the code from the cgi that doesn't work (newsshow.cgi) the code works. But, if I copy the code from the working cgi into the non-working cgi the latter still doesn't work. So, from this, I know it is not anything in the code itself -- it must have something to do with the files. But I'll be darned if I know what.
    Both cgi's are in the same directory, so the permissions down to there are the same. Both cgi's are -rwxrwxrwx, so that isn't the problem. Both now state "staff" instead of the non-working one being "admin".
    I am really stumped. Any help would be greatly appreciated...IOW HELP!!!!!
    Mike

    Not much help, this is the log:
    [Tue Sep 26 17:18:24 2006] [error] (2)No such file or directory: exec of /Users/mike/Websites/KTA-Hike.tst/cgi-bin/AlertShow.cgi failed
    [Tue Sep 26 17:18:24 2006] [error] [client 127.0.0.1] Premature end of script headers: /Users/mike/Websites/KTA-Hike.tst/cgi-bin/AlertShow.cgi
    But the file is there, here's the listing from Terminal:
    [Mike-Lipays-Computer:~] mike% cd /Users/mike/Websites/KTA-Hike.tst/cgi-bin/
    [Mike-Lipays-Computer:~/Websites/KTA-Hike.tst/cgi-bin] mike% ls
    AlertAdd.cgi NewsForm.cgi RegisterShow.cgi
    AlertForm.cgi NewsHdrs.cgi TrailRegister.cgi
    AlertMaint.cgi NewsLoad.cgi calendarscript
    AlertShow.cgi NewsMaint.cgi counter.cgi
    Contact.cgi NewsShow.cgi counter.txt
    Damage.cgi OrderForm.cgi xNewsHdrs.cgi
    EmailLoad.cgi RegisterLoad.cgi xNewsShow.cgi

  • OWS or OAS and CGI's signals sent

    Hello
    I've got a question about CGI and OWS (or OAS, it's the same problem)
    I've got a C compiled program which intercept signals (especially SIGUSR1) and execute a task (for exemple a simple "printf" and exit
    The program do an infinite loop
    program. When i execute this program in a shell window, the program loop infinitely which is logical. In a second shell window i send signal SIGUSR1 (with a "kill -USR1") to the process of the program. Immediatly, the program execute the task and exit. The program works perfectly.
    Now, i put the program in a cgi directory configured in a Web listener
    I execute the program in a navigator (Netscape) with an url likes http://my_server/my_cgi_directory/my_program
    The program loops
    I creates a cgi program (a shell) which gets the id process of the program which loops and send the USR1 signal. I put this cgi program in my cgi directory.
    In a second navigator, i launch the cgi program which normally send USR1 signal, and the program which loops should execute the correctly task and exit as it does.
    And now, the program don't exit, in fact it doesn't launch the task.
    I've got the same problem with OWS 3.02, OAS 4.08, linux, aix platform.
    I've tried to send the USR1 signal in a window shell but no action, the signals are blocked.
    The only two signals KILL and STOP works properly, in a window shell AND in an URL with navigator.
    Have you got this problem too ?? Which is the solution ??? I'have open a call to ORACLE SUPPORT but no response, they say the problem perhaps will never be solved (for them, it may not be a BUG)
    Thanks in advance
    null

    Regarding to issue #1,
    I would suggest to the change your virtual path to physical path mapping setting in OAS. The OJSP engine will lookup pages relative to your physical path (not the default doc root).
    Regarding to issue #2,
    Unfortunately, the information you provided is rather limited. It's difficult to do some definite diagnositic based the brief description. Sorry.
    null

  • Can you use LV6.1 Remote Panel AND CGI?

    I would like to use both CGI and the Remote Panel system of LabView 6.1. I'd perfer to be able to implement the CGI in either Perl or LabView, but anything would work. What I'm trying to do is have a front end that is mainly all CGI, and only after certain conditions things have occured in the CGI would they be allowed access to the Remote Panel. This could be pretty easily done by having the CGI write the HTML file for the Remote Panel. I would do it all using Remote Panel, but the I only have 1 license, and I only really want 1 person to be able to use the Remote Panel at a time, but I want multiple people to have access to the CGI at any given time. Any ideas would be more helpful.

    I'm working on a similar issue with controlling connections to my remote panels. Correct me if I'm wrong, but I think the above solution has some loopholes also. Since the CGI script is generating a new HTML and actually writing it to disk, wouldn't anyone else also be able to connect to this newly page if they new the URL?
    For instace:
    1) A person logs in from the CGI page.
    2) The CGI script builds the remote panel page.
    3) At any time thereafter, someone knowing the name of the new webpage can connect to it.
    Now this problem could be solved if the newly generated page could be sent directly to the person who has logged in if session variables were used within a single web server. However, since two separate web servers are being
    used, this is probably not possible.
    If anyone has a solution to this new problem or can refute what I've just said, please let me know. I have been running over how to do use a login system repeatedly without success. I really don't want to default back to using IP addresses to block access since my users will be 1) spread across multiple IP ranges and 2) more than likely unable to provide their own IP addresses if requested.
    Thanks,
    Pete

  • Web sharing - virtual hosts and CGI

    This topic might be a bit advanced for this forum, I'm not sure. But here goes.
    I'm trying to set up my laptop to act like a web server so that I can do test development on it. I have two web sites, and have successfully created virtual hosts for each of them.
    The part that I'm struggling with now is enabling CGIs, as I want to learn to write CGIs in Perl. I can't seem to find any site that discusses how this is done in Leopard. One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location. Besides which, I'd like to know how to enable CGIs placed in a folder on each of my virtual sites, so that I could test them in place.
    Any ideas?

    One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location.
    That is an incorrect assumption.
    By default, Apache is configured to recognize any URI that begins with /cgi-bin and serve that request via a CGI script in /Library/WebServer/CGI-Executables
    This is true even though each site's DocumentRoot is set somewhere else on the file system (that's by design since it makes it harder for a remote attacker to affect your CGIs)
    Since it does not matter which site the request was on, any /cgi-bin request would be served from there, so:
    http://www.domain1.com/cgi-bin/some.cgi
    http://www.domains2.net/cgi-bin/other.cgi
    would both be served from /Library/WebServer/CGI-Executables even though they are for two different virtual hosts.
    Now, of course, if you want each site to be separate and have its own set of CGIs (maybe some.cgi for domain1 does something different from some.cgi on domain2) then this approach causes problems. For this you will need to edit each site to have its own cgi-bin directory.
    Unfortunately (although I haven't tested it) I think Matt's solution won't work because Apache is going to catch all /cgi-bin/ requests and serve them from /Library/WebServer/CGI-Executables, never getting to the cgi-bin directory within each site's documentroot.
    To set site-specific CGI directories you need to add a ScriptAlias command to each site's .conf, such as:
    ScriptAlias /cgi-bin/ /path/to/site/cgi-bin/
    This tells apache that any request for /cgi-bin/* should be served from /path/to/site/cgi-bin
    Ideally the path should be outside of the site's normal document root, but it can be inside if you really want.

  • Firefox and .cgi annoyance [solved]

    I'm trying to access my dreamhost webpanel, which turns out to be some index.cgi page (after I've entered my credentials), but I always get a popup asking me to download the file.
    Firefox doesn't seem to process the CGI file itself. Anyone else have this problem and/or know a fix?

    cactus wrote:
    tardo.. instead of going to..
    https://panel.dreamhost.com/
    go directly to https://panel.dreamhost.com/index.cgi
    bam.
    that works, thanks.

  • CFHTTP and .cgi question

    Ok, I'm trying to include a search.cgi file into a CF page.
    On the initial
    page load, it displays fine, but when I search, I get a 404
    error.
    The code I have used is:
    <cfhttp url="
    http://www.salleboise.com/search/search.cgi#cgi.QUERY_STRING#"
    method="GET" timeout="60"
    throwonerror="yes" charset="windows-1252"></cfhttp>
    <cfif Len(CFHTTP.FileContent)>
    <cfoutput>#CFHTTP.FileContent#</cfoutput>
    </cfif>
    The search.cgi I can run manually, and it displays the
    results fine.
    What is going on?
    Any ideas????

    Dan, you are the MAN!!
    Thanks!!
    "Dan Bracuk" <[email protected]> wrote in
    message
    news:f4q8ca$nr8$[email protected]..
    > I'm guessing a missing question mark.

  • Formail and CGI-bin file

    I installed a form mail product called Formail several months
    ago. I am using Dreamweaver 8 at work. I am creating a new form and
    cannot find my cgi-bin file to modify the program. Does anybody
    have any experience with this program in Dreamweaver? I have
    earched for hours. The old form I created still works great but I
    cannot trace it back to the cgi-bin file. I think I have been
    working to long!!!!!

    look inside your cgi-bin for a file named formmail.pl
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Warren Sims" <[email protected]> wrote in
    message
    news:g7d4d0$jf7$[email protected]..
    > I installed a form mail product called Formail several
    months ago. I am
    using
    > Dreamweaver 8 at work. I am creating a new form and
    cannot find my cgi-bin
    file
    > to modify the program. Does anybody have any experience
    with this program
    in
    > Dreamweaver? I have earched for hours. The old form I
    created still works
    great
    > but I cannot trace it back to the cgi-bin file. I think
    I have been
    working to
    > long!!!!!
    >

  • CHM, Forms and CGI

    RoboHelp HTML X5.0.1, Build 606
    I'm creating an instructional CHM and I would like to add
    forms so I can save information about the user progress. I would
    like to use the Forms & CGI but the help file for RoboHelp only
    gives a brief description of what CGI is. Are there any good books
    or web sites that gives extensive tutorial on how to use CGI with
    RoboHelp?
    In essence I want to create a mini database for each user
    that goes through the instructional CHM. I've looked for books on
    RoboHelp X5 online but I can't seem to find any. Were there any X5
    books ever published?

    Here are the basic steps for setting up CGI:
    - design a form that accepts input
    - write a script or program to process the data from your
    form
    - in your form, set up a Submit button with a link. The link
    is to the program file name, and usually includes the data in the
    form of key-value pairs. For an example,
    look at the link to the present page:
    http://www.adobe.com/cfusion/webforums/forum/messagepost.cfm?postaction=reply&catid=449&th readid=1353586&messid=4921766&STARTPAGE=1&parentid=4921766
    - on your server, associate the program file name extension
    with a script interpreter that can run the program. The first line
    of the program has to contain a special statement for the benefit
    of the server -- sorry, I can't remember exactly what offhand. The
    data passed as key-value pairs is available in an environment
    variable.
    On a Windows server, you could consider ASP as an alternative
    to CGI.

  • Flash and CGI

    Hi everyone, i'm stuck with an issue and i can't seem to find
    the solution for it.
    Let's say i have a cfm file that has an embeded swf game.
    This game obtains data from my server, therefore there will be
    validation modules and such.
    The problem is, if somebody manages to grab/download/etc the
    swf file from my cfm, and runs it through his computer or website,
    then i would need to prevent the swf from connecting to my server.
    So, what im planning is, to check for the website/or the location
    that hosts the swf file, If it is not from my server, then i will
    deny all access. Is there a way for me to implement that.
    My original play was to use cgi.HTTP_HOST, but i can't find
    any reference about implementing in actionscript.
    Any help will be appreciated.
    Thanks

    Hi everyone, i'm stuck with an issue and i can't seem to find
    the solution for it.
    Let's say i have a cfm file that has an embeded swf game.
    This game obtains data from my server, therefore there will be
    validation modules and such.
    The problem is, if somebody manages to grab/download/etc the
    swf file from my cfm, and runs it through his computer or website,
    then i would need to prevent the swf from connecting to my server.
    So, what im planning is, to check for the website/or the location
    that hosts the swf file, If it is not from my server, then i will
    deny all access. Is there a way for me to implement that.
    My original play was to use cgi.HTTP_HOST, but i can't find
    any reference about implementing in actionscript.
    Any help will be appreciated.
    Thanks

  • Sending parameter between JSP and CGI

    How to send parameters from CGI to JSP ? And how to receive returned value from JSP to CGI?

    When you mention "rest of params" as a parameter, would the request not include all of the parameters within that bean????
    You might be calling ur bean from the JSP right, for
    eg assume your bean name is "myBean".
    From JSP you pass the request object ie,
    myBean.executeTransaction(request,<rest of the
    params you need>)Your bean should be like
    import javax.servlet.*;
    //methods
    public String executeTransaction(HttpServletRequest
    request, <rest of the paramss){
    //do you check here
    //if request.getParameter("actionPerformed")==null(?)

Maybe you are looking for