Your localhost will hang if you run this kind of query with the WHERE clause, so to get it work you need to install the package that I mentioned above only.Īt the top of every file you wish to run (.pl or. If you install that one, you will get an error in your SQL SELECT query and especially when you use the WHERE clause. Note: The ActivePerl default package repository contains DBD-mysqlPP module. After the “uwinnipeg” repository is added successfully, you can install DBD-mysql by typing this command “ppm install DBD-mysql” and hit enter. Open command prompt, navigate to your perl/bin folder (“cd c:wampbinperlbin”), then type “ppm repo add uwinnipeg” and press enter.Ģ. So, you need to add additional repository and install from that repository. However, mysql driver module is not available in the default ActivePerl Package Repository. You have to grab the driver from the ActivePerl package repository. You need to download and install mysql driver to enable database connection through your perl script. Next thing you might need to do is to configure perl to use mysql database. Your server is now configured and ready to run perl and cgi script. Add index.cgi and in this line.ĭirectoryIndex index.php index.php3 index.html index.htm index.cgi The following table contains the Perl 5 version history, showing its release versions.Not all versions are covered yet. To add directory index file, look for the line “DirectoryIndex index.php index.php3 index.html index.htm“. Perl is an open-source programming language whose first version, 1.0, was released in 1987. Now you will be able to execute CGI and Perl script with. pl file extension in your server add “AddHandler cgi-script. You need to enable this by un-comment this line, to do that remove the # character at the beginning of this line. This will enable CGI script inside your Now look for the line “AddHandler cgi-script. Options Indexes FollowSymLinks Includes ExecCGI Add “Includes ExecCGI” in the line just next to FollowSymLinks, thus it look like this: Inside nf, look for the line that says ““, just a few lines below this you’ll find the line that says “Options Indexes FollowSymLinks“. Now go to “C:wampbinapacheApache2.2.11conf” directory and open “nf” file. You need to edit the Apache configuration file. The next thing you need to do is configure the Apache web server to execute Perl and CGI script. So I install Active Perl in “C:wampbinperl” directory. I create a new folder name “perl” inside “C:wampbin“. The default installation directory is “C:Perl“, but for simplicity and ease of use I use different directory. Now you have to download ActivePerl (currently 5.10.0) from and install it. The current Wamp Server will install Apache 2.2.11, PHP 5.2.9-2 + PECL, MySQL 5.1.33, SQLitemanager and PhpMyadmin. To complete the installation you have to set the host name for your mail server and your email address, here you can leave the default option again. The default installation directory is ‘C:wamp” and here I am using the default options for installation. First you need to download Wamp Server from and install Wamp Server on your machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |