FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Step 1: Error 500
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Step 1: Error 500 [message #6212] Sun, 06 October 2002 10:24 Go to previous message
holger.linge is currently offline  holger.linge   Germany
Messages: 17
Registered: October 2002
Karma:
Junior Member
Ok, here's the whole story:

I'm in with www.puretec.de, that's shared hosting with cgi, php3 and php4 enabled.

Here are some details:
http://faq.puretec.de/skripte/php/7.php

I've downloaded the lates FUD-Release, unzipped it on Win-XP and uploaded it in BINARY mode (because there seems to be binary data included) to my account.

Created a .htaccess with this line in my root-dir:
AddType x-mapp-php4 .php

Normally all files must be marked explicitly as .php3 or .php4

Started the install.

Step 1 starts, i enter the directory information and hit the submit-button.

"Server Error 500"

Yeah great. I really enjoy this error-handling every time.

OK, to get my error log i accessed my providers FAQ and found a small php code snippet to write a log. Looks like this:

-----

error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler");

function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars) {
$time=date("d M Y H:i:s");
// Get the error type from the error number
$errortype = array (1 => "Error",
2 => "Warning",
4 => "Parsing Error",
8 => "Notice",
16 => "Core Error",
32 => "Core Warning",
64 => "Compile Error",
128 => "Compile Warning",
256 => "User Error",
512 => "User Warning",
1024 => "User Notice");

$errlevel=$errortype[$errno];

//Write error to log file (CSV format)
$errfile=fopen("errors.csv","a");
fputs($errfile,"\"$time\",\"$filename: $linenum\",\"($errlevel) $errmsg\"\r\n");
fclose($errfile);

if($errno!=2 && $errno!=8) {
//Terminate script if fatal errror
die("A fatal error has occured. Script execution has been aborted");
}
}

-----

So i modified the install.php on my XP and uploaded again in BINARY mode. It now looks like this:

---

...
if( !isset($HTTP_SERVER_VARS['PATH_TRANSLATED']) ) {
if( isset($HTTP_SERVER_VARS['SCRIPT_FILENAME']) )
$HTTP_SERVER_VARS['PATH_TRANSLATED'] = $GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] = $HTTP_SERVER_VARS['SCRIPT_FILENAME'];
else
$HTTP_SERVER_VARS['PATH_TRANSLATED'] = $GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] = realpath('install.php');
}


error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler");

function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars) {
$time=date("d M Y H:i:s");
// Get the error type from the error number
$errortype = array (1 => "Error",
2 => "Warning",
4 => "Parsing Error",
8 => "Notice",
16 => "Core Error",
32 => "Core Warning",
64 => "Compile Error",
128 => "Compile Warning",
256 => "User Error",
512 => "User Warning",
1024 => "User Notice");

$errlevel=$errortype[$errno];

//Write error to log file (CSV format)
$errfile=fopen("errors.csv","a");
fputs($errfile,"\"$time\",\"$filename: $linenum\",\"($errlevel) $errmsg\"\r\n");
fclose($errfile);

if($errno!=2 && $errno!=8) {
//Terminate script if fatal errror
die("A fatal error has occured. Script execution has been aborted");
}
}

function zlib_check()
{

...

-----

And NOW i got that darn log. Reads like this:

-----

"06 Oct 2002 12:04:50","/homepages/38/dxxxxx/htdocs/db/bbs/install.php: 424","(Notice) Undefined variable: section"
"06 Oct 2002 12:04:50","/homepages/38/dxxxxx/htdocs/db/bbs/install.php: 908","(Notice) Undefined variable: LANGUAGE"
"06 Oct 2002 12:05:01","/homepages/38/dxxxxx/htdocs/db/bbs/install.php: 498","(Notice) Undefined index: sfh"

-----

Well, that's it. Hope you don't get too angry with me messing around in your code, but i thought the log may help. If it would be Perl i might look myself, but with PHP i'm sort of helpless.

cu
Holger



[Updated on: Sun, 06 October 2002 10:55]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: safe mode problems after step 1 of installation
Next Topic: Problem on step 2 installing fud 2.3.6
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 12:00:43 GMT 2024

Total time taken to generate the page: 0.07239 seconds