Discussion:
PHP + MySql + Apache + Tomcat
Wayne Bragg
2007-03-03 01:04:03 UTC
Permalink
I have read for hours on the subject but can't quite get a handle on it.


My Configuration:
Windows XP Pro
devside.net Web[Developer] Server Suite 1.94
standard installation
ASP,MYSQL,PHP (not cgi) and Tomcat5
All are working fine.

I want the final configuration to allow PHP, JSP and MYSQL, (forget
about ASP for now, but eventually it also), to all be used in the application or page at the same time.
I understand both Apache or Tomcat can handle the PHP and MYSQLFor my purposes, because of previously written applications I would like to have Apache handle both PHP and MYSQL and pass the jsp on to Tomcat.
I am failing to grasp exactly what I need to do to this setup to make that work. I've tried some of the configurations and including below but must be missing something.

Specifically for the PHP part

<VirtualHost *:80>
DocumentRoot /www/webapps/ROOT
SetEnvIf Request_URI \.php no-jk
SetEnvIf Request_URI \.cgi no-jk
JkMount /* ajp13worker1
</VirtualHost>

What else am I going to have to do if I take this approach?
Is this the best approach?
Is there a simple way to reconfigure what I have?

Thanks in advance for any suggestions.
mike spisak
2007-03-03 15:03:08 UTC
Permalink
hi wayne,

first off, thank you! ...you solved my problem with this post.. i was
trying for a day to compile a new version of mod_jk so i could use
exclusions.. your post made me look into the SetEnvIf operator, and
that solved my problem. ..sweet!

Now for your issue - try putting quotes around the URI itself, I believe
that's your problem with this rule. E.g. :

SetEnvIfNoCase Request_URI "/*.php" no-jk

..also, i may advise you to use the "no case" rule... especially since
some use both extensions for images on windows platform (e.g. GIF/gif)..
the above worked for me on Fedora. Best of luck!

hope this helps,
mike
Post by Wayne Bragg
I have read for hours on the subject but can't quite get a handle on it.
Windows XP Pro
devside.net Web[Developer] Server Suite 1.94
standard installation
ASP,MYSQL,PHP (not cgi) and Tomcat5
All are working fine.
I want the final configuration to allow PHP, JSP and MYSQL, (forget
about ASP for now, but eventually it also), to all be used in the application or page at the same time.
I understand both Apache or Tomcat can handle the PHP and MYSQLFor my purposes, because of previously written applications I would like to have Apache handle both PHP and MYSQL and pass the jsp on to Tomcat.
I am failing to grasp exactly what I need to do to this setup to make that work. I've tried some of the configurations and including below but must be missing something.
Specifically for the PHP part
<VirtualHost *:80>
DocumentRoot /www/webapps/ROOT
SetEnvIf Request_URI \.php no-jk
SetEnvIf Request_URI \.cgi no-jk
JkMount /* ajp13worker1
</VirtualHost>
What else am I going to have to do if I take this approach?
Is this the best approach?
Is there a simple way to reconfigure what I have?
Thanks in advance for any suggestions.
---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org

Continue reading on narkive:
Loading...