[cgiwrap-users] RE: #!/usr/bin/php
Brought to you by:
nneul
From: Neulinger, N. <nn...@um...> - 2002-08-09 14:23:44
|
Run it with cgiwrapd and see what it says.=20 You should not have to put the #! line or make the php file executable with the new options enabled.=20 -- Nathan ------------------------------------------------------------ Nathan Neulinger EMail: nn...@um... University of Missouri - Rolla Phone: (573) 341-4841 Computing Services Fax: (573) 341-4216 > -----Original Message----- > From: Daniel Nolte [mailto:dr...@gm...]=20 > Sent: Friday, August 09, 2002 9:13 AM > To: Neulinger, Nathan > Cc: cgi...@li... > Subject: #!/usr/bin/php >=20 >=20 > Hi, >=20 > 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 >=20 > CGIWrap encountered an error while attempting to execute > this script: >=20 > Error Message: Exec format error > Error Number: 8 >=20 > With adding #!/usr/bin/php - it works. >=20 >=20 >=20 > My configuration: > ./configure \ > --with-perl=3D/usr/bin/perl \ > --with-local-contact-name=3DWebVector \ > --with-local-contact-email=3Ds...@ph... \ > --with-local-contact-url=3Dhttp://support.phpmagic.de \ > --with-local-site-url=3Dhttp://www.phpmagic.de \ > --with-install-group=3Droot \ > --with-install-dir=3D/usr/lib/cgi-bin/cgiwrap \ > --with-cgi-dir=3Dhtdocs \ > --with-httpd-user=3Dwww-data \ > --with-php-path=3D/usr/bin/php \ > --with-php-interpreter \ > --with-php-cgiwrap \ > --with-minimum-uid=3D1000 \ > --with-logging-file=3D/var/log/apache/cgiwrap.log >=20 >=20 > <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> >=20 >=20 >=20 >=20 >=20 |