Ik heb hier een script, dit wil ik graag installeren, maar het werkt niet. Er zit een manual bij en een file die alles op je ftp goedzet, dit valt dit makkelijker te installeren.
In de file staat:
I have created a simple utility script that can be placed in your cgi-bin and run from your browsers command line. If your server allows directory creation via cgi scripts, then this utility will attempt to create the default (recommended) directories and file names for you, and set the permissions. It is unprotected and there is no guarantee that it will work on all sites; try it at your own risk (disclaimer only). It has worked well on most sites.
Try installing and running this script first. It will report success or failure when creating the files/directories and prove the correctness of your Perl Path", plus indicate that the default relative paths will work OK. If the default urls/paths are not used, then you will have to change them first.
To use it, make sure the "Perl Path" at the top of the script is correct. NOTE: the default Dir/File permissions are set to 766/666. Change these values to 777/766 if your site so requires BEFORE running the script. If running the script is successful, you only have to FTP your supplied files over the new empty ones as ASCII text. (Note: for security reasons, makedir does NOT prepare an empty file for the cgi scripts, you must upload them (as ascii) and set chmod 755 your self)
Once run, delete the file immediately because it has no input protection and could be run again by some low-life wanting to cause mischief
----------
Ik snap niet helemaal wat ze ermee bedoelen, weet iemand of ik nou wel of niet veranderingen in het script moet aanbrengen, zoja , hoe en wat zal ik erin moeten veranderen?
De code is:
Ik krijg dan deze error:
New /cgi-bin/mftemp Directory not created.
New /cgi-bin/mfpages Directory not created.
New /cgi-bin/mfrecrds Directory not created.
New /HTML/mform Directory not found - check path and run again.
/cgi-bin/mfrecrds/mfrms_file.pl File not created.
/cgi-bin/mfrecrds/Hosting_Order.cnt File not created.
/cgi-bin/mfrecrds/Hosting_Order.db File not created.
/cgi-bin/mfrecrds/Hosting_Order.let File not created.
/cgi-bin/mfrecrds/Hosting_Order.txt File not created.
/cgi-bin/mfrecrds/errs.pl File not created.
/cgi-bin/mfrecrds/errs_msg.pl File not created.
/cgi-bin/mfrecrds/lang_EN.pl File not created.
/cgi-bin/mfrecrds/langg_EN.pl File not created.
Errors Occurred! Read the Readme.htm file for options.
Script finished, Sun Mar 31 21:56:43 2002, Server Local Time.
The absolute pathname of this script is /home/zippie/cgi-bin/makedir.cgi.
The relative pathname of this script (via the root directory) is /cgi-bin/makedir.cgi.
Delete this script NOW!.
cmod etc staat wel gewoon goed.
In de file staat:
I have created a simple utility script that can be placed in your cgi-bin and run from your browsers command line. If your server allows directory creation via cgi scripts, then this utility will attempt to create the default (recommended) directories and file names for you, and set the permissions. It is unprotected and there is no guarantee that it will work on all sites; try it at your own risk (disclaimer only). It has worked well on most sites.
Try installing and running this script first. It will report success or failure when creating the files/directories and prove the correctness of your Perl Path", plus indicate that the default relative paths will work OK. If the default urls/paths are not used, then you will have to change them first.
To use it, make sure the "Perl Path" at the top of the script is correct. NOTE: the default Dir/File permissions are set to 766/666. Change these values to 777/766 if your site so requires BEFORE running the script. If running the script is successful, you only have to FTP your supplied files over the new empty ones as ASCII text. (Note: for security reasons, makedir does NOT prepare an empty file for the cgi scripts, you must upload them (as ascii) and set chmod 755 your self)
Once run, delete the file immediately because it has no input protection and could be run again by some low-life wanting to cause mischief
----------
Ik snap niet helemaal wat ze ermee bedoelen, weet iemand of ik nou wel of niet veranderingen in het script moet aanbrengen, zoja , hoe en wat zal ik erin moeten veranderen?
De code is:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
| #!/usr/bin/perl
#### Once this script is used, DELETE IT immediatly.####
#### Once this script is used, DELETE IT immediatly.####
#### Input to this script is NOT protected ####
##--Place in your cgi-bin directory and chmod 755 (7=r+w+x, 5=r+x).
##--Change ALL 766 values to 777 IF your server requires 777 (0 prefix must remain where-ever)
##--Then run from browser command line, ie http://www.yourdomain.path/cgi-bin/makedir.cgi
$dir = "mftemp"; # cgi-bin sub directory
mkdir $dir,"766";
chmod(0766, "$dir");
$dir1 = "mfpages"; # cgi-bin sub directory
mkdir $dir1,"766";
chmod(0766, "$dir1");
$dir2 = "mfrecrds"; # cgi-bin sub directory
mkdir $dir2,"766";
chmod(0766, "$dir2");
$dir3 = "../mform"; # CREATE html docs directory FIRST - manually
# program will test your path!
if (!open (NEW, "+<$dir2/mfrms_file.pl")) {open (NEW, ">$dir2/mfrms_file.pl");}
close (NEW); chmod(0666, "$dir2/mfrms_file.pl");
if (!open (NEW, "+<$dir2/Hosting_Order.cnt")) {open (NEW, ">$dir2/Hosting_Order.cnt");}
close (NEW); chmod(0666, "$dir2/Hosting_Order.cnt");
if (!open (NEW, "+<$dir2/Hosting_Order.db")) {open (NEW, ">$dir2/Hosting_Order.db");}
close (NEW); chmod(0666, "$dir2/Hosting_Order.db");
if (!open (NEW, "+<$dir2/Hosting_Order.let")) {open (NEW, ">$dir2/Hosting_Order.let");}
close (NEW); chmod(0666, "$dir2/Hosting_Order.let");
if (!open (NEW, "+<$dir2/Hosting_Order.txt")) {open (NEW, ">$dir2/Hosting_Order.txt");}
close (NEW); chmod(0666, "$dir2/Hosting_Order.txt");
if (!open (NEW, "+<$dir2/errs.pl")) {open (NEW, ">$dir2/errs.pl");}
close (NEW); chmod(0666, "$dir2/errs.pl");
if (!open (NEW, "+<$dir2/errs_msg.pl")) {open (NEW, ">$dir2/errs_msg.pl");}
close (NEW); chmod(0666, "$dir2/errs_msg.pl");
if (!open (NEW, "+<$dir2/lang_EN.pl")) {open (NEW, ">$dir2/lang_EN.pl");}
close (NEW); chmod(0666, "$dir2/lang_EN.pl");
if (!open (NEW, "+<$dir2/langg_EN.pl")) {open (NEW, ">$dir2/langg_EN.pl");}
close (NEW); chmod(0666, "$dir2/langg_EN.pl");
print "Content-type: text/html\n\n";
print "<html><body bgcolor=\"FFFFFF\" text=\"000000\">\n";
if (!( -e "$dir")) {print "New $dir Directory not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir1")) {print "New $dir1 Directory not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2")) {print "New $dir2 Directory not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir3")) {print "New $dir3 Directory not found - check path and run again.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/mfrms_file.pl")) {print "$dir2/mfrms_file.pl File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/Hosting_Order.cnt")) {print "$dir2/Hosting_Order.cnt File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/Hosting_Order.db")) {print "$dir2/Hosting_Order.db File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/Hosting_Order.let")) {print "$dir2/Hosting_Order.let File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/Hosting_Order.txt")) {print "$dir2/Hosting_Order.txt File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/errs.pl")) {print "$dir2/errs.pl File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/errs_msg.pl")) {print "$dir2/errs_msg.pl File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/lang_EN.pl")) {print "$dir2/lang_EN.pl File not created.<br>\n"; $s1 = 1;}
if (!( -e "$dir2/langg_EN.pl")) {print "$dir2/langg_EN.pl File not created.<br>\n"; $s1 = 1;}
if ($s1) {print "<br>Errors Occurred! Read the Readme.htm file for options.\n";}
else {print "No Errors reported, so the sub directory and files should be ready for you to copy to (FTP). <em>See Readme file</em>.\n";}
print "<br>Script finished, ".localtime(time).", Server Local Time.\n";
print "<p>The absolute pathname of this script is $ENV{'SCRIPT_FILENAME'}.<br>\n";
print "The relative pathname of this script (via the root directory) is $ENV{'SCRIPT_NAME'}.<br><em>Delete this script NOW!</em>.</P>\n";
print "<body><html>\n";
exit;
#### Once this script is used, DELETE IT immediatly.####
#### Once this script is used, DELETE IT immediatly.#### |
Ik krijg dan deze error:
New /cgi-bin/mftemp Directory not created.
New /cgi-bin/mfpages Directory not created.
New /cgi-bin/mfrecrds Directory not created.
New /HTML/mform Directory not found - check path and run again.
/cgi-bin/mfrecrds/mfrms_file.pl File not created.
/cgi-bin/mfrecrds/Hosting_Order.cnt File not created.
/cgi-bin/mfrecrds/Hosting_Order.db File not created.
/cgi-bin/mfrecrds/Hosting_Order.let File not created.
/cgi-bin/mfrecrds/Hosting_Order.txt File not created.
/cgi-bin/mfrecrds/errs.pl File not created.
/cgi-bin/mfrecrds/errs_msg.pl File not created.
/cgi-bin/mfrecrds/lang_EN.pl File not created.
/cgi-bin/mfrecrds/langg_EN.pl File not created.
Errors Occurred! Read the Readme.htm file for options.
Script finished, Sun Mar 31 21:56:43 2002, Server Local Time.
The absolute pathname of this script is /home/zippie/cgi-bin/makedir.cgi.
The relative pathname of this script (via the root directory) is /cgi-bin/makedir.cgi.
Delete this script NOW!.
cmod etc staat wel gewoon goed.