{"id":238,"date":"2016-12-20T20:35:12","date_gmt":"2016-12-20T20:35:12","guid":{"rendered":"https:\/\/puvox.software\/?p=238"},"modified":"2021-11-14T13:45:49","modified_gmt":"2021-11-14T13:45:49","slug":"install-perl-on-wamp-server-localhost","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/install-perl-on-wamp-server-localhost\/","title":{"rendered":"Install PERL on WAMP Server (localhost)"},"content":{"rendered":"<div class=\"default-content-clss content_238 type_post \"><h1 style=\"text-align: center;\"><\/h1>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-1832 aligncenter\" src=\"https:\/\/puvox.software\/wp-content\/uploads\/2016\/12\/wamp-perl.png\" alt=\"\" width=\"858\" height=\"336\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/wamp-perl.png 858w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/wamp-perl-400x157.png 400w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/wamp-perl-300x117.png 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/wamp-perl-768x301.png 768w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/wamp-perl-520x204.png 520w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/wamp-perl-60x23.png 60w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/wamp-perl-200x78.png 200w\" sizes=\"(max-width: 858px) 100vw, 858px\" \/><\/p>\n<h1 style=\"text-align: center;\">Installing PERL on <span style=\"color: #333300;\"><a href=\"http:\/\/wampserver.com\">WAMPSERVER<\/a><\/span><\/h1>\n<p>Some people need to user PERL on Apache server, like WAMP-Server, XAMP or etc. I have been using the following method and worked well for me <em>(I wanted that because I used web-based CMS, named <a href=\"https:\/\/www.movabletype.org\/\">MovableType<\/a>, which works only with PERL)<\/em>. So, you have to spend about 5-10 minutes, to read these instructions and do all steps correctly, and you will able to install <span style=\"color: #333333;\"><a style=\"color: #333333;\" href=\"https:\/\/www.perl.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">PERL<\/a>\u00a0<\/span>with \u00a0your WAMPserver <span style=\"font-size: 10pt;\"><em>(If any problems, let us know in comments).<\/em><\/span><\/p>\n<h1 style=\"text-align: center;\">===== Step 1 (Installing PERL) ====<\/h1>\n<ul>\n<li>Probably you already use WampServer. If not, then at first,\u00a0<a href=\"http:\/\/www.wampserver.com\">download it<\/a>\u00a0and install in \u00a0&#8220;<b>C:\\my_servers\\<\/b>wamp&#8221; (I always recommend to install servers in same root folder, as stated, i.e. in <b>C:\\myservers<\/b>). \u00a0 By Default, Wampserver will install in the system, the following components: PHP, Apache Server, MySQL, PHPMyAdmin<\/li>\n<li>Download &amp; install <a href=\"http:\/\/strawberryperl.com\/\">Strawberry-Perl<\/a> (OR <a href=\"http:\/\/www.activestate.com\">ActivePerl<\/a>. However, I prefer Strawberry Perl, because it already includes Databases module and etc&#8230; Shortly, try that, probably you wont regret). \u00a0 As always, you&#8217;d better to change default installation directory to <b>C:\\myservers<\/b>\\perl).<br \/>\n<h1 style=\"text-align: center;\">===== Step 2 (Configuring Apache) ====<\/h1>\n<\/li>\n<li>To configure Apache WebServer to execute <strong>Perl &amp; CGI<\/strong> scripts, open <strong><code>C:\\<b>myservers<\/b>\\wamp\\bin\\apache\\Apache2.<span style=\"color: #ff6600;\">XX.XX<\/span>\\conf\\httpd.conf<\/code><\/strong> file, then search for the line where is:\u00a0<b><\/b><code>Options Indexes FollowSymLinks<\/code>and change that line to:<br \/>\n<strong><code>Options Indexes FollowSymLinks Includes ExecCGI<br \/>\n<\/code><\/strong><\/li>\n<li>Now find the line:<b><br \/>\n<code>#AddHandler cgi-script .cgi<\/code><\/b> and remove <span style=\"color: #ff6600;\"><b><code>#<\/code><\/b><\/span> character. (This will &#8220;un-comment&#8221; that line. Thus, this line will start working). Also, below that line, add this another line too:<br \/>\n<b><b><code>AddHandler cgi-script .pl<\/code><\/b><\/b><b><code><\/code><\/b><\/li>\n<li>\u00a0Now, search for the line:<br \/>\n<b><code>DirectoryIndex index.php <\/code><\/b>\u00a0&#8230; \u00a0and replace it with this:<br \/>\n<b><code>DirectoryIndex index.php index.php3 index.html index.htm index.cgi index.pl<\/code><\/b><\/li>\n<\/ul>\n<h1 style=\"text-align: center;\">==== Step 3 (Enable MySQL module) =====<\/h1>\n<p>Now, you have to enable MySQL module in PERL (In some cases, you might also have to install that at first before enabling). Here is an instruction to <a href=\"http:\/\/codesphpjs.blogspot.com\/2015\/04\/install-mysql-on-perl-dbd.html\">install &amp; enable MYSQL module for PERL.<\/a><\/p>\n<h1 style=\"text-align: center;\">==== Step 4 (Enable IMAGE modules) ====<\/h1>\n<p>In PERL, you also have to Enable &#8220;<strong>Image Libraries<\/strong>&#8220;. Otherwise some functions ( for example, thumbnail and image generation or modification), wont be available for your server,and you might get errors)&#8230; So, open <code><strong>C:\\servers<\/strong>\\your-perl-dir<b>\\bin\\cpan<\/b> <\/code>and execute these lines one-by-one:<\/p>\n<p><b>install Image::Magick<\/b><br \/>\n<b>install GD<\/b><br \/>\n<b>install Imager<\/b><\/p>\n<p>Note, if you are unable to run <strong><code>CPAN<\/code><\/strong>, then you can open <strong><code>CMD<\/code>\u00a0<\/strong>and navigate from there (directly run<code><strong>C:\\servers<\/strong>\\your-perl-dir<b>\\bin\\cpan<\/b><\/code>, or use <strong><code>cd<\/code>\u00a0<\/strong>command).<\/p>\n<p><strong>Now, Restart WAMP and your <code><span style=\"color: #ff0000;\">.pl<\/span><\/code>\u00a0files should work!<\/strong><\/p>\n<p style=\"text-align: right;\"><em>p.s. thanks to <a href=\"http:\/\/chromicdesign.com\/2009\/05\/setting-up-perl-for-wampp.html\">http:\/\/chromicdesign.com\/2009\/05\/setting-up-perl-for-wampp.html<\/a> &amp; <a href=\"http:\/\/howwhywhat.in\/how-to-install-perl-on-wamp-server\">hwh<\/a>\u00a0.<\/em><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_238 type_post \"><p>Installing PERL on WAMPSERVER Some people need to user PERL on Apache server, like WAMP-Server, XAMP or etc. I have been using the following method and worked well for me<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/install-perl-on-wamp-server-localhost\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1832,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17,13],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","category-website"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/1832"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}