PERL XAMMP error log files and Setup

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

PERL XAMMP error log files and Setup

Postby aceace » 22. May 2016 20:02

I did my due diligence and searched the OSX forum for this issue, but couldn't resolve, so here is the background of my question:

recently Installed XAMMP version 7.0.5-0 so I can debug my website locally
MAC OSX 10.11.4 El Capitan

All the HTML works fine on my MAC localhost (which is cool), but when I click on any CGI PERL script page I get

Object Not Found
The requested URL was not found on this server
404 error Apache/2.4.18 (Unix) OpenSSL/1.0.2g PHP/7.0.5 mod_perl/2.0.8-dev Perl/v5.16.3

I know this means it can't find the URL. The cgi file is there in the directory so it should find that file? Could it be the first line of my PERL script file which is:

#!/usr/bin/perl

I see perl is in the /usr/bin/perl directory on my MAC.

So my current question is: Where are the XAMPP PERL error logs? and any other info about how to run or setup PERL with XAMMP.
aceace
 
Posts: 3
Joined: 22. May 2016 19:21
XAMPP version: 7.0.5-0
Operating System: OSX 10.11.4 El Capitan

Re: PERL XAMMP error log files and Setup

Postby Nobbie » 23. May 2016 11:18

aceace wrote:#!/usr/bin/perl

I see perl is in the /usr/bin/perl directory on my MAC.


The first line is the so called "Shebang" line and the path has to specifiy the executable file (the Perl Interpreter). I dont think that this is /usr/bin/perl on a MAC; this is a typical Linux path, but usually MAC Pathes differs heavily from that.
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04

Re: PERL XAMMP error log files and Setup

Postby aceace » 23. May 2016 17:32

Found error log file location for XAMPP PERL on OSX

on MAC OSX they are located in

Applications / XAMPP / xamppfiles / logs / error_log

Another way to find the XAMPP PERL error_log file is
start manager-osx a dialog box for the manager-osx application will pop-up
click Welcome tab
click Open Application Folder Finder will open a dialog box
double-click the logs folder
double-click error_log text file
scroll to the end of the file to see the most recent errors

The error on the last line of this error_log file is:

script not found or unable to stat: /Applications/XAMPP/xamppfiles/cgi-bin/directory.cgi, referer: http://localhost/

The problem is: cgi-bin is located in different directory in the same location as the HTML files.
There must be a PERL configuration file that I need to modify to point PERL at a different cgi-bin folder.
I will look for that next unless someone can point me to it, or tell me how to modify that?
aceace
 
Posts: 3
Joined: 22. May 2016 19:21
XAMPP version: 7.0.5-0
Operating System: OSX 10.11.4 El Capitan


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 5 guests