Problems with Apache Tomcat 6

Please report bugs here!

Moderator: Thorsten

Post Reply
Markus-SSI
Posts: 35
Joined: Thu Aug 20, 2009 8:34 am

Problems with Apache Tomcat 6

Post by Markus-SSI »

I have installed my FAQ on an Apache Tomcat 6 Server with Windows Server 2003.

The first problem which appeared was "phpMyFAQ notice [8]: Undefined index: HTTPS in Link.php on line 327".
To fix this I changed /inc/link.php:

Code: Select all

public static function getSystemScheme() {
//$scheme = 'http'.(    ((!PMF_Link::isIISServer()) && isset($_SERVER['HTTPS']))
//|| ((PMF_Link::isIISServer()) && ('on' == strtolower($_SERVER['HTTPS']))) ? 's' : '').'://';
//return $scheme;
return 'http://';
}
I don't understand the problem :roll:

Which further problems could appear?
kind regards
Markus
- phpMyFAQ 2.6.2
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problems with Apache Tomcat 6

Post by Thorsten »

Hi,
Markus-SSI wrote:Which further problems could appear?
I don't know. I never used Tomcat for PHP. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Markus-SSI
Posts: 35
Joined: Thu Aug 20, 2009 8:34 am

Re: Problems with Apache Tomcat 6

Post by Markus-SSI »

That's the problem but we don't want to use two different servers :(

edit: This error occures when starting the FAQ:
"phpMyFAQ notice [8]: Undefined index: QUERY_STRING in Session.php on line 127"
there is the following code:

Code: Select all

str_replace(';', ',', $_SERVER['QUERY_STRING']) . ';' .
I found out that Tomcat doesn't know these server variables and I have to use getQueryString() instead.

edit2: It doesn't work at the moment...

"$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these."
kind regards
Markus
- phpMyFAQ 2.6.2
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problems with Apache Tomcat 6

Post by Thorsten »

Hi,

how do you use PHP in Tomcat? I need to know this to try to setup the same environment.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Markus-SSI
Posts: 35
Joined: Thu Aug 20, 2009 8:34 am

Re: Problems with Apache Tomcat 6

Post by Markus-SSI »

We have used the following method:
http://php-java-bridge.sourceforge.net/pjb/tomcat6.php

Thank you for your willing to help, but I'm using an IIS server with MS SQL now and it works normally parallel to Tomcat.
kind regards
Markus
- phpMyFAQ 2.6.2
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problems with Apache Tomcat 6

Post by Thorsten »

Hi,

okay, thanks for the info.

The stopwords table should be working now, too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply