MyBB Community Forums

Full Version: blank page problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hiho. I'd like to install MyBB at server hosted by myself - for tests. I'm using Mandrakelinux 10.1 + Apache 1.3.31 (@ distro CD) + PHP 4.3.8 (same) + MySQL 4.1.9 (RPMs from mysql.org). I've done following:
1. Copied files of MyBB to /var/www/html/mybb/
2. Made sure that httpd and mysqld is running, made a new database and called it "mybb", and made sure I'm able to access it.
3. Started Opera and gone to http://localhost/mybb/
Quote:Warning: main(./inc/db_.php): failed to open stream: No such file or directory in /var/www/html/mybb/global.php on line 70

Fatal error: main(): Failed opening required './inc/db_.php' (include_path='.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/mybb/global.php on line 70
4. Stupid me.
5. Gone to http://localhost/mybb/install/
6. Clicked 'Next Step'.
7. Clicked 'Next Step'.
8. Edited 'Database host' from 'localhost' to '127.0.0.1'.
9. User was 'root' - well.
10. Wrote a password.
11. Checked database name.
12. Clicked 'Next Step'
13 - an unlucky number, isn't it? Nothing have I seen at the Opera's panel. Simply a cute, white page. Waiting. Still nothing. Also Opera doesn't say it's loading anything.
14. Any table like "mybb_threads" doesn't exist here in my database, mysql client says...

I have repeated this procedure many times, but always the same. I have also changed my password to database. Nothing.

I have not installed MyBB yet before, I'm just an admin of one, owned by my freind Shy

Anybody?
Hi bryn,

About the table "myyb_threads" doesn't exist, check this thread out here:
http://www.mybboard.com/community/showth...34#pid9134
I mean the installation even doesn't start, so any table can't be added. Thanks anyway Smile

BTW: in install/index.php I have edited (in create_tables(); function declaration)
function create_tables()
{
[b]print("create_tables(); starts...");	[/b]
global $output, $myver, $dbinfo;
	
	if(!file_exists("../inc/db_".$dbinfo['engine'].".php")) {
		$output->print_error("<p>Sorry but you have selected an invalid database engine, please go back and try again.</p>");
	} else {
[b]print("file exists, cool one!");[/b]
}
	// Attempt to connect to the db
	require "../inc/db_".$dbinfo['engine'].".php";
	$db = new bbDB;
	$db->error_reporting = 0;
	$connection = $db->connect($dbinfo['host'], $dbinfo['username'], $dbinfo['password']);
	[b]if(!$connection)
	{
		print("!connection");	} else {
	print("looks like the connection is ok");
	}[/b]
...
it shows
Quote:create_tables(); starts...file exists, cool one!
I can't see "!connection" nor "looks like the connection is ok" - so what the hell the connection is? Sad
Are you sure you installed the php_mysql RPM or compiled PHP with support for MySQL?
I'm sure I did... not.

I have deleted every RPM including "mysql" string in its name, installed new version of mysql... and forgot to install php-mysql Shy

Thanks for help Smile