User manual

Developing Web pages
Cobalt RaQ 4 User Manual 145
Developing Web pages
You can create complex Web pages using any of the standard HTML editors and
the HTML publishing capabilities of many popular desktop productivity
applications.
You can create and link the Web pages on your desktop computer, and then move
them to the appropriate subdirectory in the RaQ 4 through an FTP-based
application; see “Publishing Web pages using FTP” on page 146.
CGI scripts
The RaQ 4 supports common gateway interface (CGI) scripts, such as those
written in Perl, C or other languages. If CGI is enabled for your site (see the Site
Settings section of the Site Management screen), you can add CGI scripts to
work with your Web content.
You can develop CGI scripts on your desktop machine and then transfer them to
the RaQ 4 by means of any FTP-based application that allows permission bits to
be set to executable.
Use FTP to upload .cgi and .pl files; use ASCII mode to upload CGI files. Once
the file is on the RaQ 4, use your FTP program to make the script executable. You
can also use the telnet command:
chmod 775 <filename>.cgi.
In order for users (other than the RaQ 4 Administrator) to add CGI files, CGI
must be enabled for the user’s virtual site (see the Site Settings section of the Site
Management screen). CGI scripts must use .pl or .cgi filename extensions in
order to be executed by the Web server.
Server-side scripting languages
The RaQ 4 supports both the Active Server Pages (ASP) and PHP scripting
languages. These features are enabled on a per-site basis (see the Site Settings
section of the Site Management screen).
Like CGI scripts, you can develop ASP and PHP scripts on your desktop machine
and then transfer them to the RaQ 4 by means of an FTP-based application.
Unlike CGI scripts, ASP and PHP do not require execute permissions to work
correctly. However, ensure that the Web server process can read the scripts; you
can use the telnet command:
chmod 664 <filename>.asp or <filename>.php
For the Web server to run the scripts correctly, ASP scripts must use the .asp
filename extension and PHP scripts must use the .php filename extension.