PDA

View Full Version : CGI error



FLUID
Thu 24th May '01, 12:26pm
When I try to run http://my.domain/vblite/admin/install.php

I get this error.......


CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Mike Sullivan
Thu 24th May '01, 12:28pm
You might want to check with your host as it's a possibility you need to add a shebang line at the top of the file (such as #!/usr/local/php)

FLUID
Thu 24th May '01, 12:39pm
What file would I add that too?


Im running:

IIS 5.0 w/ PHP & mySQL

--------------------------------------------
My perl is at C:/perl
My php is at: C:/php
My sql is at: C:/mysql

I dumped vlite in my wwwroot.
Not in the cgi-bin/
--------------------------------------------
My config file in ADMIN folder looks like this:


<?php

/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be //
/////////////////////////////////////////////////////////////

// type of database running
// (only mysql is supported at the moment)
$dbservertype="mysql";

// hostname or ip of server
$servername="localhost";

// username and password to log onto db server
$dbusername="root";
$dbpassword="mypword";

// name of database
$dbname="mysql";

//password needed to enter the control panel
$cppassword="mypword";

?>


Thank in Advance

FLUID
Thu 24th May '01, 1:56pm
ok, I think I got past the cgi error.

When i try to go to: http://my.domain/admin/index.php
I get the following errors:


Warning: Undefined variable: nocache in c:\inetpub\wwwroot\admin\global.php on line 21

Warning: Undefined variable: query_id in c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Warning: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Warning: Use of undefined constant template - assumed 'template' in c:\inetpub\wwwroot\admin\global.php on line 53

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\admin\global.php:21) in c:\inetpub\wwwroot\admin\global.php on line 195

FLUID
Thu 24th May '01, 2:06pm
OK I inserted error reporting to 7, all that is left is this error:

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\admin\config.php:3) in c:\inetpub\wwwroot\admin\global.php on line 196




Thanks in Advance~

Mike Sullivan
Thu 24th May '01, 5:24pm
Take out the whitespace before the <?php in config.php.