|
简介:INSTALLATION
------------
-- You will need the following Perl modules (available at CPAN.org):
CGI, CGI::Carp, Carp, Date::Parse, Date::Format, Time::HiRes, libwww-perl
(which includes LWP, LWP::UserAgent, HTTP::Request, etc).
-- Move index.cgi to a web readable directory
-- Optional: password protect your index.cgi directory
with htpasswd.
-- Edit configuration stuff (directories, etc) near the top of index.cgi
and enom.pl (and watcher.pl if you will use it).
-- Make *.dat, log_*, and the enom directory web-writeable
-- Make index.cgi and enom.pl readable and executable (and watcher.pl if you
will use it)
-- Create a directory call Enom. Create a sub-directory within Enom called Enom.
Place all .pm files in the Enom sub-directory. All remaining files go into your
main Enom directory.
NON EXPIERENCED INSTALLATION INSTRUCTIONS
------------
Edit the paths in the following files:
foo.pl
index.cgi
enom.pl
Anywhere you see a path in these files with (banban)
you need to replace with your servers path. If you
are not sure of your path please check with your web
host.
Create a folder in your root directory called (enom)
Create a sub-directory in (enom) called (Enom).
Upload all .pm files in ASCII to your sub-directory
(Enom) and set the permissions to (644)
Upload the remaining files to the (enom) folder in
your root directory in ASCII. Change the permissions
to all .pl and .cgi files to (755). You will also
need to change the permissions to all .dat files to
(666).
Call the script in your browser by
http://www.yoursite.com/enom
Thats it. If all works fine, you then need to add
your enom user ID and password to the admin portion of
the script.
We advise you to run only (1) instance of the script to
avoid any problems with IP banning form Enom. You can
play around with it, they will issue you a warning first.
SUPPORT
-------
If you have any problems with this, feel free to contact me
(Daniel Rubin) at support@dropscripts.com
"Watcher" program
-----------------
Sometime problems arise on a shared-hosting server where the backend program
gets killed.
If this becomes a problem for you, you can enable the "watcher" program by
adding "* * * * * /path/to/your/enom/watcher.pl" to your crontab. The exact
syntax of this line is given on the eNom control panel's front-page under
"Important Notes".
The watcher program basically does this:
- You set up the the watcher in the crontab to run every minute.
- It checks to see if the current time is within the start/stop period.
- If it is within that time, it checks to see how many processes are running,
how many should be running (determined by the number of backend-script crontab
entries), then starts up as many as needed to get back to how it should be.
One thing to note is that if you "kill all backend processes" from the control
panel, but have the watcher enabled, the watcher will start those back up. 本文转自俺要下载
www.ayxz.com
|