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
Switch to threaded view of this topic Create a new topic Submit Reply
Step 1: Error 500 [message #6212] Sun, 06 October 2002 10:24 Go to next message
holger.linge is currently offline  holger.linge   Germany
Messages: 17
Registered: October 2002
Karma: 0
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

Re: Step 1: Error 500 [message #6213 is a reply to message #6212] Sun, 06 October 2002 10:34 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
holger.linge wrote on Sun, 06 October 2002 12:24

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

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

No u re absolutely wrong. Puretec does allow .php as an ending, because the majority of scripts use this extension. There's absolutely no need for creating such a .htaccess. This is the only reason why the installation failed.
Just upload it to ur account and type: http://urdomain.de/install.php
That's all. I know it because I've already installed the forum several times on puretec, so I know the configuration there.
bye
Ken

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

Report message to a moderator

Re: Step 1: Error 500 [message #6214 is a reply to message #6213] Sun, 06 October 2002 11:02 Go to previous messageGo to next message
holger.linge is currently offline  holger.linge   Germany
Messages: 17
Registered: October 2002
Karma: 0
Junior Member
You're partly right.

The .htaccess-mapping of .php to .php4 was NOT neccessary, but it wasn't the solution to my problem. I've deleted the .htaccess-file now.

The install.php is (as before) located in

/db/bbs

The data should be stored in

/db/bbs/data

Both directories are in 777 mode at runtime. And i'm still running into the Server Error 500.

Re: Step 1: Error 500 [message #6216 is a reply to message #6214] Sun, 06 October 2002 11:22 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
Hello,
if u re using the most recent script it may be because it doesn't use the zlib anymore. The setup script may be too large and runs into a timeout. This is an issue with php running as cgi. The following steps should solve ur problem.

1. Use the latest development version (2.3.2rc3) for ur first install (don't worry it's stable). It makes use of the zlib library and will be executed without any problem.

2.Upgrade to 2.3.2 with the following script:
http://fud.prohost.org/forum/index.php?t=getfile&id=403&rid=85
It also uses the zlib library and should succeed to install

bye Ken

[Updated on: Sun, 06 October 2002 11:23]

Report message to a moderator

Re: Step 1: Error 500 [message #6219 is a reply to message #6216] Sun, 06 October 2002 15:09 Go to previous messageGo to next message
holger.linge is currently offline  holger.linge   Germany
Messages: 17
Registered: October 2002
Karma: 0
Junior Member
Ack, that hit the spot. Runs perfectly now.

I got the Error 500 pretty fast, you're sure this was a timeout?
Re: Step 1: Error 500 [message #8171 is a reply to message #6219] Tue, 14 January 2003 19:27 Go to previous message
kowitsch is currently offline  kowitsch   Germany
Messages: 10
Registered: January 2003
Location: Germany
Karma: 0
Junior Member
Hi Holger and to the other readers,

I have the same problem. My provider (Schlund) reports almost the same settings when I called phpinfo().
See also posting: 500:Internal Server Error in thread: installation issues.

I used your modification to the install-script to display the error and it generated the same output.

"14 Jan 2003 20:16:54","/homepages/xy/d01234/htdocs/forum/install.php: 422","(Notice) Undefined variable:  section"
"14 Jan 2003 20:16:54","/homepages/xy/d01234/htdocs/forum/install.php: 910","(Notice) Undefined variable:  LANGUAGE"
"14 Jan 2003 20:17:16","/homepages/xy/d01234/htdocs/forum/install.php: 496","(Notice) Undefined index:  sfh"


I didn't understand the solution Olliver presented to you.
I tried the latest development version and it didn't work in my case.

Does your provider also limit script execution to 6 secs?

Thanks in advance
Kowi
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sat Nov 30 23:25:05 GMT 2024

Total time taken to generate the page: 0.02442 seconds