• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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