2.2.4 Multi-site installation problem - no download of css or images

Bimble

Joined: 2007-12-17
Posts: 34
Posted: Thu, 2008-05-01 23:20

I have two multi-site installations of Gallery2, 1st 2.2.2, 2nd 2.2.4. on a virtual server, with a uniqu IP address assigned to each.

2.2.2 is running great, hosting 4 sites

2.2.4 won't load css formatting or images, etc.

Webite root doc dir is /var/www/docs/palmababes.com
G2 source dir is /var/www/docs/gallery2

Apache log file gives the following error:

File does not exist: /var/www/docs/palmababes.com/gallery2, referer http://208.109.251.132/main.php

Now i've been messing with config.php all day, but I can't seem to get rid of the "palmababes.com" from the path and so the formatting etc does't load (obviously that path doesn't exist).

config.php settings are:

$gallery->setConfig('galleryBaseUrl', 'http://208.109.251.132/gallery2/');

$gallery->setConfig('baseUri', '208.109.251.132/gallery2/');

Can anyone make any suggestions?

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Fri, 2008-05-02 01:39

we need to know the basics for your 2.2.4 installation ---> FAQ: What information is required when I ask for help in the forums?

are you using open_basedir for your PHP configuration using .htaccess or hardcoded in your httpd.conf file?

is there a particular reason why you're not using a mapped subdomain or top level domain name?

within the <VirtualHost> container with DocumentRoot /var/www/docs/palmababes.com/ is there an php_admin_value open_basedir somewhere?

___________________________________________________
http://scaturan.buriguri.jp/blog/

 
Bimble

Joined: 2007-12-17
Posts: 34
Posted: Fri, 2008-05-02 08:25

sorry, information taken from the working version is:

Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.1.6 apache2handler
Webserver = Apache/2.0.59 (CentOS)
Database = mysqli 5.0.48, lock.system=flock
Toolkits = Ffmpeg, ImageMagick, LinkItemToolkit, NetPBM, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux webserver 2.6.9-023stab043.1-smp #1 SMP Mon Mar 5 16:35:19 MSK 2007 i686
Default theme = secretohome
gettext = enabled
Locale = en_GB
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MRA 5.0 (build 02067); SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
Rows in GalleryAccessMap table = 231
Rows in GalleryAccessSubscriberMap table = 189
Rows in GalleryUser table = 2
Rows in GalleryItem table = 104
Rows in GalleryAlbumItem table = 16
Rows in GalleryCacheMap table = 0

 
Bimble

Joined: 2007-12-17
Posts: 34
Posted: Fri, 2008-05-02 08:42

I haven't swapped over the DNS name for palmababes yet, since there is an existing site that I need to replace without any interruptions

There is no php_admin_value set in <VirtualHost>, contents are as follows:

<VirtualHost 208.109.251.132:80>
DocumentRoot /var/www/docs/palmababes.com
ServerName palmababes.com

<Files ~ "\.(inc|class|txt)$">
Deny from all
</Files>

<Files ~ "^.bash.*">
Deny from all
</Files>

<Files MANIFEST>
Deny from all
</Files>

<DirectoryMatch ".*/.svn/.*">
Deny from all
</DirectoryMatch>

<Directory /var/www/docs/palmababes.com>
AllowOverrid FileInfo Options
</Directory>
</VirtualHost

 
Bimble

Joined: 2007-12-17
Posts: 34
Posted: Fri, 2008-05-02 08:56

Also php.ini open_basedir is not set, and has been left empty

 
Bimble

Joined: 2007-12-17
Posts: 34
Posted: Fri, 2008-05-02 09:18

Hmmm, i thought i had the solution

In config.php i set: $gallery->('galleryBaseUrl', '../gallery2/');

That made the images and css load, but when I go into siteadmin, none of the action button have loaded (so I cannot install/enable modules or themes etc)

The Apache log now gives me:

File does not exist /var/www/docs/palmababes.com/var, referer: http://208.109.251.132/main.php?g2_view=core.SiteAdmin&g2_subView=core.AdminPlugin&sg2_navId=x0a7f590e

 
Bimble

Joined: 2007-12-17
Posts: 34
Posted: Fri, 2008-05-02 09:57

I feel bad for doing it, but I took the cowards way out - started again and went for a single site installation (since that's all I need).