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 |
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 |
|
Posts: 16504
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!
Posts: 39
Thanks. I am owner & group, webserver runs as www-data. Permissions are 644 (rw,r,r) - unchanged. Virtually all files are the same.
AK
Posts: 16504
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!
Posts: 39
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.
Posts: 16504
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!
Posts: 39
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
Posts: 39
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
Posts: 1642
Nothing new there
--
dakanji.com