×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

LOCAL HOST setup

LOCAL HOST setup

LOCAL HOST setup

(OP)
I WANT TO SET UP A LOCAL WINDOWS CGI TEST ENVIRONMENT.
I have read a few different articles on it but can't get the details all tied together. I fave a Win/XP Home edition

Example: What dameon/server program do I start.
         How di tell my browser where the local folders are
         I need the standard in/out pipes to work for
            processing.
         How d I set up default system values for my perl
            programs to test.

I don't want a complex test environment but I recently went into a perl error loop and brought down my online server by filling up a 2gig error file. I don't have a true virtual environment just a sub host environment. Needless to say the system network web master was madmadmadmad at me as I killed all of the other users. I have never done this before but had better not do it again.

Any help would be appreciated.

Computer thought: I teach a lot of programming so I can learn. You can never learn it all.

RE: LOCAL HOST setup

Apache has a windows installation.  You will put your folders into apache's cgi-bin or htdocs.  I think apache comes preset up to associate with perl if you already have it installed.  Your website will just be http://localhost.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
noevil
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;

RE: LOCAL HOST setup

I also recommend Apache.  I have it running on my 2 Windows home computers for testing perl scripts and anything else I want to run on localhost http.

Once you install it, in Apache's conf folder you'll find http.conf.  Open this file an change AddHandler cgi-script .cgi to AddHandler cgi-script .cgi .pl or whatever extension you use for your perl scripts.

You can also set Apache to use your current development folder as the http root directory, which may be more convenient than moving everything to Apache's htdocs directory.  

To accomplish that, find this line in httpd.conf DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs" or whatever directory it may be, and change it to your a directory that can be used to access your work.  20 lines down or so is a <Directory "..."> directive which should be changed to the same as DocumentRoot.

Of course you'll have to be sure that all of your perl modules match your production server and you should be good to go!

RE: LOCAL HOST setup

I use XAMPP for development.  

It includes:
  • Apache
  • MySQL
  • PHP + PEAR
  • Perl
  • mod_perl
  • mod_ssl
  • OpenSSL
  • phpMyAdmin
  • Webalizer
  • Mercury Mail Transport System for Win32 and NetWare Systems v3.32
  • Ming
  • JpGraph
  • FileZilla FTP Server
  • mcrypt
  • eAccelerator
  • SQLite
  • WEB-DAV + mod_auth_mysql
It is quite esay to setup and works great for a development server.

--Kevin

RE: LOCAL HOST setup

(OP)
To eWISH

Never heard it but will look it over.

But at a fee-per-use I may not be able to use it with students as I want something they can set up on their home development system.

Professorsparkie

Computer thought: I teach a lot of programming so I can learn. You can never learn it all.

RE: LOCAL HOST setup

xampp is free, donations are purely voluntary.

------------------------------------------
- Kevin, perl coder unexceptional! wiggle

RE: LOCAL HOST setup

(OP)
TO: KEVINADC,

THANKS.

PROFESSORSPARKIE

Computer thought: I teach a lot of programming so I can learn. You can never learn it all.

RE: LOCAL HOST setup

(OP)
I down loaded XAMPP and tried to install it and got a message about the platform not being supported. I downloaded the Windows version and I have Windows/XP Home.

???????? what did I do wrong?

Computer thought: I teach a lot of programming so I can learn. You can never learn it all.

RE: LOCAL HOST setup

I recently used XAMPP Windows 1.6.6 installer without any problems Windows XP Pro.

--Kevin

RE: LOCAL HOST setup

(OP)
To eWish,

Thanks for the feedback but I do not have XP/Pro, just Home. Maybe that is the problem.

I have service pack 2 just like I do at work. I tried installing Apachie  straight there and it installed and so far seems to find Localhost with a confirmation message that all is working.

That was this afternoon and I haven't tried an application yet.

I have been reading & I need to point a few apachie variables to my www & cgi-bin folders and I need to find out (where & how) to tell apachie where perl & mysql are.

I have a lot to leard. I wanted a click and run solution.

Computer thought: I teach a lot of programming so I can learn. You can never learn it all.

RE: LOCAL HOST setup

I am sorry to hear that you are having problems.  For me is was a click and run type situation.  I don't recall seeing anything that specified XP Pro in lieu of XP home.

RE: LOCAL HOST setup

make sure you downloaded the windows XP version if there is one. If there is not a XP specific version I don't know what the problem might be. I have never used XAMPP.

------------------------------------------
- Kevin, perl coder unexceptional! wiggle

RE: LOCAL HOST setup

(OP)
To Kevin ADC

I downloaded xampp-win32-devel-1.6.5.exe. I think ir was the version I needed.

Computer thought: I teach a lot of programming so I can learn. You can never learn it all.

RE: LOCAL HOST setup

try one of the other versions

------------------------------------------
- Kevin, perl coder unexceptional! wiggle

RE: LOCAL HOST setup

devel is the developers release, still shouldn't be an issue.

word of warning though XAMPP will run out of the box (Eventually ...), though it's not considered the most secure Apache environment

http://www.apachefriends.org/en/xampp-windows.html#641

select the basic package, and then select the Perl package, shouldn't have any troubles on XP Home

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments winky smile

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close