PERL Problem: Source Displayed

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PERL Problem: Source Displayed

Postby alfred3x » 13. August 2006 15:10

I have a series of vhosts. One of them requires PERL with MySQL database access. Having successfully installed xampp with vhosts (thank you, Izzy!) I'm now trying to access this web app.

The PERL portion is just the login page. But that comes up displaying the source file.

I've replaced the top line with:

Code: Select all
#!"D:\Program Files\PERL\bin\perl"


And here is the vhost:

Code: Select all
<VirtualHost *:80>
  ServerName ims.lastbyte.ca
  DocumentRoot "E:/Websites/ims/site/"
   <Directory "E:/Websites/ims/site/" >
      Options Indexes FollowSymLinks ExecCGI
      AllowOverride FileInfo
      Order allow,deny
      Allow from all
   </Directory>
   CustomLog "E:/Websites/ims/logs/access.log" common
   ErrorLog "E:/Websites/ims/logs/error.log"
</VirtualHost>


Any help appreciated.

- AAA
alfred3x
 
Posts: 29
Joined: 10. August 2006 19:00
Location: Toronto, ON, Canada

Postby Izzy » 14. August 2006 00:34

There is a full perl plugin here:
http://www.apachefriends.org/en/xampp-windows.html#644

Some reading that might help:
http://httpd.apache.org/docs/2.0/mod/co ... etersource

http://httpd.apache.org/docs/2.0/mod/mo ... criptalias

In the xampp/cgi-bin directory are various test scripts that you can use in your site's cgi-bin.

I have set up cgi-bin in all my virtual host containers useing a ScriptAlias.
ScriptAlias /cgi-bin/ "Path:/to-each-vhost.cgi-bin/cgi-bin/"

In the httpd.conf file the relevant cgi reading starts here:
<IfModule alias_module>
You may have to make edits below this line or include edits, to change the default behaviour, in each of the vhosts containers that need cgi.

HTH
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby alfred3x » 14. August 2006 01:44

Thanks, Izzy. A couple of questions:

Isn't PERL included in the XAMPP package? (I thought it was)

Can I set it up to run PERL scripts in the regular directory? (i.e. in the same directory as my HTML and PHP files)

Thanks again!

- AAA
alfred3x
 
Posts: 29
Joined: 10. August 2006 19:00
Location: Toronto, ON, Canada

Postby Izzy » 14. August 2006 02:47

There is a mini perl included in the release that may do all that you need.
There is a full perl plugin that is as it says, the full perl install if you think it is required. Personally I prefer the full install then I may eliminate any problems in the future use of perl scripts.

Your other question and possibly others you might have are well covered in this tutorial:
http://www.cgidir.com/tutorials/Beginne ... e_101.html

Basically you comment out:
ScriptAlias /cgi-bin/ "/xampp/cgi-bin/"

Good Luck :)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 97 guests