Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 14th, 2001, 09:09 AM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
test perl out on windows 98?

Hi

Is there anyway to test perl scripts out on my windows 98 pc.

Thanks.

Reply With Quote
  #2  
Old July 14th, 2001, 02:08 PM
writhe writhe is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Houston
Posts: 9 writhe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
don't know much, but i do know this

You can download and install Apache for Windows. You can then test out your scripts on your computer.

Reply With Quote
  #3  
Old July 14th, 2001, 02:13 PM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

OK thanks will go and visit apache's web site then.

Would this have to go with personal web server - already got that installed.

Thanks.

Reply With Quote
  #4  
Old July 14th, 2001, 02:25 PM
writhe writhe is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Houston
Posts: 9 writhe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
dunno about the personal stuff

Don't know anything about personal web server. But whatever it is, you don't need it.

Download Apache for Windows and install it. I think the latest version that works on non-2000 Windows is 1.3.20 or something.

Once you've got it installed, open up the httpd.conf file and change the ServerName value to 127.0.0.1. As you scroll through the config file you'll see what I'm talking about.

Once you've done that, launch Apache, open up a browser and enter http://127.0.0.1/whatever_site_you_choose to launch your site and test your scripts. I think I've left a few steps out, but this should get the ball rolling at least.

Reply With Quote
  #5  
Old July 14th, 2001, 02:45 PM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

I'm downloading file apache_1.3.20.zip from http://httpd.apache.org/dist/httpd/ - is that the right one.

Thanks for your help, i'll let you know if i get any problems installing it.

Thanks.

Reply With Quote
  #6  
Old July 14th, 2001, 03:28 PM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

I've unzipped the apache file and it says to install it run the Apache .msi file you downloaded above and i could not see that so i've browsed the site and found a something on there so just trying that out.

Thanks.

Reply With Quote
  #7  
Old July 14th, 2001, 03:46 PM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

How do i run the .msi file as when i click on it, it brings up a box asking which program i would like to use and cant see any which would work for this - got any ideas?

Thanks.

Reply With Quote
  #8  
Old July 14th, 2001, 04:19 PM
JohnB JohnB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: UK
Posts: 527 JohnB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
You need to download the .msi installer. Read this page

http://httpd.apache.org/dist/httpd/binaries/win32/

There are details on what to do.
__________________
Doc MacGurgles Babylonian Lizard Tooth Oil worked for me

Reply With Quote
  #9  
Old July 14th, 2001, 04:28 PM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

I've already got the .msi file. I've looked over that page and when i type this:

MSIEXEC /i C:\WINDOWS\Desktop\apache.msi

into Start > Run, it says:

Can not find the file 'MSIEXEC' (or one of its components). Make sure the path and filename are correct and all required libraries are available.

So anyone got any ideas what i'm doing wrong?

Thanks.

Reply With Quote
  #10  
Old July 14th, 2001, 04:37 PM
JohnB JohnB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: UK
Posts: 527 JohnB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Have you downloaded the file instmsi.exe from Microsoft. This is the program you need to instal in order to use your msi.

click the link on that page marked:

Redistributable v1.20 for Windows 95, 98 and ME via ftp


to get this and instal MSIEXEC.

Win 98 does can not handle .msi - you need to update it.

Reply With Quote
  #11  
Old July 14th, 2001, 04:51 PM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

No, i never had that file so i'm downloading it now - got 97% so should be able to sort apache out soon.

If it dont work i'll post again.

Thanks.

Reply With Quote
  #12  
Old July 14th, 2001, 05:14 PM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

OK i've got apache installed now thanks for helping me.

Do i need to do anything else to set it up.

Another thing is how would i run a script now.

Thanks for your help guys!

Reply With Quote
  #13  
Old July 15th, 2001, 03:23 AM
writhe writhe is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Houston
Posts: 9 writhe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, once you've configured your httpd.conf file for a local host (127.0.0.1 for ServerName), just launch your browser and type in http://127.0.0.1/cgi-bin/your_script.pl and it should run. printenv.pl is a script that should come in your cgi-bin. Try running that one first 'cuz you know it works.

Reply With Quote
  #14  
Old July 15th, 2001, 03:27 AM
writhe writhe is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Houston
Posts: 9 writhe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
oh, and make sure apache is running

Make sure you launch Apache before you launch your browser and run your script.

Reply With Quote
  #15  
Old July 15th, 2001, 04:54 AM
sjbates sjbates is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: England, UK
Posts: 41 sjbates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi

Getting somewhere now...when i got to http://127.0.0.1/cgi-bin/printenv.pl it brings up a internal error.

Could this be something like the path to perl is wrong? At the moment it says #!/usr/local/bin/perl

It says this in the error log: [Sun Jul 15 10:50:10 2001] [error] [client 127.0.0.1] couldn't spawn child process: c:/program files/apache group/apache/cgi-bin/printenv.pl

Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > test perl out on windows 98?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump