Upgrading to 2.3.1 - won't find config.php

Austin Kinsella

Joined: 2007-08-05
Posts: 39
Posted: Tue, 2011-01-11 23:07


Gallery version (not just "2"):2.3.1
PHP version (e.g. 5.1.6): PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 2.2.14 (Ubuntu)
Database (e.g. MySql 5.0.32): Ver 14.14 Distrib 5.1.41
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Ubuntu 10.04
Browser (e.g. Firefox 2.0):

Ubuntu 10.04, upgraded today, doesn't like Gallery 2.3, so downloaded 2.3.1 files on top of 2.3 files. When browse to gallery (http://www.carlowphoto.ie/gallery/) the upgrader fires OK, but reports "Missing or invalid config.php. config.php is in the gallery base where it usually is.

Suggestions?

AK

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-01-11 23:16

Check permissions on the file. The user the webserver is being run as needs at the very least READ access to that file.
____________________________________________
Like Gallery? Like the support? Donate now!

 
Austin Kinsella

Joined: 2007-08-05
Posts: 39
Posted: Tue, 2011-01-11 23:38

Thanks. I am owner & group, webserver runs as www-data. Permissions are 644 (rw,r,r) - unchanged. Virtually all files are the same.

AK

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-01-12 00:03

Well there is something preventing Apache from reading it. Check your server's access and error logs. Another thought, it's there, but corrupt, empty or something else is wrong.

Please tell me your G2 install is NOT from the Ubuntu repositories :)
____________________________________________
Like Gallery? Like the support? Donate now!

 
Austin Kinsella

Joined: 2007-08-05
Posts: 39
Posted: Wed, 2011-01-12 00:27

No, it was downloaded from Menalto. Last update was to 2.3, probably Dec '09; since then I've added a couple of modules.

When I refresh the update page in the browser I get "PHP Warning: mysqli_real_connect() [<a href='function.mysqli-real-connect'>function.mysqli-real-connect</a>]: (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /var/www/cps/gallery/lib/adodb/drivers/adodb-mysqli.inc.php on line 109" in Apache's error log.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-01-12 00:40

Yeah, your config.php file is messed up. That's what contains the db connection info. I bet there's a syntax error or something else is wrong with the file.

____________________________________________
Like Gallery? Like the support? Donate now!

 
Austin Kinsella

Joined: 2007-08-05
Posts: 39
Posted: Wed, 2011-01-12 01:04

I think mysql is messed up - I gave a connect command manually using the parameters from config.php (mysql --user=xxx --password=yyy gallerydb) and got the same error. The mysql server wasn't running, so I tried restarting and it failed, so I'll have to talk to the admin.

Thanks.

AK

 
Austin Kinsella

Joined: 2007-08-05
Posts: 39
Posted: Wed, 2011-01-12 10:50

Problem solved! Admin found a conflict in some security settings that was preventing mysql from starting. Once that was cleared the 2.3.1 update process ran successfully, so it was an Ubuntu rather than a Gallery problem. Thanks for pointing me in the right direction.

AK

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2011-01-12 14:24
Austin Kinsella wrote:
Problem solved! ... it was an Ubuntu rather than a Gallery problem.

Nothing new there :)
--
dakanji.com