- 
        1. Re: JBoss PHP -- Apache -- AJP/modjk connector script notpeterj Jun 11, 2008 10:49 AM (in response to macchonmhaighe)Who do you want to run the PHP script? Apache or JBossAS? 
 From my reading of your post, it appears that you went through a lot of trouble to configure JBossAS to run PHP scripts, but now you want Apache to run those scripts instead.
- 
        2. Re: JBoss PHP -- Apache -- AJP/modjk connector script notmacchonmhaighe Jun 11, 2008 11:01 AM (in response to macchonmhaighe)The scripts run on JBoss, 
 But the jboss server is accessed through apache.
 so when you load
 http://myserver:8080/mypage.php
 port 8080 being jboss http port
 the php runs fine.
 My setup requires jboss to be accessed on port 8009 the ajp port, by apache
 i.e. Apache is a public interface.... jboss is local, but accessed by apache
 when I load
 http://mypublicserver/mypage.php
 I get
 script 'mypage.php' not found or unable to stat
- 
        3. Re: JBoss PHP -- Apache -- AJP/modjk connector script notpeterj Jun 11, 2008 11:56 AM (in response to macchonmhaighe)Did you set up the mod_jk config such that *.php requests are forwarded to JBossAS? Try adding the following to the mod-jk.conf file (where xxx is the worker name you defined): 
 JkMount /*.php xxx
- 
        4. Re: JBoss PHP -- Apache -- AJP/modjk connector script notmacchonmhaighe Jun 11, 2008 12:15 PM (in response to macchonmhaighe)I mount everything 
 ..I think
 heres what i have
 JkMount /* loadbalancer
 I'll try with *.php and see what happens
- 
        5. Re: JBoss PHP -- Apache -- AJP/modjk connector script notmacchonmhaighe Jun 11, 2008 12:22 PM (in response to macchonmhaighe)Eureka!!! 
 in httpd.conf
 there is an include conf.d/*.conf
 in conf.d ,as well as mod_jk.conf,
 there is a php.conf, which loads the apache php module and adds a handler for php files
 I remove php.conf
 and the redirect works
 I should have seen this before.....
 this problem has annoyed me for weeks now,
 I had it in two php forums without any reply
 
    