copied perl.pl file from
c:\xampp\htdocs\xampp\
to directory in my virtual host dir:
c:\xampp\htdocs\motokohana\public\
pointing web browser to it - it works (shows OK)
When I do ANY slight change in file, it does not work:
"End of script output before headers"
my .htaccess in c:\xampp\htdocs\motokohana\public\:
- Code: Select all
AddHandler cgi-script .cgi .pl
Options +ExecCGI
# Turn on URL rewriting
RewriteEngine On
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
my .htaccess in c:\xampp\htdocs\motokohana\:
- Code: Select all
# Turn on URL rewriting
RewriteEngine On
# Protect application and system files from being viewed
# RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
RewriteRule ^(.*)$ /public/$1 [L,QSA]
perl.pl:
- Code: Select all
#!"C:\xampp\perl\bin\perl.exe"
print "Content-Type: text/html\n\n";
print "OK";
however, when I do any change to it, like
- Code: Select all
#!"C:\xampp\perl\bin\perl.exe"
print "Content-Type: text/html\n\n";
print "OK2";
it stops working.
Someone else got similiar problem too: http://stackoverflow.com/questions/17608627/end-of-script-output-before-headers-hello-pl
WTF?