BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

{bb} Re: More BBmap purple on submaps



I put my mail below (since our mails just go out in the same time :-).
I think my 2nd point of my mail is what you find : the PHP version
(It seems that if you want to use HTTPS, you need PHP 4.3.0 at least).

So it is not a problem of BBMAP, but of PHP...

Well, I am happy for you.
Ok, not so happy, since you will have probably to start from the source
of PHP tarball to make a new version since RedHat will
certainly make no update for AS 2.1...
Or goes on Whitebox...

Frederic


----- Original Message ----- From: "Brégier Frédéric" <frederic.bregier@noos.fr>
To: <bb@bb4.com>
Sent: Friday, October 22, 2004 8:27 PM
Subject: Re: {bb} BBmap purple on submaps



Since you can acces the link using your user and password,
and you can access the link without it, both from your PC,
the three next idea that I have are the following :

1) check if from the web-server itself, if you can really
access to the web page. For instance, you can have
a dns problem (not defined) in your web server
(bb.test.org). To do that, log in with the "bb4" system account,
launch if you can netscape or mozilla and go through
the web address again. You can also try a ping from
the server to itself (using the base web address).
Both as the bb4 user so that you really can check
if it resolves correctly the web address.
If not, then you've got it : fix the dns setting on your bb4 server
or something related.

2) Possibly a bug in PHP 4.1 (as you use php-4.1.2-2.1.8).
Try to upgrade a more recent version (for instance for
RH AS3, the current version is 4.3.2-14 as in
ftp://updates.redhat.com/enterprise/3AS/en/os/SRPMS/php-4.3.2-14.ent.src.rpm)
I look at RH AS2.1, it seems it is no more updated (as usual with RH when
a new release goes out, all previous versions are out of updating process).
You can perhaps go from source tarball.

I found somewhere that PHP accept SSL (HTTPS) from 4.3.0
and of course if compiled with openssl support.

3) Do you have openssl installed on your RedHat server,
and is PHP compiled with this support ?
You can take a look on a phpinfo.php (generally
given with a standard distribution of PHP)
which shows the status of PHP and its compiled module.

So, to resume, first check if from the server itself
you can correctly resolve the https://adress,
second check the PHP configuration itself,
first on the ssl part, second considering upgrading
PHP.

I hope this can bring you to the keys !
Frederic



----- Original Message ----- From: "Bill Richardson" <ng1p@yahoo.com>
To: <frederic.bregier@noos.fr>
Sent: Friday, October 22, 2004 7:39 PM
Subject: More BBmap purple on submaps



Frederic,

Here is a little more info:

Today I loaded Whitebox Linux "Same as Redhat AS 3.0"
but free and setup bb1.9c and bbgen and then loaded
bbmap.

1.) At first I setup apache for just http and tried
bbmap and all worked great "no problems"

2.) Next I setup apache for just https. I then changed
the right scripts from http to https and again all
worked fine. "no problems"

3.) Then I turned on basic auth and setup a htaccess
file in the root of the web server. This made the top
map go purple as expected. After adding "userpasswd =
user:password" to the globalmap.cfg all worked fine
"no prolems"

I setup the Whitebox system identical to the Redhat
AS 2.1 system. With that in mind I copied all bbmap
files from the Whitebox Linux to the Redhat AS 2.1
just incase I made a typo on the install of the Redhat
AS 2.1 install.

After copying a known good install of bbmap over to
the Redhat AS 2.1 things still didnt work? All
permissions of all files and directories are the same
as on the Whitebox Linux system.

The big difference is with the version of Apache and
PHP.
The Redhat AS 2.1 uses:
php-4.1.2-2.1.8
apache-1.3.27-8.ent

The Whitebox Linux uses:
php-4.3.2-14.ent
apache-2.0.46-40.ent.WB1

I wonder if php-4.1.2-2.1.8 on the Redhat AS 2.1
install is cousing the problem? Does this make any
sense at all? Does bbmap need php-4.3 or higher for
the submap feature to work?

Thanks for your help

--- Bill Richardson <ng1p@yahoo.com> wrote:

Frederic,

Still no luck...
I made the https change to initiatesubmap.php and
added the "userpasswd = user:password" to the
globalmap.cfg and all the *.map that link to a
submap
and still get the same outcome.

Next I logged in as the user that I set as
"userpasswd" and ran:

"https://bb.test.org/bb/bbmap/statussubmap.php?submap=test2";
And it worked fine.

Finally I removed all .htaccess files from my BB
server and all the user/password VARs from *.map
files
and left just "userpasswd =" in the globalmap.cfg.
Now
even with no basic auth I still get the same
problem.
It doesnt seem to be a login problem. I also set the
permissions on the *.map files to 777 just to make
sure and still no luck?

I reloaded everything step by step on another Redhat
AS 2.1 box and I get the same problem.

This sure is a strange one? Any more thoughts?
Thanks
again for your help.

Bill


--- Brégier Frédéric <frederic.bregier@noos.fr> wrote:

> First, if you use "https", you should change both
in
> initiate.php and initiatesubmap.php the line where
> it looks
> at the submap :
> $listmap = file( "http://"; . $access .
> $_SERVER['SERVER_NAME'] . "/" . $bbwebmap
> . "/statussubmap.php?submap=$submapname" );
>
> changing http:// in https://
>
> Second, if there is a user/password, then you need
> to put it $acess variable
> (To do that, change it in the userpasswd variable
in
> globalmap.cfg or
> specifically in your config file.map for your
> current map view,
> or through the web interface in the ).
> I had another user who uses https and his problem
> was the user/password to
> access to the page.
> Since you access it through your IE, I suppose you
> already have enter your
> user/password in a previous
> page before, so the web server doesn't ask you
> again.
> Try to put in your configuration file *.map the
> variable "userpasswd" set to
> "user:password".
> A good idea would be to make one user/password
> allowed to see all bbmaps but you
> keep it of course
> secret (since it is PHP noone will see it except
> those who can read php files on
> the server directly).
> You can limit this access to the bbmap directories
> (and subdirectories).
>
> Hoping this will solve your problem.
>
> Frederic
>
>
>
> ----- Original Message ----- > From: "Bill Richardson" <ng1p@yahoo.com>
> To: <bb@bb4.com>
> Sent: Thursday, October 21, 2004 5:27 PM
> Subject: {bb} BBmap purple on submaps
>
>
> >I have installed bbmap 2.4 on a Redhat AS 2.1
with
> the
> > following installed:
> > apache-1.3.27-8.ent
> > bb1.9c
> > bbgen 3.2
> >
> >
> > All is working fine but the submap feature. All
I
> get
> > is purple on the top page even when the subpage
is
> > green or any color.
> >
> > Doing the debuging in PHP I find that since I'm
> > running "https" I needed to change http to https
> in
> > the initiate.php. That took care of all warnings
> but
> > the following:
> >
> > //cut
> > Warning:
> >
>


file("https://bb.test.org/bb/bbmap/statussubmap.php?submap=test2";)
> > - No such file or directory in
> > /bb19c/www/bbmap-2.4/initiate.php on line 190
> > //cut
> >
> > When I try the above link in IE 6.0 I see:
> > //cut
> > router.test.org
> > 6
> >
> >
> >
> >
> >
> > router.test.org
> > //cut
> > The "statussubmap.php?submap=" seems to work
fine.
> Any
> > ideas???
> >
> > Thanks for your help and a great tool!
> > Bill Richardson




__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail



--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index