I need a proficient coder with experience in installing Perl script for the purpose of managing your website users. It adds, modifies, and deletes users to a .htpasswd file on your web server.
The script is already written and is supplied by the billing company.
I know this is a simple job but due to eye surgery Im unable to complete the work
This what the job will require. upon installation, I will be able to test that the script is working
ET UP THE DATA DIRECTORY
FTP or Telnet to your website
Use a standard FTP or Telnet client such as WS FTP, CuteFTP or QVTNET.
Make a directory named "data" outside the document root of your website
Your password file (.htpasswd) and others will be stored in this "data" directory. You must create the data directory outside your web root (htdocs or www directory) to prevent your password and log files from being viewed on the internet. See note if you are unable to create the data directory outside the document root.
(Example: mkdir data)
Change the permissions of your data directory to 777
Permissions on your server are used for security. The VerotelRUM script you are installing must have full read, write and execute permissions. You can change the permissions with the "CHMOD" command.
(Example: chmod 777 data)
INSTALL THE VEROTELRUM PERL SCRIPT ([login to view URL])
Copy the file "[login to view URL]" to "cgi-bin" directory of your website, give it a name of your choice and set permissions on the file:
$ cp [login to view URL] /path/to/cgi-bin/[login to view URL] $ chmod 755 /path/to/cgi-bin/[login to view URL]
The password file (".htpasswd") will be stored in so-called data directory on your website. Either use already existing directory or create a new one and set permissions on this directory.
$ mkdir /full/path/to/your_data_dir $ chmod 777 /full/path/to/your_data_dir
Copy all files from "data" directory in the distribution file to your newly created data directory.
$ cp data/* data/.* /full/path/to/your_data_dir
Edit the script and change value of $prefix variable to the name of your data directory (including full path).
[Optional] You can modify other variables in the configuration area to better suit your needs.
Modify ".htaccess" file in protected area of your website. This file specifies location of your password file. It should contain line like
AuthUserFile /full/path/to/your_data_dir/.htpasswd
Example:
AuthUserFile /full/path/to/your_data_dir/.htpasswd
AuthName MEMBERS
AuthType Basic
<IfModule mod_access.c>
<Files *>
Order Deny,Allow
Deny From All
</Files>
<Files ~ "^\.ht">
Order Deny,Allow
Deny From All
</Files>
</IfModule>
CONFIGURATING THE VEROTELRUM SCRIPT ([login to view URL])
Keep the configuration files in directories invisible to users browsing your website. The actual physical location of the files doesn't matter as long as ordinary users don't have access to them.
$PREFIX
This is the data directory which contains the password file, log file and other supporting files.
Replace default value in $prefix with full path to data directory on your website. To prevent ordinary users from accessing the directory and files inside, you should set proper file permissions on them.
$ chmod 777 /full/path/to/your_data_dir
$IP_FILE
To make sure only Verotel servers can call this script, caller's IP address is checked against list of trusted IP addresses and only connections from IP address found on this list are allowed. This list is stored in $ip_file.
IP addresses are stored one per line, in IP/mask ("A.B.C.D/dd") format. Mask is a number between 1 and 32 (inclusive) and defines network mask length in bits. Bit mask length of 32 defines single IP address, shorter masks define IP address ranges (subnets).
Current Verotel IP range is "[login to view URL]".
Don't forget to set proper file permissions to prevent ordinary users from reading or writing the file:
$ chmod 666 /full/path/to/your_data_dir/.ht_IP_addresses
@FILE_CONFIG
Specify locations of "htpasswd" files, along with their respective log files. @file_config consists of pairs. Most people will only need one such pair, but should you need the accounts to be mirrored across several websites, you can list as many pairs as you want.
Set permissions on your ".htpasswd" and log files.
$ chmod 666 /full/path/to/your_data_dir/.htpasswd $ chmod 666 /full/path/to/your_data_dir/[login to view URL]
$ACCESS_LOCK_FILE
This file is used as a lock to prevent concurrent changes to $storage_file.
Don't forget to set the same permissions as above.
$ chmod 666 /full/path/to/your_data_dir/.htlock