Hi friends, Please help on Apache24 10cv httpd-2.4.23-win32 which is running on my Windows 8.1 tablet 32 bits. After installed, I coud have It works on htdocs with root document:
C:\Apache24\htdocs\index.html. I could not open in browser for ip from ipv4 http://192.168.0.3, nor http://localhost/index.html . In httpd.conf, I have had ServerName: http://192.168.0.3:80 and AddHandler cgi-script .cgi .pl However, when I tested the sample file printenv.pl on my browser, the output is a copy of old text file printenv.pl : C:\Apache24\cgi-bin\printenv.pl When I tested this sample cgi pl on command prompt for path above, I have this perl sample program running with output from perl on black and white terminal, without color from html: <html><h2><font color=blue>Hello perl My address box on browser is: C:\Apache24\cgi-bin\printenv.html So the shebang is good as : #! /C:/Strawberry/bin/perl. Please help me find what codes are needed to run CGI on httpd.conf on Windows 8.1. Thank you. On Friday, September 16, 2016, Eric Covener <cove...@gmail.com> wrote: > On Fri, Sep 16, 2016 at 1:20 AM, megha chauhan <megha...@gmail.com > <javascript:;>> wrote: > > The same code is working for apache 2.2. > > Did you compile this code properly against 2.4 headers? ap_log_error > is a macro in 2.4. Your binary should only show ap_log_error_ as > undefined with nm otherwise something is fishy. > > Also "r" is a very confusing variable name for a server_rec. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org <javascript:;> > For additional commands, e-mail: users-h...@httpd.apache.org > <javascript:;> > > -- http://www.lecan.net