Any browser can be used to view the result of perl script
Overview of the Hello World Sample
This
application is a very simple implementation of the hello world sample.
There perl script displays "Hello Oracle World"
within a HTML page.
Extracting the source code
The sample files are stored in a file name
helloWorld.zip. Create a directory PerlSamples and download the zip file.
Extract the zip file to the created directory.
The zip file consists of the following files
helloWorld\helloWorld.pl
- This file generates a HTML page with the content "Hello Oracle
World ".
helloWorld\Readme.html
- This file has instructions for running the HelloWorld Application.
Running the Application
The steps in running the sample in iAS environment
is explained below :
Step 1. Create a directory PerlSamples and
extract the files from the helloWorld.zip file into the newly created directory.
Step 2. Alter the first line of the program
to point to the location of the perl executable.
#! <path of perl>
Step 3. To view the result of helloWorld.pl
do the following.
Access the page by using a URL like:
http://<ipaddress>:<Port>/<virtual_path>/<sample_name>
where,
<ipaddress> -> is the ip-address of the
machine on which iAS is setup
<Port>
-> is the port on which iAS http listener is setup to run
(refer to file $iAS_HOME/Apache/Apache/conf/httpds.conf)
<virtual_path> -> is the prefix defined for the perl Module
For the virtual path creation refer to the file $iAS_HOME/Apache/Apache/conf/httpds.conf.
Above the declaration of the perl directives you will find an alias being
defined like
alias /cgi-bin/ "/home3/iashome/Apache/Apache/cgi-bin/"
Add one more alias like the following
alias /perl/ "/home3/iashome/perlSamples/helloWorld/"
Also within the declaration of the perl directives add the following to
add the newly created alias.
In case of any Internal Server
error please view the log file httpds_error_log for further details. You
could find this file in the directory
/Apache/logs of iAS installation