cgi w/NT vs. UNIX
Hi all,
I am new to creating and using my own cgi_bin and scripts. My domain (www.mydomain.com) is hosted with an ISP on an NT server.
How does setting up cgi scripts on an NT differ from setting up on a UNIX server?
My service provider says that I do not need to set permissions on an NT. Anything else I should ask?
Can you use the same languages on both the NT and UNIX.
I want to put a counter written in Perl on my home page. What questions should I ask my provider? They do not provide a counter.
Mark Hensler posted this at 23:12 — 12th September 2000.
He has: 4,048 posts
Joined: Aug 2000
On windows platforms, you don't worry about permissions.
The CGI will be writen the same on both platforms with a few exeptions:
-The path to perl will look different
-You can use any plaform specific code in yoou CGI (some people use UNIX shell command in their CGI's)
I have a UNIX host, but design my stuff on my Windows 98 machine. I have apache, perl, php, and mysql installed. As long as I change the path to perl, and be carefull about versions, the scripts work on both platforms.
Mark Hensler
If there is no answer on Google, then there is no question.
Vorm posted this at 02:17 — 13th September 2000.
They have: 62 posts
Joined: May 2000
I have a quesiton a long the same lines. What does a typical NT path look like? Kind of like a Win 98 one? So an NT path would look like this: "C:\site\public_html\cgi-bin"?
Mark Hensler posted this at 05:39 — 13th September 2000.
He has: 4,048 posts
Joined: Aug 2000
I don't know... I've just run CGI's on Win98 and UNIX/LINUX
But I would *think* that it you look like that.
Rob Pengelly posted this at 22:42 — 13th September 2000.
They have: 850 posts
Joined: Jul 1999
I think that on NT servers, normally the path to perl is NOT required.
Gil posted this at 01:13 — 14th September 2000.
They have: 103 posts
Joined: Apr 1999
That is correct. In most cases, NT web servers use ISAPI Filters which basically recognize the file extension (.cgi, .pl, etc.). It then matches the extension with the specified compiler path. So no, a path to perl (usually looks like #!/usr/local/bin/perl) is normally not needed on Win NT.
As for file format, the Windows NT file system is almost identical to Windows 98. C:\inetpub\wwwroot is a typical path for websites on Windows machines using IIS.
Gil Hildebrand, Jr.
Internet Consultant
New Orleans, LA
Mark Hensler posted this at 05:28 — 14th September 2000.
He has: 4,048 posts
Joined: Aug 2000
ooooohhh..
So on my Win98, I don't need the path to perl? Do I have to configure Apache somehow?
I've had scripts yell at me when I have the path wrong, but I've never tried without one.
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.