How To Manage Department Websites
How to Manage Department Web Sites
- All web masters must have an Active Directory account to manage the department web sites. To obtain an AD account, follow the URL: https://cams.qc.cuny.edu/. A tutorial on account set-up is available online. Outside consultants can request an AD account as a guest, but will need to fill out this Computer Account Request Form.
- Next step is to get a written authorization from the department head for the person(s) who will be maintaining the web site. Please print out this form and follow the instructions.
- Upon submission of the completed form to the Helpdesk, access will be granted to the department web directory as specified on the form.
- Every department is entitled to a web space of 500 MB.
- Department web site can be developed in HTML, PHP and CGI programs. Microsoft Front page extensions are not supported.
- A web site can be developed using any of the standard WYSIWYG tools like Dreamweaver.
Connecting to the Server for Web Site Management
- A secure FTP client is required to upload and manage the department web site pages. WinSCP is recommended and it's free. (Dreamweaver or other html editors can be used to create/edit web content, but to upload the files to the server, a FTP client is needed.)
WinSCP is downloadble here: http://internap.dl.sourceforge.net/sourceforge/winscp/winscp400.exe. For detailed instructions (with screen shots) on logging onto the server and navigating to your destination folder, please click here.
For MAC users, fugu FTP client is recommended and is downloadable here:
- Provide the following credentials for connection;
Server address: qcpages.qc.cuny.edu
Warning: forbin is no longer an active web server. Please do not connect to it for content update. Connect to qcpages.qc.cuny.edu instead. If you connect to forbin.qc.edu, changes to your web content will not take effect.
User name: AD account with domain: QC\ADusername or INSTR\ADUsername
- If your AD account password works elsewhere (for example, to login to your office computer, or webattendance, etc) but does not work with WinSCP, it is recommended that you change your password here https://cams.qc.cuny.edu/login2.aspx and try logging into WinSCP again afterwards.
- When you log in, you'll be placed at your home directory by default. To access your departmental website, navigate to the root, then click on wwwfiles, then you'll see a list of departmental web folders. Click on your department's folder to access the files. (You may see other departments' web folders listed there, but won't be able to access any unless authorized.) For screen shots on this part, please open this file: instructions on file transfer using WinSCP.
- CGI programs written in Perl are supported and must be placed under ‘cgi-bin’ folder inside your home directory.
- CGI program can be placed within the department folder either as CGI of Perl files to be executed.
Legacy CGI Programs
- In legacy environment, CGI programs and PHP files are managed within the special user home directories called ‘department users’.
- If your web site contains CGI programs executed this way (under department user home directory), during the migration to a new server, the associated department user home directories were also brought over.
- Please contact OCT with the department user account name to obtain access to these user account home directories. Once OCT provides access to these folders, department web masters can access and manage CGI files created in this fashion.
Managing Legacy CGI Programs
- Putty is recommended to manage the CGI program.
- Click this link to download Putty.
- Click on "Save" when the download window pops up—to save the program locally, for example, on your desktop.
- Click on the saved program on your computer: Putty.exe to login and perform maintenance.
- Click here for more information on Putty.
- Connect to the server as explained earlier. When connected to the server, you will be in your home directory.
- Change to the home directory of legacy department user accounts which contains the CGI programs. For example if the legacy department user account is ‘careers’, then change the directory to ‘/home/careers’.
- CGI programs written in Perl are supported and must be placed under ‘cgi-bin’ folder inside the department user home directory.
- For the CGI program to execute, the owner of the file must be changed to the user name and group to ‘users’.
Use “chown” command to change the owners of this CGI program. For example:
Check for the file execution permission of the CGI program.
- Owner must have read, write and execute permission.
- ‘Users ‘group must have read and execute permission.
- Others must have read and execute permission.
- The CGI program can be viewed using the following URL,
Please note that we do not need ~ in front of the user name.
Managing PHP programs
- Currently PHP files can be created and supported within the department folders.
- In legacy implementations, PHP programs were created inside the department user accounts and executed similar to CGI programs.
- If your department web sites contain any PHP files in the department user’s accounts, please move these files to department folders for proper execution of PHP files.
- New PHP files can be created and placed within the department folder and subfolders.
- PHP mail function is working on the new server.
- mySQL library is yet to be intalled, therefore PHP pages with mySQL database connection are not supported.
|Helpful Programs for Freshmen
- Freshmen Five Year Initiative (FYI)
- Search for Education, Elevation & Knowledge Program (SEEK)