University of Oregon
Audience
Faculty/Staff
Researcher
Student
GTF

Service Status

IT News and Events

Syndicate content

IT Calendar

Sun Mon Tue Wed Thu Fri Sat
 
 
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
 
 
 
 
Add to calendar

Popular Topics

Are all the output files saved on the Applications Manager server or my local hard drive?

All Applications Manager output files are stored on the Applications Manager servers.

Was this helpful?

Your rating: None Average: 4 (5 votes)
What do I need, once I have been granted access, to run Banner from my desktop?

 

Banner now runs from your Internet browser. To get started with Internet Native Banner (INB), go to https://inb.uoregon.edu

Windows Users: 

Recommended Browsers
Internet Explorer 8 or later
Firefox 19 or later
Google Chrome 25 or later

Macintosh Users:

Recommended Browsers
Safari 5 or later
Firefox 19 or later

 

Was this helpful?

Your rating: None Average: 4.6 (5 votes)
Advanced use of pages.uoregon.edu

The pages.uoregon.edu web server system provides a limited set of advanced capabilities for web development, including use of CGI programs for forms processing and dynamic page generation. Pages is one of several ways to host websites. See Web Hosting and Publishing Services for a list of options.

Understanding the pages.uoregon.edu server system

pages.uoregon.edu is designed to support basic web publishing needs with security, reliability, and performance. This means that some advanced capabilities are restricted or not supported, and may be provided in ways that are different from other web hosting frameworks you are familiar with.

Content from pages.uoregon.edu is served from multiple web server systems. This improves performance and reliability. If one server is down because of a software problem or for maintenance, the other servers can continue to serve content.

These servers are also distinct from the shell.uoregon.edu system, although you can use shell.uoregon.edu to edit content in your pages. If you want to create CGI programs the same languages are available on shell.uoregon.edu for development and debugging purposes.

Some limitations may make it difficult to create complex web applications on pages.uoregon.edu. You may want to consider these options:

  • blogs.uoregon.edu: a hosted blog service available to the University community.
  • VMware hosting: Obtain a virtual machine instance to allow maximum flexibility in web server and software configuration.  Note, however, that you will have to manage the virtual machine and its software yourself, and there may be a fee for this service.

Using CGI

CGI (Common Gateway Interface) is a protocol that allows web page accesses to run programs on the web server system. CGI is commonly used for processing HTML form data, for generating page content dynamically, and for other sophisticated applications. Using CGI involves writing programs in common scripting languages like Perl or Python.  Their input is provided from the web server, and their output is sent to a user's browser.

You may use CGI programs on pages.uoregon.edu, with some considerations. The most significant is that CGI programs are run using the Apache suEXEC mechamism.  This means that CGI programs are run using the user ID and privileges of your own account to be able to update files (such as a guestbook), but it also means that bugs in your CGI programs could allow someone to access or modify any file in your account (which may include things like your personal email). Be careful!

suEXEC imposes a number of security restrictions that must be met before it will run CGI programs. These include:

  • The program file must be owned by your own account.
  • The program file must be executable ("mode 755" in UNIX jargon).
  • The program file must not be writable by anyone other than you.
  • The program file must reside in a directory that is not writable by anyone other than you.

A complete list of security checks and restrictions is provided in the Apache suEXEC reference.

Program files that you use for CGI should also be uploaded with "UNIX-style" line terminators (lines end with only the ASCII LF character) rather than Windows-style line terminators (CR-LF). The extra CR characters may prevent your program from running properly in our web server environment.

In general, a CGI program will need to be written in one of the available scripting languages (Perl, Python, Ruby, PHP, or even shell scripting), start with an interpreter line indicating which language is being used (i.e."#!/usr/local/bin/perl"), and must at minimum output a Content-Type header ("Content-Type: text/html") preceding its other output.

Using PHP

PHP is a popular language for creating dynamic web pages. Limited use of PHP is supported on pages.uoregon.edu, but in a way somewhat different than most other providers use.

The most important consideration for using PHP is that it works like any other CGI program interpreter, rather than being interpreted directly within the web server via an Apache server module. This means that PHP files are subject to the same security considerations and requirements described above for CGI programs. It also means that a PHP file must start with an interpreter line like this:

#!/usr/local/bin/php

If a PHP file does not start with this line, our web server will not know to treat it as PHP.

While most PHP capabilities and a number of common add-on modules are available, some have been disabled for security reasons. In particular the ability to have PHP files auomatically include other content retrieved from the web is not available ("allow_url_fopen = Off", "allow_url_include = Off").

Server-side includes

Server-side includes are a simple way to generate certain types of dynamic content in pages.  If you want an HTML file to be parsed for server-side includes, it must have a name ending in ".shtml".

Using .htaccess

The Apache web server provides a method for per-directory custom configuration using directives in a .htaccess file.  A subset of possible .htaccess directives is supported on pages.uoregon.edu. The specific categories of directives that are permitted are:

  • Indexes: directives that modify the appearance of directory indexes
  • AuthConfig: directives to control page authentication or authorization (password-protected web pages)
  • FileInfo: directives to manage redirection, rewriting, custom content types, and document metadata
  • Limit: directives to limit web page access from certain domains or IP address ranges

A more detailed listing of directives allowed in these categories is in the Apache documentation for the AllowOverride configuration option.

Simple CGI example

Place the content below in a file named "test.cgi" in your "public_html" directory, and make sure it is executable (the UNIX shell command "chmod 755 ~/public_html/test.cgi" will do this). You should then be able to access http://pages.uoregon.edu/(your DuckID)/test.cgi and see output showing you information about the web server environment.

#!/bin/sh

# disable filename globbing
set -f

echo Content-type: text/plain
echo

echo CGI/1.0 test script report:
echo

hostname
echo argc is $#. argv is "$*".
id
echo umask=`umask`
echo

printenv

Simple PHP example

Place the content below in a file named "info.php" in your "public_html" directory and make sure it is executable (the UNIX shell command "chmod 755 ~/public_html/info.php" will do this). You should then be able to access the URL http://pages.uoregon.edu/(your DuckID)/info.php and see detailed information about our PHP installation and its supported capabilites.

#!/usr/local/bin/php
<html><head><title>PHP Info</title></head>
<body>
<?php phpinfo(); ?>
</body></html>

 

Was this helpful?

Your rating: None Average: 3 (5 votes)
I just created my Duck ID. Why can't I log in to Blackboard?

The Blackboard system refreshes its account information automatically every day in the late afternoon. If you claim your Duck ID after that process runs your access to Blackboard will be activated late the next day.

Please review these FAQs for more detail:

http://libweb.uoregon.edu/scis/blackboard/faq/students/s19.html

http://libweb.uoregon.edu/scis/blackboard/faq/students/s13.html

Was this helpful?

Your rating: None Average: 4.5 (4 votes)
How can I set up an e-mail auto response while I'm on vacation?

To have your e-mail automatically respond to senders when you are out of the office or on vacation, visit duckid.uoregon.edu/vacation and fill out the form.

NOTE: If you are using Exchange, please contact your local IT support for assistance. (If you are using Outlook or Entourage then you are most likely using Exchange.)

Video Directions:

See How to Manage a Vacation Message

Was this helpful?

Your rating: None Average: 2.5 (4 votes)
How do I turn off e-mail forwarding?

To manage your email forwarding, visit duckid.uoregon.edu. Log in with your Duck ID and password to Manage Your Duck ID. Once logged in, select Manage Email Forward and make any necessary changes. Click Save and you're done!

Was this helpful?

Your rating: None Average: 2.5 (4 votes)
What does it mean if my job aborts?

There are a number of things that can cause a job to abort.

  • Invalid Oracle username or password
  • Wrong program type
  • Segmentation Fault

Other things can cause your job to abort too. Contact your programmer for more information.

An invalid username or password will appear in the Applications Manager log file like this:

...GURJOBS=/opt/appworx-output/prod
The current date/time stamp is: 13-May-2008 12:29:50
/opt/oracle/client_homes/10.2/bin/sqlplus
ERROR:
ORA-01017: invalid username/password; logon denied
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where &ltlogon> ::= &ltusername>[/&ltpassword>][@&ltconnect_identifier>] | /
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where &ltlogon> ::= &ltusername>[/&ltpassword>][@&ltconnect_identifier>] | /
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
Could not log in to SQL*Plus.
Exiting with error (return code = 5)...

A program returning a bad error code may look like this in the Applications Manager log file:

...Non-zero error generated from running job. The program pwpwpld failed to run successfully.
FILEID:112381
FILEID:112382
Program Failed to execute properly ..... program aborting
one_up_is 100499
0 rows created.

A segmentation fault often looks like the following in the Applications Manager log file:

...The current date/time stamp is: 15-May-2008 14:16:52
/opt/oracle/client_homes/10.2/bin/sqlplus
got it
ONE_UP=100495
GURJOBS is /opt/appworx-output/test
bannerlis is /opt/appworx-output/test/pwpltim_100495.lis
bannerlog is /opt/appworx-output/test/pwpltim_100495.log
stdout is /opt/AppWorx/appwtest/out/o47821.00
Processing Command Line Count Parms C Wrapped
Program=/opt/code/banner/payroll/test/exe/pwpltim
Parameter Count = 5
/opt/AppWorx/appwtest/exec/CMD_LINE_BANNER_CNT_C: line 307: 29625 Segmentation fault $program $db_login/$db_password@$net_connect "$PARM1" "$PARM2" "$PARM3" "$PARM4" "$PARM5" >>${command}_${one_up}.log 2>&1
FILEID:112335
Program Failed to execute properly ..... program aborting
one_up_is 100495

Was this helpful?

Your rating: None Average: 1 (4 votes)
Are the Applications Manager reports the same that I used to get off Daisy?

Yes, the output you get from Applications Manager is the same as the output that you used to get from DAISY. Some output has automatically been put into an Acrobat PDF format for you for easier readability and printing capability.

Was this helpful?

Your rating: None Average: 2.8 (4 votes)
My e-mail inbox disappeared! What should I do?

There are three common causes to this problem:

  • Your account is full and cannot store any more data (over-quota),
  • your e-mail's IMAP index is corrupted,
  • or someone recently set up an e-mail program to retrieve mail using POP.

All of these situations can be resolved. Speak with the Technology Service Desk to determine the cause and work with them on a solution.

Was this helpful?

Your rating: None Average: 3.7 (3 votes)
How can I add a signature to my e-mails in Webmail?

A signature is a small block of text that will get automatically added to the bottom of every e-mail message you send.

To set up a signature in Webmail, log in at webmail.uoregon.edu, click the Settings button, click the link titled Identities, and click on your name in the list on the left. In the section on the right you should see a Signature box: enter your e-mail signature there and click the Save button when done.

NOTE: If you are an Exchange user, you will need to set up a signature in Outlook. For instructions on how to set up a signature, see Outlook Guide for Windows and Macintosh. If you don't know whether you use Exchange, see How do I know if my email uses Exchange or IMAP?

Was this helpful?

Your rating: None Average: 5 (3 votes)