|
Blogs
|
|
|
I like PHP. It is easy, powerfull and also open source. You can find plenty of applications written with php and you can use them freely. There are lots of web servers on which you can run PHP codes such as Apache, IIS etc.
I was thinking about adding SAP Netweaver Platform to this list. After I started to make some experiments, I found PHP/Java Bridge which combines PHP and Java together. You can use Java codes in PHP and also you can run PHP codes on your J2EE engine directly. Many thanks to developers who made this great job.
I downloaded PHP/Java Bridge and deployed to SAP Netweaver. Yes, It worked.
Let's go through the steps to configure PHP/JavaBridge on SAP Netweaver :
- Download php/Java bridge from http://sourceforge.net/project/showfiles.php?group_id=117793
- Extract files find JavaBridge.war rename it to JavaBridge.zip and extract it to a new folder
- Open NWDS and create new Web Application Project JavaBridge
- Right click on project name and choose import file
- Select your folder previously extracted from JavaBridge.war and select all files
- Right Click on project name and click Build Web Arcieve
- Create a new Enterprise Application Project “JavaBridgeEAR”
- Right click on project name and select add modules. Then select project “JavaBridge”
- Right click on project name and select Build Application Archieve
- Right click on JavaBridgeEAR.ear and select Deploy to J2EE Engine
- Open http://localhost:50000/JavaBridge/ and see the result :

- Execute "Test and general php info" and see the PHP configuration details

As you see it is really easy to run PHP on Netweaver Platform. You can integrate many useful PHP applications and use them on your Portal.
In this blog, I only focused on running PHP on SAP J2EE engine. In the next blogs, I will show how you can integrate PHP applications and see the magic on Portal.
Abdulbasit Gulsen
is working as SAP Technical Consultant since 2000 and experienced in ERP,CRM and Netweaver platforms.

Comment on this weblog
Great!
2008-02-29 06:06:30 Brijesh Verma
Business Card
[Reply]
Hi Abdulbasit,
Great Blog, We never thought that we can use PHP applications over Netweaver. We intend to use Wiki (WikiPedia in PHP)on our KM and were looking for some tool to deploy, This was great discovery.
We followed your steps religiously , however at the end we got following error. We are on Netweaver 7.0.
Please help.
Application error occurred during request processing.
Details: Error [javax.servlet.ServletException: An IO exception occured. Probably php was not installed as "/usr/bin/php-cgi" or "c:/php/php-cgi.exe"
or "/sapmnt/ECU/JC01/j2ee/cluster/server0/apps/sap.com/JavaBridgeEAR/servlet_jsp/JavaBridge/root/WEB-INF/cgi/php-cgi-sparcv9-sunos[.sh]|[.exe]".
Please see "php_exec" in your WEB-INF/web.xml and WEB-INF/cgi/README for details.], with root cause [java.io.IOException: php-cgi: not found].
Exception id: [00144F730D74006C000000D4000044B20004474BDAE6452C]
Please also suggest how do we deploy the mediawiki.tar (a Wiki application in PHP)
Thanks
Brijesh
-
You are not authorized to view the content of the requested directory.
2008-01-28 01:18:54 Norman Schröder
Business Card
[Reply]
Hello,
I had the same problem.
So here is how I was able to fix it:
- open the folder you've previously extracted from JavaBridge.war
- copy all files and folders except "WEB-INF" to "C:\usr\sap\<SID>\JC<Instance-Number>\j2ee\cluster\server0\apps\sap.com\JavaBridgeEAR\servlet_jsp\JavaBridge\root"
- try to open the page again
For me it's working now.
Hope it helps.
Regards,
Norman Schröder
Exception Occured
2007-10-25 11:25:40 Esteban Stricker
Business Card
[Reply]
Hi,
Great blog. Thank you for the explanation, but i still have a problem with in the JavaBridge EAR in the netweaver platform.
Error [javax.servlet.ServletException: An IO exception occured. Probably php was not installed as "/usr/bin/php-cgi" or "c:/php/php-cgi.exe"
or "/usr/sap/DP1/JC01/j2ee/cluster/server0/apps/sap.com/JavaBridgeEAR/servlet_jsp/JavaBridge/root/WEB-INF/cgi/php-cgi-ppc64-aix[.sh]|[.exe]".
Please see "php_exec" in your WEB-INF/web.xml and WEB-INF/cgi/README for details.], with root cause [java.io.IOException: php-cgi: not found].
Can you help me? Where I can find the file php-cgi-ppc64-aix[.sh]|[.exe]".
Thanks in advance
Exception Occured
2008-02-29 05:39:15 Brijesh Verma
Business Card
[Reply]
Hi Estaban,
Did you resolve this error. We also have same error with our diployment. Further, we want to deploy MediaWiki.tar ( A wiki in PHP) can you please guide us.
Thanks in anticipation.
Brijesh
Really nice -:)
2007-07-23 07:09:59 Alvaro Tejada Galindo
Business Card
[Reply]
Hi Abdul:
Really nice blog...I wasn't aware of that PHP/Java bridge...I'm not a Java lover but sure I'm a PHP lover -;)
Looking forward for more blogs and complex examples...
Greetings,
Blag.
Really nice -:)
2007-07-23 07:34:06 Abdulbasit Gulsen
Business Card
[Reply]
Hi Blag,
Tnaks for your comments. I love Java but for some cases PHP is exteremely easier than Java. However, I'm not sure about production performance. For the time being; it will go like an experimental work. After some improvements, I will try to test for production performance.
I will write new blogs soon for integration examples. After this integration scenarios, there will be a SAP specific add-ons and I'm planning to put this as community project for PHP lovers :)
Regards
Abdul.
Great Blog......
2007-07-23 04:17:24 Kai Chalker
Business Card
[Reply]
Hi,
Great blog and something I have been looking to use for a long time. We have a number of applications that have been developed in PHP and will be interested in your future blogs.
Everything worked up to running the URL with the JavaBridge and then recieved an error saying "You are not authorized to view the content...."
Any ideas????
-
Great Blog......
2008-08-22 01:18:52 Kai Chalker
Business Card
[Reply]
Hi,
Great, after recompiling it a few times and looking at the previous comments I have been able to get this to work now. Look forward to any more advances in this area.
Great Blog, many thanks
Kai
|
Showing messages 1 through 14 of 14.
|
|