Permissions error on local installation

DaFoot

Joined: 2007-04-30
Posts: 15
Posted: Tue, 2012-07-10 15:19

I have a site running quite happily on a live server.

I'm now trying re-create it locally in order to test some changes. I've taken an SQL dump from live and setup a database using same DB user data as live (per config file).

When I try to access the site I get a directory permission error:
Warning: mkdir(): Permission denied in <snip>/frozenbanana/gallery2/modules/core/classes/GalleryPlatform.class on line 582

This is presumably just a Linux and/or Apache permissions thing. The pages not using gallery can be rendered correctly.

Anyone willing to hazard a guess what directory this might be that is not creatable?
I've compared my gallery temp/data directory and it seems to have the same structure as my live site - I even tried changing the whole project to 777 but I still get this permissions error.

I'm guessing it's something about trying to compile styles/templates but I can't remember where this stuff lives (ie where it's trying write to).

Gallery is running in embedded mode if that matters.

LIVE:
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.13 apache2handler
Webserver = Apache
Database = mysqli 5.0.22, lock.system=database
Toolkits = Gd
Acceleration = none, none
Operating system = Linux s15309997.onlinehome-server.info 2.6.25.10-20080703a #1 SMP Thu Jul 3 10:14:15 CEST 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11
Rows in GalleryAccessMap table = 9
Rows in GalleryAccessSubscriberMap table = 73
Rows in GalleryUser table = 2
Rows in GalleryItem table = 73
Rows in GalleryAlbumItem table = 8
Rows in GalleryCacheMap table = 0

Local (site with issues):
Gallery stuff will be the same.
Apache 2.2.2, PHP 5.4.4, Fedora 17 (up to date)

 
DaFoot

Joined: 2007-04-30
Posts: 15
Posted: Tue, 2012-07-10 15:41

Nevermind I found it. A hardcoded dev statement referred to an old location on disk.