News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Fatal error when installing

Started by agetz, March 27, 2004, 10:18:52 PM

Previous topic - Next topic

agetz

Hey, this board is great but can't figure out how to install.  I get the following error:

Fatal error: Failed opening required '/var/www/html/smfinstalldir=/var/www/html/smf/Settings.php' (include_path='.:/usr/share/pear') in /var/www/html/smf/install.php on line 648

The chmod settings for the Settings.php file are set to 777.  I haven't seen any other posts but any help would be appreciated.

Please help. I'd love to get this thing up.

Thanks

[Unknown]

It looks like the paths in Settings.php are wrong.  Please look for:

installdir=/var/www/html/smf

In the Settings.php file, and quote the entire line.  I will then be able to tell you what to change to get it to work.

-[Unknown]

agetz

I did not find "installdir=/var/www/html/smf" within the install.php file. 

Is that where it's supposed to be located?


[Unknown]

No, Settings.php is where it is being reported as located.  Like I said, something is set incorrectly.

-[Unknown]

agetz

I'm sorry, is this what you meant: 

$boarddir = "/var/www/html/smf";

Also, my $boardurl is my ip address. That's ok isn't it?

[Unknown]

Should be.  Sounds like everything is okay.... why is it using that path?

Can you try the new installer? (Beta 4.1)

-[Unknown]

agetz

Well i tried the new version and got the same error but a different line #

/var/www/html/smf/install.php on line 669

any other suggestions?

agetz

I'm kinda new to PHP but does it have deal with the php error:

/usr/share/pear

Is it not installed right?

[Unknown]

Oh okay, I was looking at a different part of install.php.  It looks like this is what your browser is sending, or what PHP is getting.

Can I see a phpinfo.php, or just what version PHP is?

-[Unknown]

agetz

Yeah, i'm running PHP Version 4.2.2 or if you need to see the phpinfo:
hxxp:65.116.165.15/phpinfo.php [nonactive]

The one thing that i saw in the requirements that i did not have turned off are register_globals.

Anyway, here the info.
Thanks

[Unknown]

Very strange.  I can help you fix it, but... it shouldn't be doing this at all.

Find, install.php:

require_once($_POST['installdir'] . '/Settings.php');

Replace with:

$_POST['installdir'] = '/var/www/html/smf';
require_once($_POST['installdir'] . '/Settings.php');

-[Unknown]

agetz

Sweet, That worked.

Thanks so much and keep up the good work!

Advertisement: