Skip to content
MaliciaMrg edited this page Aug 5, 2015 · 4 revisions

configure Apache CGI

To do first active cgi: a2enmod cgi service apache2 restart

If the api.cgi file was here : /var/www/html/eyefiserver2

the correct Directives for the apache webserver :80

<Directory "/var/www/html/eyefiserver2"> AllowOverride None Options +ExecCGI -MultiViews Order allow,deny Allow from all AddHandler cgi-script cgi </Directory>

hack for Ubuntu

On Ubuntu 14.04 after the configuration of the Apache WebServer for CGI , i have this anomalie in the apache logerror and no data in the WebUI

[cgi:error] [pid 9619] [client 192.168.1.211:1619] AH01215: , referer: http:

[cgi:error] [pid 20952] [client 192.168.1.211:1623] malformed header from script 'api.cgi': Bad header: 1432930557692, referer: http:

i change the header of the api.cgi file from #!/bin/sh to #!/bin/bash

rigth of www-data

add by visudo

www-data ALL=(ALL) NOPASSWD: /etc/init.d/eyefiserver

Clone this wiki locally