Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

DuBois book and windows

by cowboygeek (Initiate)
on Sep 25, 2004 at 18:15 UTC ( [id://393822]=perlquestion: print w/replies, xml ) Need Help??

cowboygeek has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to follow the DuBois book (MySQL and Perl for the Web). I'm on Windows XP. I've installed MySQL 4.0.18. I have Active state perl 5.6.1. I have installed Apache 2.0.51. I'm trying to get the correct versions of mod_perl and Apache::Session to follow the examples in chapter 8. I've experienced messages that say that the packages and modules don't work together. Has anyone put all this together on Windows XP? Thanks in advance.

Replies are listed 'Best First'.
Re: DuBois book and windows
by jZed (Prior) on Sep 25, 2004 at 18:27 UTC
    I don't have that book on hand so I can't test the script in question (if it's short, perhaps you could post it). I can confirm that I have Apache+Mod_Perl+DBI+MySQL working on winXP. I downloaded BigApache which includes all of those elements compiled for winXP so the one install gets you all of them (and also Tomcat and PHP and other things unless you tell the installer you don't want them). If you are interested in BigApache, it will install new versions of apache, mod_perl, perl, and MySQL so if you have existing versions of those, you should probably remove them before install BigApache.
Re: DuBois book and windows
by Steve_p (Priest) on Sep 25, 2004 at 21:52 UTC

    To work with Apache2 and mod_perl, you'll need a Perl 5.8, available from ActiveState, and a mod_perl 2.0 (or 1.99 something). Detailed instructions for all this is available here.

Re: DuBois book and windows
by davido (Cardinal) on Sep 25, 2004 at 18:30 UTC

    Perl 5.6.1 is not binary compatible with Perl 5.8.x. If you are using any modules in your Perl scripts that you downloaded, say, within the last couple of years, and that module is not "pure Perl" you end up with compatibility problems.

    Is there a reason you can't use Perl 5.8.0 or newer?


    Dave

Re: DuBois book and windows
by johnnywang (Priest) on Sep 25, 2004 at 18:28 UTC
    Certainly, I have the same setup on my laptop where I test my webapps. I don't remember I did anything special, but I could be wrong, it's been awhile. It can be done, and works fine for me.
Re: DuBois book and windows
by bart (Canon) on Sep 26, 2004 at 10:40 UTC
    I have a strong suspicion that book uses mod_perl 1.x. You can get that version of mod_perl to work with perl 5.6.1, so there shouldn't be any huge problems collecting the parts that you need. You can find detailed instructions here.

    If all else fails, and you still want mod_perl 1.x, try downloading Indigoperl 5.6.1. It is fully compatible with ActivePerl 5.6.1, apart for PPM which has been substituted by a web interface, and comes with Apache and mod_perl 1.

Re: DuBois book and windows
by Arunbear (Prior) on Sep 26, 2004 at 16:05 UTC
    Actually, to follow the book you don't even need mod_perl. The scripts in the book are ordinary CGI scripts - mod_perl handlers are not used. mod_perl (via Apache::REgistry) is only recommended by DuBois for improved performance.

    However, if you really wan't to use mod_perl, you can download one of the bundles other monks have suggested, or get one from apache.org - where you can get perl 5.6.1 + Apache 1.3.27 + mod_perl-1.27 OR Perl 5.8.4 + Apache 2.0.50 + mod_perl-1.99. Both distributions come with Apache::Session and DBI/DBD::mysql

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://393822]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2024-04-23 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found