You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

MacOS Apache2 Refuses to execute CGI perl Scripts

I use the MacBookPro to Program a major IT program written in Perl. For over 20 years I have use the Apache2 Web server to validate the CGI programs using the web server. I have followed to the letter, the documents created by "etresoft" on this forum. When trying to access the perl program (e.g. http://localhost/test.cgi), I only get the test file to display and the CGI does not execute. I have set for the directory



AddLanguage en .en

AddHandler perl-script .cgi .pl

PerlHandler ModPerl::Registry

Options Indexes MultiViews FollowSymLinks ExecCGI

Require host localhost

MultiviewsMatch Any


I have made Sure that LoadModule perl_module libexec/apache2/mod_perl.so is uncommented.

I need some error report system to see what it is doing. In Linux this is easy, but in looking through the line MacOS apache2, I am not sure how to add other error logs to evaluate this issue. In see nothing in messages except it starts. Another issue is I do not understand is "apachectl status" gives a strange message which does not work when I enable. This problem may be an issue with my settings in MacOS, as I have to enable something in the system in the older versions to share the web page. Can someone help me. Also, I am new to this forum, and may be naive about how to request help. Be kind😊


MacBook Pro 16″, macOS 15.1

Posted on Nov 24, 2024 4:54 PM

Reply
1 reply

MacOS Apache2 Refuses to execute CGI perl Scripts

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.