netastic
02-05-2001, 01:49 PM
what file name should CGI scripts be pointed to in a raq4? should it be "/usr/lib/sendmail"?
![]() | View Full Version : where point cgi scripts on raq4 netastic 02-05-2001, 01:49 PM what file name should CGI scripts be pointed to in a raq4? should it be "/usr/lib/sendmail"? allan 02-05-2001, 02:57 PM sendmail is located at: /usr/sbin/sendmail allan netastic 02-05-2001, 03:05 PM besides enableing CGI scripts in "site settings" and pointing the cgi script to "/usr/sbin/sendmail", is there anything else a newbie like myself needs to know to allow my hosting customers cgi scripts to work? allan 02-05-2001, 03:16 PM If you are talking specifically Perl make sure you customers know the location of the perl interpreter: /usr/bin/perl Some scripts also require the use if the date command: /bin/date Finally, make sure that they know to make the scripts executable: chmod 755 (from the command line), or they can right click and make the changes through WS_FTP and CuteFTP. My experience has been that the easiest solution is to take the most commonly asked for scripts and write them specifically for the RaQ, so if a customer starts asking you can say: "Sure we've got a great guestbook script right here", and you are already aware of all the pitfalls :). To make life even easier we have taken the three most commonly asked for scripts: counter, mail form, search engine and preinstalled them for the customer...so all they have to do is know how to build forms (and we give them a sample form too :)). Hope this helps allan netastic 02-05-2001, 05:51 PM which counter, email form, and search engine scripts did you use? was it your own code or some open source code that you can tell me the URL for? allan 02-05-2001, 07:00 PM Sure give you all of my scripts, so you can steal my customers :). No problem these are all bits and pieces of other scripts that have been put together over the last couple of years. I loaded them on my personal site, so I don't look like I'm advertising: http://www.allan.org/dt/download.php3?file=search.tar http://www.allan.org/dt/download.php3?file=formmail.tar http://www.allan.org/dt/download.php3?file=counter.tar.gz As far as usage instructions, they are on our support site, feel free to copy them them if you would like: http://www.version12.net/support/scripts.html Hope this helps, and good luck! allan Chicken 02-06-2001, 12:26 AM Originally posted by uuallan I loaded them on my personal site, so I don't look like I'm advertising: *snip* As far as usage instructions, they are on our support site, feel free to copy them them if you would like: http://www.version12.net/support/scripts.html Ohhh sure then post your URL for the support docs. I see what you are doing here buster! Just kidding :) Just wanted to say thankx for posting that stuff and being such a great help in this forum Allan! *looks for 'karma' button...* allan 02-06-2001, 09:05 AM Originally posted by Chicken [QUOTE] Ohhh sure then post your URL for the support docs. I see what you are doing here buster! Just kidding :) Just wanted to say thankx for posting that stuff and being such a great help in this forum Allan! *looks for 'karma' button...* Dammit you found me out :). Chicken, you do realize that since you uncovered my secret plot I'm going to have to have webhostingmafia.com pay you a visit :). Seriously, glad to help...I just wish you all had been around in 98 when we started :). Chicken 02-06-2001, 11:08 AM Heh you can say, "All these young whipper-snappers with their RaQ 3's and RaQ 4's... when *I* started, we were using RaQ 1/4's and RaQ 1/2's and they only cost a nickel!!!" -sound really annoyed at everything that you can't fix, like the speed of the post office, while you say it :) Speaking of global scripts (were we?)... I was going to try to install FormMail as a test in a global directory, but first wanted to remove all the 'require referer' parts of the script. I figure that if it is below the general web accessible area, then this isn't needed (and last I used this script, I had to enter in every domain on the server, which I don't want to do again). It is a small script, if anyone is handy at this sort of thing. I guessed at what I should remove, but not 100% sure. I also am not sure what the permissions should be set at, and who should own the file (maybe this doesn't matter). I'll just try the one you posted (even if it is the same thing, heh). [Edited by Chicken on 02-06-2001 at 03:42 PM] allan 02-06-2001, 11:31 AM See, you do it differently than we do. When we create new accounts, we create the cgi-bin directory automatically, and then have those files copied over (after spending many hours futzing with the adduser script :)). We tried going the universal script bin route, but we ran into too many problems with it. This way the customer has a copy of the script on their site so they can play with it if they want. It just makes it a pita if we decide to add other scripts, but I have a way arouns that too :). allan |