User manual

Publishing Web pages using FTP
Cobalt Qube 3 User Manual 45
Use FTP to upload .cgi and .pl files; use ASCII mode to upload CGI files. Once
the file is on the Qube 3, use your FTP program to make the script executable.
You can also use the telnet command:
chmod 775 <filename>.cgi
The path to Perl is
/usr/bin/perl/
To set the access rights specifying who is allowed to run CGI scripts, see “Web
settings” on page 141.
PHP
The Qube 3 is pre-configured with support for embedded PHP scripts. You can
save PHP files in any directory on your site, provided that the file ends with
a .php extension.
Publishing Web pages using FTP
After creating your Web pages, you can publish them on the Qube 3 using FTP.
Ensure that you have the following information:
the host name or the IP address of your Qube 3
your user name and password
a filename of your choice to save as your main page (the default filename is
index.html)
Launch your FTP software and establish an FTP link to the Qube 3. Upload your
HTML files. If you need help, consult the instructions for your FTP application.
By default, the files you upload using FTP are stored in your personal directory.
The path to your personal directory is:
/home/users/<username>/ where <username> is your user name
Upload your Web page into the directory
/home/users/<username>/web/