New installation. Could not connect to the database.

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Nos
New Member
New Member
Posts: 9
Joined: Tue Jul 06, 2010 10:21 am

New installation. Could not connect to the database.

Post by Nos »

Hi everyone,
I'm trying to install 1.8 and getting 'Could not connect to the database.' error in step 7, although in step 6 it connects to DB and creates all the tables. When I connect to phpaMyadmin I can see that the tables are added.
As I understand during installation the configuration should be written to config.php but the file is blank. File permission at the moment are set 777
error_log:
[06-Jul-2010 02:08:28] PHP Fatal error:  Attempt to connect to database cms on cms@localhost failed in /home/public_html/lib/adodb.functions.php on line 85

What am I missing?

Linux kernel: 2.6.18
MySQL: 5.0.90
Apache: 2.2.15
PHP: 5.2.13

P.S tried version 1.7.1 same story.
Last edited by Nos on Tue Jul 06, 2010 1:13 pm, edited 1 time in total.
NaN

Re: New installation. Could not connect to the database.

Post by NaN »

Did you install this in the root dir of your webspace?
Some providers does not allow write access to the root dir by scripts even if the file itself is writeable.
So try to install it in a subfolder with at least permission 755.
Nos
New Member
New Member
Posts: 9
Joined: Tue Jul 06, 2010 10:21 am

Re: New installation. Could not connect to the database.

Post by Nos »

thanks for replay.
I was able to set 755 on the folder where CMS I want to install CMS but still etting the same error.
it is not exactly in the root as the path looks like this
/home/user_account/public_html/domain_name.com

I'm going to try to install it into subdomain see if that makes any diference.
Nos
New Member
New Member
Posts: 9
Joined: Tue Jul 06, 2010 10:21 am

Re: New installation. Could not connect to the database.

Post by Nos »

ok tried subdomain and subfolder same problem. Gave permisiosns 775 to subfolder and still no changes.

Any ideas ?
NaN

Re: New installation. Could not connect to the database.

Post by NaN »

Try permission 777 for the directory as well.
What is the name of the subfolder?
Does it contain any weird characters?
Nos
New Member
New Member
Posts: 9
Joined: Tue Jul 06, 2010 10:21 am

Re: New installation. Could not connect to the database.

Post by Nos »

If I apply 777 to the folder I can browse to it and get 'Internal Server Error'
there are no special charecters just letters and numbers.
Nos
New Member
New Member
Posts: 9
Joined: Tue Jul 06, 2010 10:21 am

[Solved] New installation. Could not connect to the database.

Post by Nos »

I found what was wrong.
Appearantly for soem unknown to me it was a DB password problem.
If in the password I use quotes ' " ' the installation will not update config.php file as soon as I removed them everything worked fine.
Is that a 'feature' or is it a bug ?
Locked

Return to “[locked] Installation, Setup and Upgrade”