WWWBoard Installation Notes First time users should use the WWWBoard Installer within the respective account Control Panel to install the WWWBoard program. The instruction contained herein is being provided for those whom wish to modify the scripts installed by the WWWBoard Installer or to install multiple versions of this application.
2.Change the first line of each Perl script to reflect the official path to Perl on our server: #!/usr/local/bin/perl (edit nos. 1 & 2 above) 3.There are a few more things that need to be changed in each Perl script: # Define Variables (wwwboard.pl)
$basedir - The system location of your
WWWBoard directory
$baseurl - The URL to the WWWBoard directory
$cgi_url - The URL to the WWWBoard scriptThe first variable calls for a system path which is not the same as a URL. If your domain name was yourdomain.com the system path would be /u/web/yourdo where "yourdo" is the account userid. # Define Variables (wwwboard.pl)
$basedir - "/u/web/<userid>/wwwboard";
$baseurl - "http://www.yourdomain.com
/wwwboard";
$cgi_url - "http://www.yourdomain.com
/cgi-local/wwwboard.pl";Be sure to substitute your domain name and userid in the example above. Although Matt's code is accurate, we recommend using the Perl Script checker within your account Control Panel when installing any Perl script. # Define Variables (wwwadmin.pl)
$basedir - "/u/web/<userid>/wwwboard";
$baseurl - "http://www.yourdomain.com
/wwwboard";
$cgi_url - "http://www.yourdomain.com
/cgi-local/wwwadmin.pl";5. Upload the "wwwboard.pl" and "wwwadmin.pl" scripts to your cgi-local directory in ASCII transfer mode. Cgi-local will place the appropriate permissions on files uploaded to this directory so you do NOT need to chmod 755 either Perl script. 6. Modify the form ACTION attribute within "wwwboard.html" to reference the wwwboard script within cgi-local as shown below and upload to your root ("home") directory. <FORM METHOD="POST" ACTION="/cgi-local/wwwboard.pl"> 7. Create a subdirectory named "wwwboard" off the root directory of your web site and upload "wwwboard.html", "data.txt", and "passwd.txt" to the this directory in ASCII transfer mode. 8. Create a directory named "messages" under the newly made directory "wwwboard". e.g. /wwwboard/messages 9. Select the File Manager option within your account Control Panel. Locate the directory named wwwboard . Click the box marked "PW" to the left of the wwwboard directory name to enable public write access. Some possible causes of a SERVER ERROR: -Set Variables section within either Perl script is inaccurate messages directory To run the admin script, merely reference it via URL.
|
© Copyright tradeNIC® 1998/2009. Todos los derechos reservados |