KryptonPage address: http://www.mnsu.edu/its/started/website/krypton/
Krypton is a general purpose UNIX® server for use by students, faculty, and staff of Minnesota State University, Mankato. Krypton supports:
- Teaching the UNIX operating system
- Teaching and using various programming languages, including C, C++, Fortran, and Java
- LaTeX, a document preparation and text formatting system
- A number of X-Windows and console applications
- Personal web pages for students, faculty, staff, and Recognized Student Organizations (RSO)
Krypton is available on a 24-hour basis, year round, with the exception of planned hardware and software upgrades which would be announced in advance on the Announcements page. Unexpected down-times caused by hardware or software failures cannot be predicted and you should consider this when planning projects that require Krypton or its utilities.
Connecting to Krypton
Please see the Connect methods web page.
If you place files in your public_html folder they will be viewable on the web at the URL http://krypton.mnsu.edu/~userid.
Note: you must change userid above to your own userid.
If you're an RSO user, an alternative URL was provided in the introductory e-mail message sent upon account creation.
Default Web Document
If you place a document named index.html in your public_html folder, this will be your web site's default web document.
Personal Web Site Directory
Krypton has user CGI-BIN capabilities enabled. This allows users to create their own CGI-BIN program that execute via the web server. These programs execute as if the user had typed the command. All permissions and access control are limited by the privileges of the user owning the command.
The following must be true about a user CGI-BIN program in order for it to execute properly:
- The program must have a extension of
- Permissions set for world read and execute (Ex:
chmod 755 program.cgi)
- All of the directories above the file must be at least world execute (Note: this must be true for web documents as well.)
- The program and it's parent directory can not have world write permission. (Ex:
chmod 755 program.cgi)
- The executable must not exceed 2 seconds of execution time
- The executable must not exceed its allowed permissions
If all of these items are true then the user CGI-BIN can be accessed on the web as URL:
http://krypton.mnsu.edu/~youruserid/program.cgi where youruserid is the userid of the user in question.
Please be aware of the restrictions to the user CGI-BIN extensions.
PHP: Hypertext Preprocessor is available on Krypton.
We are implementing PHP on krypton.mnsu.edu as a suEXEC cgi-bin program. This allows you to implement PHP programs on your web page that run with your local permissions on krypton. This means you can have the same privacy on your web pages as you expect from local file permissions.
You must follow these rules to make suEXEC php programs work on Krypton.
- Name the files with a .cgi or .php ending (.php) is preferred for clarity
- The file must have the following first line
- the line must be exactly as is
- there can be no spaces or other characters on that line other than those shown.
- if you uploaded it from a Windows computer you may need to remove the extra blank characters that Windows appends onto lines
The command dos2unix may be able to help. Use as follows:
dos2unix < dosfile.php > goodfile.php
(where dosfile.php and goodfile.php are replaced where appropriate.)
- The file must be owned and group owned by you (this is default anyway.)
- The directory must be owned and group owned by you (this is default anyway.)
- The permissions must be such that you can execute it. Minimally:
chmod 700 yourfile.php
- The permission on the parent directory must not allow group or other write permission
chmod 2755 public_html
- You must call the script by the following URL:
Where youruserid is YOUR userid and yourfile.php is your php file
Server Parsed HTML - SSI
Server parsed html has been enabled on Krypton. To cause a user document to be a parsed document give the file a
.shtml extension. The exec feature have been disabled due to security concerns. For more information, please refer to NCSA's SSI page.