[cgiwrap-users] #!/usr/bin/php
Brought to you by:
nneul
From: Daniel N. <dr...@gm...> - 2002-08-09 14:12:57
|
Hi, do I have to put a #!/usr/bin/php in the beginning of every php file? Of is there a way that is not need? Since I get an CGIWrap encountered an error while attempting to execute this script: Error Message: Exec format error Error Number: 8 With adding #!/usr/bin/php - it works. My configuration: ./configure \ --with-perl=/usr/bin/perl \ --with-local-contact-name=WebVector \ --with-local-contact-email=su...@ph... \ --with-local-contact-url=http://support.phpmagic.de \ --with-local-site-url=http://www.phpmagic.de \ --with-install-group=root \ --with-install-dir=/usr/lib/cgi-bin/cgiwrap \ --with-cgi-dir=htdocs \ --with-httpd-user=www-data \ --with-php-path=/usr/bin/php \ --with-php-interpreter \ --with-php-cgiwrap \ --with-minimum-uid=1000 \ --with-logging-file=/var/log/apache/cgiwrap.log <VirtualHost phpmagic.de> ServerName phpmagic.de ServerAlias phpmagic.de DocumentRoot /var/chroot/_nossh/k060881/htdocs/phpmagic.de ServerAdmin web...@ph...> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AddHandler cgi-wrapperd .php AddHandler cgi-wrapperd .phtml AddHandler cgi-wrapperd .cgi Action cgi-wrapper /cgi-bin/cgiwrap/cgiwrap/k060881 Action cgi-wrapperd /cgi-bin/cgiwrap/cgiwrapd/k060881 </VirtualHost> |