Page 1 of 1

Trouble with fresh install

PostPosted: Fri Apr 20, 2007 5:17 pm
Author: Amarth
I did CMOD on the necessary files and ran install.php. I filled in the blanks and got this message:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nimandir_amarth'@'localhost' (using password: YES) in /home/nimandir/public_html/forum/db/mysql4.php on line 54

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/nimandir/public_html/forum/db/mysql4.php on line 571

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/nimandir/public_html/forum/db/mysql4.php on line 572
phpBB : Critical Error

Could not connect to the database


This is what I filled into the blanks on the install page:

Default board language: English
Database Type: MySQL 4.x/5.x
Choose your installation method: Install

Database Server Hostname/DSN: localhost
Your Database Name: nimandir_forum
Database Username: nimandir_amarth
Database Password: **************
Prefix for tables in database: phpbb_

Admin Email Address: *********
Domain Name: imperialthrone.com
Server POrt: 80
Script Path: /forum/
Administrator Username: *********
Administrator password: *********

[*]Don't install Prillian

Re: Trouble with fresh install

PostPosted: Fri Apr 20, 2007 5:20 pm
Author: Amarth
Urg, asked too early, it was the localhost name. I had to use a different one listed on the MySQL database console.

Re: Trouble with fresh install

PostPosted: Fri Apr 20, 2007 5:31 pm
Author: Amarth
Er, got an error message I've never seen before. I just finished the install and deleted the install and Prillian install folders and I got this message:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1245184 bytes) in /home/nimandir/public_html/forum/profilcp/profilcp_privmsg.php on line 1492

Re: Trouble with fresh install

PostPosted: Fri Apr 20, 2007 6:44 pm
Author: Helter
do you have access to php.ini? if so find and increase the allowed amount of mem that a .script can use.

if not,

open your config.php

find

Code: Select all
define('PHPBB_INSTALLED', true);


after, add


Code: Select all
ini_set("memory_limit","32M");

Re: Trouble with fresh install

PostPosted: Fri Apr 20, 2007 6:48 pm
Author: Amarth
I think I may know the reason why I'm getting this new error I mentioned above. I did a search and found a reply to someone with a similar error and I went to edit the config.php file. When I went to edit it...there was nothing in it. I checked the filesize and it is just a blank file with nothing in it. I redownloaded the files and it still shows config.php filesize as "0b". I'm using 7-Zip if that matters.

Re: Trouble with fresh install

PostPosted: Fri Apr 20, 2007 9:01 pm
Author: Frost
Config.php is originally empty, it's populated by your board when you do an installation.

You have two options when installing

1. If config is chmod'd like it's supposed to be before you start the install, your board can/will write the necessary code for you and you shouldn't have to mess with it again.

2. If it is not chmod'd your board would have asked you to download the file yourself and upload it, or provide needed info to finish it.

So depending on what you are using as an ftp program (if any) there is a chance that when you looked at your config it showed empty because the program hadn't refreshed since the upload. This would make it appear to be empty and cause you to try reuploading a fresh one.

If you did that, then you will either have to make the config file yourself, or reinstall the whole thing.
I think if there were no config file to begin with, that memory error would have been the least of your worries. You wouldn't have even been able to connect to the site what-so-ever.

Related- HelterSkelter already told you what the second error you had meant. The error is because you ran out of memory and it needs to be raised. (You probably had the default of 8mb)