Home

Web Pages

Where should I save my .html files?
Why do I get Access Forbidden?
Where are the error and access logs?
How can I create and execute perl files?


Where should I save my .html files?
In order to be able to execute your .html files you need to create a WWW directory in your home directory. This will be the directory where the server will look for your .html files.
Why do I get Access Forbidden?
This is usually due to permissions that are set on your files and directories.Your home directory should have 701 permissions. Your WWW directory should have 755 permissions.The .html files need to have 644 permissions set. To change the permissions for your files or directory execute the chmod command:
     chmod 644 file.html

Where are the error and access logs?
If you wish to view error and access logs, they are located on wyvern.cs.newpaltz.edu. The log files are contained in the directory at /var/log/httpd. Using the less command, the tail command, or any editor you can view the log entries created when the server runs your CGI/PHP programs.
How do I create and execute Perl files?
You would create a Perl file just like any other program using your favorite editor.The first line of your program must tell the system where it can find perl on your machine. On Linux this would be #!/usr/bin/perl. The file should be saved with .pl extension and with the execute permissions set.
Finally, to run your program you can type any of these:
     perl file.pl
     file.pl

If your home directory is not in the shell environment variable PATH, use:

    ./file.pl
  • Home
  • Hours
  • Help
  • Links
  • Login

Help

Most questions people have are already answered in this section of the site. If your question is not answered here, you are welcome to e-mail us at help@cs.newpaltz.edu.

Frequently Asked Questions

  • General
  • Using Computers in the Lab
    • General
    • Troubleshooting
    • Printing
    • Connecting to the New Paltz N: Drive
  • Programming
    • General
    • Eclipse
  • Remote Access
    • Available Hosts
    • Getting Started with PuTTY
    • Getting Started with WinSCP
    • Getting started with NX Client
    • Other PuTTY and WinSCP settings
    • Remote Programming Environments
    • Remote access from a Linux client
    • Some graphical software that is available
  • Xming
    • Using Xming to run graphical applications
    • Xming Troubleshooting
  • Email
  • Web Pages
  • MySQL