[OpenIndiana-discuss] Xampp

Guenther Alka alka at hfg-gmuend.de
Wed Dec 30 23:31:21 UTC 2015


check settings
https://httpd.apache.org/docs/2.4/howto/cgi.html

then check if
- filepermissions of .cgi is set to executable
- line breaks Unix style

- correct path to perl (first line of script)
- add the following to the script to show errors in your browser
use CGI::Carp qw (fatalsToBrowser);


Gea

Am 30.12.2015 um 19:46 schrieb luisa sd:
> Hi there
>
> I am trying to to run a cgi with Xampp, I am using the Xampp version 1.7.7
> on OpenIndiana.
> I am getting the error 500 that said this:
>
> Server error!
>
> The server encountered an internal error and was unable to complete your
> request.
>
> Error message:
> Premature end of script headers: MxRemotePreview.cgi
>
> If you think this is a server error, please contact the webmaster.
> Error 500
> localhost
> 30 de diciembre de 2015 12:11:25 COT
> Apache/2.2.21 (Unix) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0d PHP/5.3.8
> mod_perl/2.0.5 Perl/v5.12.3
>
> This is the Error log
>
> [Wed Dec 30 12:11:11 2015] [notice] suEXEC mechanism enabled (wrapper:
> /opt/xampp/bin/suexec)
> [Wed Dec 30 12:11:11 2015] [warn] Init: Session Cache is not configured
> [hint: SSLSessionCache]
> [Wed Dec 30 12:11:12 2015] [notice] Apache/2.2.21 (Unix) DAV/2
> mod_ssl/2.2.21 OpenSSL/1.0.0d PHP/5.3.8 mod_perl/2.0.5 Perl/v5.12.3
> configured -- resuming no$
> [Wed Dec 30 12:11:25 2015] [error] [client 127.0.0.1] Premature end of
> script headers: MxRemotePreview.cgi
> [Wed Dec 30 12:11:26 2015] [error] [client 127.0.0.1] File does not exist:
> /videopool/data/favicon.ico
>
> This is my Vhost File
>
> <VirtualHost *:80>
> ServerAdmin webmaster at localhost
>
> DocumentRoot /videopool/data
> <Directory />
> Options FollowSymLinks +ExecCGI
> AllowOverride None
> </Directory>
> <Directory "/videopool/data/">
> Options +ExecCGI
> <FilesMatch [MEAPC][0-9]+\.jpg$>
> SetHandler mxremotepreview
> </FilesMatch>
> AuthType Basic
> AuthName "Restricted Files"
> AuthUserFile /videopool/data/.mxinf
> Require user mxcc
> </Directory>
> ScriptAlias /cgi-bin/ /opt/xampp/cgi-bin/
> Action mxremotepreview /cgi-bin/MxRemotePreview.cgi
> <Directory "/opt/xampp/cgi-bin">
> AllowOverride None
> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> </Directory>
> ErrorLog /opt/xampp/logs/error_log
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /opt/xampp/logs/access_log combined
>
> Alias /doc/ "/usr/share/doc/"
> <Directory "/usr/share/doc/">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from 127.0.0.0/255.0.0.0 ::1/128
> </Directory>
>
> </VirtualHost>
>
> I have in my Httpd conf all about cgi enabled!
>
> Please help
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss



More information about the openindiana-discuss mailing list