• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • Last Modified:

Does PHP work with WebLogic

Hi Experts,

I just wanted to know if WebLogic supports PHP or vice versa.
I am planning to implement a bulletin board using a software called vBulletin.
vBulletin is built on PHP and we have Weblogic as our App server.

Loking forward to your responses.

Best Regards
0
M_SYED
Asked:
M_SYED
1 Solution
 
dr_dedoCommented:
have a look at this site
http://www.oreillynet.com/pub/wlg/3772


this is a user comment from that site:

Configuring WebLogic Server with PHP
2003-10-16 14:22:18  jpembert [Reply | View]

After reading this, I was inspired to configure WebLogic Server with PHP as a CGI extension. After a little mucking, here's what I came up with:

Download the PHP package from www.php.net and extract it. Follow the instructions to install it up until the part about configuring your server with PHP.

Add the following to WEB-INF/web.xml in your Application:
-----------
<servlet>
<servlet-name>PHPCGIServlet</servlet-name>
<servlet-class>weblogic.servlet.CGIServlet</servlet-class>
<init-param>
<param-name>cgiDir</param-name>
<param-value>
C:\path\to\directory\with\php\scripts
</param-value>
</init-param>
<init-param>
<param-name>*.php</param-name>
<param-value>C:\path\to\php.exe</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>PHPCGIServlet</servlet-name>
<url-pattern>/php/*</url-pattern>
</servlet-mapping>
-----------

In your php.ini file, search for "cgi.force_redirect". You need to uncomment this line and set it to 0:

cgi.force_redirect=0

Once this is done, any .php files in the 'cgiDir' directory will be available at http://yourserver:port/php/



I do hope this would help
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now