Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 25

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 Installation and Upgrades

 
 
LinkBack Thread Tools Display Modes
Old 09.06.2004, 08:44   #1 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Location: NZ
Posts: 7
trix is an unknown quantity at this point
Flame Problems with default images

I've installed mambo on a server which is sitting behind a firewall, which has a single external IP address forwarded to the server, on an internal IP. The box has several IPs bound to it, but only one assigned to the Apache server

I initially set up the mambo instance as a subdirectory of the root www directory. This is a windows box, which I've set up with a wAMP package. However, the users naturally wanted to have the mambo site as their default page if typing in the .com address. So, one of the people administering the site made some changes to Apache, to make the mambo site the default one.

Now, the default images do not work on the site, athough images in the template directories do work.

Here's the mambo config data:

Windows NT WWW1 5.0 build 2195
Database Version: 4.0.18-nt
PHP Version: 4.3.6
Web Server: Apache/1.3.29 (Win32) PHP/4.3.6
WebServer to PHP interface: apache
Mambo Open Source Version: 4.5 Stable-1.0.3 [Buddy] 27/02/2004 10:41 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Relevent PHP Settings:
Safe Mode: OFF
Open basedir: f:\appserv
Display Errors: ON
Short Open Tags: ON
File Uploads: ON
Magic Quotes: OFF
Register Globals: ON
Output Buffering: OFF
Session save path: F:\AppServ\php\session
Session auto start: 0
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none
WYSIWYG Editor: htmlarea2
Configuration File: <?php
$mosConfig_editor = 'htmlarea2';
$mosConfig_offline = '0';
$mosConfig_host = 'xxxxxx'
$mosConfig_user = 'xxxxxx'
$mosConfig_password = 'xxxxxx'
$mosConfig_db = 'xxxxxx'
$mosConfig_dbprefix = 'mos_';
$mosConfig_lang = 'english';
$mosConfig_absolute_path = 'f:/appserv/www/mambo';
$mosConfig_live_site = 'http://192.168.3.20';
$mosConfig_sitename = 'Function Centre';
[...]
setlocale (LC_TIME, $mosConfig_locale);
?>


The $mosConfig_absolute_path is correct, the site is located in the path given. However, if I check the apache logs, this is what I'm getting:

130.195.196.201 - - [12/Jun/2004:17:20:54 +1000] "GET /www.functioncentre.com.au/images/stories/mos_asterisk.png HTTP/1.0" 404 347
130.195.196.201 - - [12/Jun/2004:17:20:54 +1000] "GET /www.functioncentre.com.au/images/M_images/rss.png HTTP/1.0" 404 339
130.195.196.201 - - [12/Jun/2004:17:20:54 +1000] "GET /www.functioncentre.com.au/images/stories/mos_asterisk.png HTTP/1.0" 404 347
<etc.....>


The files in the template and administrator directories are NOT having the site url prepended to the GET, and are as they should be:
130.195.196.201 - - [12/Jun/2004:17:25:24 +1000] "GET /administrator/images/mos_logo.png HTTP/1.1" 200 9539

Anyone know where the extra entry could be coming from?

I tried creating a new mambo install on the box (mambo2), with the effect that it started grabbing images from the WRONG mambo instance.

I've configured Apache virtual hosts on the machine in order to try to get it working. Here are the interesting parts of my httpd.conf file:

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports,
#
#Listen 3000
#Listen 12.34.56.78:80

# BindAddress: You can support virtual hosts with this option. This directive

BindAddress 192.168.3.20

Port 80

ServerName http://192.168.3.20

DocumentRoot "F:/AppServ/www"

### Section 3: Virtual Hosts
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot F:/AppServ/www/mambo
ServerName www.functioncentre.com.au
ErrorLog E:/functioncentre/com-error.log
CustomLog E:/functioncentre/com-access.log common
</VirtualHost>

<VirtualHost *:80>
DocumentRoot F:/AppServ/www
ServerName appserv.com.au
</VirtualHost>

<VirtualHost *:80>
DocumentRoot F:/AppServ/www/mambo2
ServerName mambo2.com.au
</VirtualHost>


Do I need to put an entry into the "Listen" area as well? The IP shown is that of the internal network address bound to the network adapter and assigned to the Apache instance. The external address shown in the Apache log above is the correct one.

Is there something in the Firewall DNS (which is naturally re-routing the external IP address) that could be screwing things up? I don't have access to that box. They are using IPCop for firewall/DNS.

Last edited by trix; 12.06.2004 at 11:17. Reason: Found different cause to problem
trix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 12.06.2004, 11:49   #2 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Location: NZ
Posts: 7
trix is an unknown quantity at this point
Default Re: Problems with default images/paths after moving volumes

bump.

Found some possible other reasons for the problem. C'mon, all you apache gurus, I'm sure there is something obvious!!!

trix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 13.06.2004, 10:07   #3 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Location: NZ
Posts: 7
trix is an unknown quantity at this point
Lightbulb Re: Problems with default images/paths after moving volumes

I figured it out, finally.

I needed to change
$mosConfig_live_site = 'http://192.168.3.20';

to the actual site url, since I have 3 different sites using that IP. So it should be
$mosConfig_live_site = 'http://www.functioncentre.com.au';
since that's its VirtualHost address
trix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 06:36.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.