TKY_Publishing
Verified User
Been trying for the last 3 days to install a "simple" CGI script. Step-by-step as per the instructions supplied by author;
SAFELIST INSTALLATION INSTRUCTIONS:
1. Create a directory inside your cgi-bin and
name it safelist.
EXAMPLE: http://www.YourDomain.com/cgi-bin/safelist
2. Edit the config.cgi
( follow the instructions in the config.cgi file )
3. Edit the paypal.txt file
( you will need to replace the [email protected] email
address with your registered PayPal email address.
You will need to replace the YourDomain.com in the URLs
with the correct URL to your domain.
If you are charging more than $5.00 or less than $5.00
for your membership fee you will need to edit that also. )
4. The Safelist is set up as a paid safelist. If you want it to
be a Free - To - Join safelist you will need to replace this
line in the EZ.pl file:
REPLACE: if ($form{'Action'} eq "order") {ℴ}
WITH: if ($form{'Action'} eq "order") {&JOIN;}
5. Upload the following files to the safelist directory:
1. config.cgi - CHMOD it to 755
2. EZ.pl - CHMOD it to 755
3. EZusers.txt - CHMOD it to 777
4. footer.txt - Do not CHMOD
5. header.txt - Do not CHMOD
6. mail.txt - Do not CHMOD
7. mailer.pl - CHMOD it to 755
8. paypal.txt - Do not CHMOD
9. subscribers.txt - CHMOD it to 777
10. userpass.txt - CHMOD it to 777
6. Create a directory inside the safelist directory and
name it profiles.
EXAMPLE: http://www.YourDomain.com/cgi-bin/safelist/profiles
CHMOD the profiles directory to 777
***************************************************************
Your Safelist is now installed.
The URL to your safelist is:
http://www.tomorrowsknowledgeyesterday.com/cgi-bin/safelist/EZ.pl
The URL to the Safelist Admin is:
http://www.tomorrowsknowledgeyesterday.com/cgi-bin/safelist/EZ.pl?Action=Admin
When I tried to pull up the main page (EZ.pl) in the web browser, kept getting the "Forbidden" message (error log revealed that the .htaccess file wasn't able to be read, so I chmodded it to 644), and after my chmod, keep recieving the Internal Server Error when going to the url. Had played around with the .htaccess file - going from "Options -Indexes" to,
"Options +ExecCGI
AddHandler cgi-script .cgi .pl"
and then back again when the 500 msg kept displaying. The .htaccess file is in the cgi-bin folder, and I had read that the .htaccess in a directory defines the actions it applies to a sub-directory. I would've put the .htaccess file in the sub-directory, but I wasn't entirely sure it would perform as hoped, and I already have enough problems with trying to make the EZ.pl file display through the browser. What could I possibly be doing wrong? I mean, DA automatically creates the cgi-bin when you create a domain, so why would I have problems running .cgi/.pl files and getting them to display via the browser? I'm starting this thread since I haven't seen anything remotely close to my problem (excepting the reference to the AddHandler directive) in 5 hours of combing the forum. I would've played around with the httpd.conf file, but I don't know where that's kept (and, YES, been looking for it like the needle in the haystack - nothing is in the root except logs & stats folders).
SAFELIST INSTALLATION INSTRUCTIONS:
1. Create a directory inside your cgi-bin and
name it safelist.
EXAMPLE: http://www.YourDomain.com/cgi-bin/safelist
2. Edit the config.cgi
( follow the instructions in the config.cgi file )
3. Edit the paypal.txt file
( you will need to replace the [email protected] email
address with your registered PayPal email address.
You will need to replace the YourDomain.com in the URLs
with the correct URL to your domain.
If you are charging more than $5.00 or less than $5.00
for your membership fee you will need to edit that also. )
4. The Safelist is set up as a paid safelist. If you want it to
be a Free - To - Join safelist you will need to replace this
line in the EZ.pl file:
REPLACE: if ($form{'Action'} eq "order") {ℴ}
WITH: if ($form{'Action'} eq "order") {&JOIN;}
5. Upload the following files to the safelist directory:
1. config.cgi - CHMOD it to 755
2. EZ.pl - CHMOD it to 755
3. EZusers.txt - CHMOD it to 777
4. footer.txt - Do not CHMOD
5. header.txt - Do not CHMOD
6. mail.txt - Do not CHMOD
7. mailer.pl - CHMOD it to 755
8. paypal.txt - Do not CHMOD
9. subscribers.txt - CHMOD it to 777
10. userpass.txt - CHMOD it to 777
6. Create a directory inside the safelist directory and
name it profiles.
EXAMPLE: http://www.YourDomain.com/cgi-bin/safelist/profiles
CHMOD the profiles directory to 777
***************************************************************
Your Safelist is now installed.
The URL to your safelist is:
http://www.tomorrowsknowledgeyesterday.com/cgi-bin/safelist/EZ.pl
The URL to the Safelist Admin is:
http://www.tomorrowsknowledgeyesterday.com/cgi-bin/safelist/EZ.pl?Action=Admin
When I tried to pull up the main page (EZ.pl) in the web browser, kept getting the "Forbidden" message (error log revealed that the .htaccess file wasn't able to be read, so I chmodded it to 644), and after my chmod, keep recieving the Internal Server Error when going to the url. Had played around with the .htaccess file - going from "Options -Indexes" to,
"Options +ExecCGI
AddHandler cgi-script .cgi .pl"
and then back again when the 500 msg kept displaying. The .htaccess file is in the cgi-bin folder, and I had read that the .htaccess in a directory defines the actions it applies to a sub-directory. I would've put the .htaccess file in the sub-directory, but I wasn't entirely sure it would perform as hoped, and I already have enough problems with trying to make the EZ.pl file display through the browser. What could I possibly be doing wrong? I mean, DA automatically creates the cgi-bin when you create a domain, so why would I have problems running .cgi/.pl files and getting them to display via the browser? I'm starting this thread since I haven't seen anything remotely close to my problem (excepting the reference to the AddHandler directive) in 5 hours of combing the forum. I would've played around with the httpd.conf file, but I don't know where that's kept (and, YES, been looking for it like the needle in the haystack - nothing is in the root except logs & stats folders).