This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problem with Tomcat + PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with Tomcat + PHP" Watch "Problem with Tomcat + PHP" New topic

Problem with Tomcat + PHP

Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
I hope this is the right forum for such a question.

My OS is Windows XP. I am trying to run PHP over Tomcat.

I used the following guide:

In the installation I used the latest PHP, Tomcat.

I've also installed the latest MySql and phpMyAdmin

Some things do work. I was able to get the phpinfo() page working, and also some simple scripts that connect MySql tables.

What that does not work is phpMyAdmin. I can get the login page (the authorization type is "cookie"), but when I enter the MySql user + password, and hit the submit, I am getting a blank page.
I tried to google for this problem, and it seems like a lot of people have had some problem like that with phpMyAdmin (that is, getting a blank page while trying to login).
A few such links are:

These links did not help me though. I think this is because I am on Windows XP, not Windows 7.

One thing I have noticed is that when I am getting that blank page, the Tomcat terminal receives all the html that I was supposed to get into my browser. As if the bug is that something tells Tomcat to send the html to the standard output instead of to the browser.
On the other hand, it might be doing this since it thinks it's some kind of an error output. I don't know since I cannot see the beginning of the html (it's too long).

Any idea what might solve this problem?

Thanks in advance!

We must know, we will know. -- David Hilbert
I agree. Here's the link:
subject: Problem with Tomcat + PHP
Similar Threads
error when I try to retrieve data stored in session variable
connecting JSP(resin) to MYSQL with out root
Cancelling a file download - "java.lang.IllegalStateException: getOutputStream() ..."
Compression Filter (Head First Servlets)
Could not able to run first script