We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Does PHP work with WebLogic

M_SYED
M_SYED asked
on
Medium Priority
399 Views
Last Modified: 2012-06-27
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
Comment
Watch Question

Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.