Php 5.12 / Apache 2.054 / Saprfc 1.4.1 for php 5.1.1
Hi Everybody,
I am trying to install this sap connector.
It's easy but no simple to find the good version running together.
My configuration below :
Windows XP Pro SP2
IIS 5.1 on port 80
Apache 2.054 on port 8080
Php 5.12
Saprfc 1.4.1 for php 5.1.1
I use the binaries distributions for each product.
I have no issue, i hope, to load php_saprfc.dll module: i have no error message when Apache is starting.
The test file index.php is running nice and display the environment to screen, BUT I DON'T FIND SAPRFC MODULE.
If some of you have a idea, thanks for your help.
If its usefull i have no issue to send us my files httpd.conf and php.ini.
Best Regards
Georges FREROT
Hi Everybody,
I want test the connector saprfc with php on two technical environments bellow:
- Windows XP SP2 Professional, IIS 5.1, php 5.11 or 512
- Windows XP SP2 Professional, Apache 2.054, php 5.11 or 512
Windows XP is running on C: .
IIS 5.1 is running on port 80, and Apache 2.054 on port 8080.
I have build a development workspace on H: .
The directory tree has this structure:
H
Apache2054
Apache2
Php511
ext
sessions
includes
Php512
ext
sessions
includes
saprfc141-511
WebDev
Sessions
I have downloaded binaries of Apache 2.054, Php 5.11 and 512 and his Pecl 5.11 and 512 and Saprfc 141 511.
I have uncompressed :
Php 5.11 under H:\php511,
Pecl 5.11 under H:\php511\ext,
Php 5.12 under H:\php512,
Pecl 5.12 under H:\php512\ext,
Apache 2.054 under H:\Apache2054,
SapRfc 1.4.1 5.1.1 under H:\saprfc141-511
My first step is run php on IIS in isapi mode. Its successful.
The command localhost:80//Index.php display correctly echo phpinfo().
My second step is install saprfc requirements:
Copy:
php_saprfc.dll in H:\Php511\ext
php_saprfc.dll in H:\Php512\ext
librfc32.dll up to date in C:\Windows\System32
Verify msvcp60.dll up to date is in C:\Windows\System32.
Modify php.ini:
Include_path = .;H:\Php511\includes;H:\Php511\pear
Extension_dir =H:\Php511\ext
Include_path = .;H:\Php512\includes;H:\Php512\pear
Extension_dir =H:\Php512\ext
Extension=php_mbstring.dll
Extension=php_gd2.dll
Extension= php_saprfc.dll
Extension=php_soap.dll
Extension=php_mysql.dll
To run php 5.11 or php 5.12 I modify the system path and configuration in WebServer
The results with php 5.11 are :
With IIS 5.1 no loading error message, echo phpinfo() running nice, but no display the saprfc module.
With APACHe 2.054 loading error message the same twice for php_saprfc.dll
The results with php 5.12 are :
With IIS 5.1 no loading error message, echo phpinfo() running nice, but no display the saprfc module.
With APACHe 2.054 no loading error message, echo phpinfo() running nice, but no display the saprfc module
If some of you have an idea what is wrong or forget at this point, thanks to help me.
Bests Regards
Georges FREROT
Similar Messages
-
Settings for PHP5 With Apache 2 and SAPRFC in WIndows
Hi,
Can anyone give me the exact version of software that needed for the settings for PHP5 with Apache 2 and SAPRFC in Windows.Thank youIf it's just a test/dev environment you need you can try "<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn?rid=/library/uuid/e50bd86e-0a01-0010-53bd-857585234a6a">scripting in a Box</a>" it also lists the versions and pieces needed for the setup you are looking for.
-
Org.apache.jasper.JasperException: Unable to compile class for JSP
Hi All,
I have been using NetBeans IDE 3.5.1. AndI am trying to execute one JSP file, but it is giving error and i am not able to execute the servlet files also in NetBeans IDE. Can anybody help me out regarding this...
type - Exception report
message - Internal Server Error
description - The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception -
org.apache.jasper.JasperException: Unable to compile class for JSP
C:\Documents and Settings\kiran\.netbeans\3.5\tomcat406_base\work\Tomcat-Internal\localhost\C_3A_5CDocuments+and+Settings_5Ckiran_5CNetBeans+IDE+3.5.1_5Ctomcat406_5Cwebapps_5Cctm\jsp1\AdminClient$jsp.java:5: Package login not found in import.
import login.*;
^
C:\Documents and Settings\kiran\.netbeans\3.5\tomcat406_base\work\Tomcat-Internal\localhost\C_3A_5CDocuments+and+Settings_5Ckiran_5CNetBeans+IDE+3.5.1_5Ctomcat406_5Cwebapps_5Cctm\jsp1\AdminClient$jsp.java:7: Package javax.ejb not found in import.
import javax.ejb.*;
^
2 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.loadJSP(IDEJspServlet.java:442)
at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.loadIfNecessary(IDEJspServlet.java:148)
at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:160)
at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:246)
at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:226)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)The page is located at web/test/test.jsp and the java as below
Is there anything still need to add to test.jsp?
DB.java (web/classes/DB/db.class)
package DB;
import java.sql.*;
public class db
String db_url="jdbc:mysql://localhost:3306/DB";
String db_user="root";
String db_password="123456";
private ResultSet r=null;
static private ResultSet res=null;
int staff_Id=0;
/** Creates a new instance of db */
public int getRetrieveId()
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
catch (Exception E)
E.printStackTrace();
try{
Connection C = DriverManager.getConnection(db_url,db_user,db_password);
Statement S = C.createStatement();
r = S.executeQuery("select max(staff_Id) from staff");
while(r.next()){
staff_Id=r.getInt(1);
S.close();
C.close();
catch(Exception e)
e.printStackTrace();
return staff_Id;
public static boolean getSearch(String s)
String search_db_url="jdbc:mysql://localhost:3306/DB";
String search_db_user="root";
String search_db_password="123456";
String str=null;
boolean result=false;
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
catch (Exception E)
E.printStackTrace();
try{
Connection C = DriverManager.getConnection(search_db_url,search_db_user,search_db_password);
Statement S = C.createStatement();
res = S.executeQuery(s);
while(res.next()){
str=res.getString(1);
if(!str.equals(null))
result=true;
S.close();
C.close();
catch(Exception e)
e.printStackTrace();
return result;
public void setUpdate(String str)
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
catch (Exception E)
E.printStackTrace();
try{
Connection C = DriverManager.getConnection(db_url,db_user,db_password);
Statement S = C.createStatement();
int r = S.executeUpdate(str);
S.close();
C.close();
catch(Exception e)
e.printStackTrace();
} -
CF10 64bit Apache connector (mod_jk.so) does not work for Apache2.4.3 (win64), where can I get a module that works?
I get this error from Apache :
C:\www\Apache2.4\bin>httpd -t
httpd: Syntax error on line 741 of C:/www/Apache2.4/conf/httpd.conf: Syntax error on line 2 of C:/www/Apache2.4/conf/mod_jk.conf: Cannot load C:\\ColdFusion10\\config\\wsconfig\\1\\mod_jk.so into server: The specified procedure could not be found.
I have already tried manually extracting the pre-built mod_jk22.so from the wsconfig.jar with same results.
If I switch to Apache 2.2.22 64bit, it does work. what I need is to be able to run on Apache 2.4.Please check out this link.
http://rob.brooks-bilson.com/index.cfm/2012/2/21/Installing-ColdFusion-10-with-Apache-on-W indows
In this link, they are configuring with Apache 2.2 only.
When we were working colfusion 9 with Linux and apache, we had the same problem, it will work when it connect to Apache 2.0 but not with Apache 2.2 version. -
New Apache sites return 500 Internal Server Error for all CFML requests
This is an ugly one. I think it is an Apache2 - ColdFusion 9 web server connector problem.
I have two Solaris Unix web servers. Each of these servers have a dozen and a half Apache web sites each one connected to one of five ColdFusion instances.
All, but TWO of them are working properly. We created two new Apache web sites and connected them to a new ColdFusion instance. This worked fine on one of our boxes, the development one, but not on the other, production of course.
Whenever we try to request a cfm url from one of these sites on the production server we get a 500 Internal Server Error. HTML pages serve up just fine, and the new instance's Administrator runs fine on its 8305 port. So both Apache and ColdFusion seem to be working independently, but they are not talking to each other. All the other Apache sites connected to the other four ColdFusion instances also work properly.
This has led me to investigate the web server connectors. They have always been tricky and problematic to set up on these boxes. The built in tools have never worked for us on these boxes and we have always had to manually compile the connectors and configure the connections in the web sites..
But, as far as I can tell, all the connection setups are the same between working examples and these non-working sites.
Any insights into what else I should be checking and|or how web server connectors actually work (they have alwasy been mysterious black boxes to me) would be greatly appreciated.
TIA
IanSome more information.
I took a closer look at the logs (I wasn't looking
in the Apache logs before). I found this block for the last attempt to
request a cfm page.
[Tue Nov 23 15:17:17 2010] [notice] jrApache[18177: 60758] could not
open serverstore "/opt/jrun4/lib/wsconfig/www/jrunserver.store": No such
file or directory[Tue Nov 23 15:17:17 2010] [notice] jrApache[18177:
60758] Couldn't initialize from remote server, JRun server(s) probably
down.
What I don't understand is why could it not open that file, it is there
and it has the same permissions as all the other web server connectors.
/opt/jrun4/lib/wsconfig/www
$ ls -al
total 166
drwxr-xr-x 2 root root 512 May 29 13:51 .
drwxr-xr-x 8 root root 512 May 29 13:51 ..
-rw-r--r-- 1 root root 14 May 29 13:51 jrunservers.store
-rwxr-xr-x 1 root root 81528 May 29 13:51 mod_jrun20.so
The following is the 'calpip' connector folder that is working just fine.
/opt/jrun4/lib/wsconfig/calpip
$ ls -al
total 166
drwxr-xr-x 2 root root 512 May 29 13:51 .
drwxr-xr-x 8 root root 512 May 29 13:51 ..
-rw-r--r-- 1 root root 14 May 29 13:51 jrunservers.store
-rwxr-xr-x 1 root root 81528 May 29 13:51 mod_jrun20.so -
Configuring Apache HTTP as an RPS to weblogic for SSO on PSFT
Longback i configured Apache HTTP as an Reverse proxy to weblogic for singlesignon with OAM.
that time i downloaded the Apache HTTP server Plugin from the below link
http://e-docs.bea.com/wls/docs92/plugins/apache.html
but after oracle aquiring the oracle i can not able to find the link for Apache plugin .
can any one please upadte the new url to download APACHE HTTP server pluginIt seems the WebLogic Server plug-ins for Apache web server are available for download only through My Oracle Support (MetaLink)
Check below:
http://www.oracle.com/technology/deploy/security/wls-security/2793.html
The page mentions that the web server plug-in is available for download via Doc ID # 7825156.
You can also have a look at http://www.oracle.com/technology/deploy/security/alerts/alert_cve2008-3257.html
Hope this helps. -
[SOLVED] enable apache ssl to use httpS at will for any vhost
Hi,
I have enabled ssl on my apache install without a problem by including the file httpd-ssl.conf in my http.conf.
I have tested access by trying to access my phpmyadmin install by going to my site: https://example.com/phpmyadmin
However, when trying to use a vhost with https, it doesn't work, I get redirected to a default page (first configured vhost) as https.
If I modify the vhost like this, adding 443:
<VirtualHost *:80 *:443>
</VirtualHost>
I get an error "(Error code: ssl_error_rx_record_too_long)".
If I just add to the vhost config file instead like this:
NameVirtualHost *:80
NameVirtualHost *:443
SSLStrictSNIVHostCheck off
then I still only get the default site, but not my vhost site under ssl.
Any pointers on getting this to work? I want to be able to universally add an "s" to "http" for any vhost whenever I feel like it to encrypt traffic...
Thanks!
EDIT: Here's the solution I found. I disabled ssl on apache by commentingout the httpd-ssl.conf-Include directive in httpd.conf.
Then I installed stunnel and pointed it to my server key and certificate and enabling https connections to forward to port 80 on localhost.
One gotcha to look out for was to put "https: ALL" into the /etc/hosts.allow file as stunnel apparently uses this to decide whether a client can connect.
Last edited by awayand (2011-04-24 12:10:46)Apache is already listening on 443, otherwise it wouldn't work at all when I access https://example.com/phpmyadmin. My problem is that instead of responding by serving the requested vhost, apache serves only the default vhost page. For example, https://x.example.com, https://y.example.com, https://z.example.com all serve my default page at https://example.com instead of the corresponding vhost. Any idea as to what to configure so that apache serves the requested vhost under https?
EDIT: clarification
Last edited by awayand (2011-04-23 04:39:02) -
Hi,
I've used the j2ee agent with a j2ee web app and it is pretty easy to retrieve the username and role of the user with the getUserPrincipal and isUserInRole methods.
I'd like to know if I can grant access to php applications running on a apache server with the apache agent the same way I did for the j2ee app?
thanks for the answersFiling a bug upstream may be useful
-
Saprfc version for php 5.2.1
Hi all
Can anyone pls tell me the version of saprfc to be installed for php version 5.2.1
Thanks in advanceThe lastest version
on the SAPRFC How to
I assume you are using windows. If you are having hassles with getting it to work download a utility called <a href="http://www.dependencywalker.com/">dependency walker</a>.
You can use this to check if the php_saprfc.dll is missing a dependency.
I have been getting a dependency on DRVADODB.DLL on one particular machine and have had no joy resolving that yet.
The other option is to grab a copy of Visual Studio Express Edition 2005 and compile it for yourself. Not for the fainthearted but I believe the force is strong with you.
Hope this is useful,
Nigel -
Saprfc.dll for php 5.4 or upper version
Hai All,
Purpose for interfacing SAP in PHP, Is there any saprfc.dll build for xamp version 1.7.3 or upper, or PHP 5.4 or upper,
Now, I already use saprfc.dll what compatible for PHP 5.2 only..
Thank for answer.
arif diyantoThe lastest version
on the SAPRFC How to
I assume you are using windows. If you are having hassles with getting it to work download a utility called <a href="http://www.dependencywalker.com/">dependency walker</a>.
You can use this to check if the php_saprfc.dll is missing a dependency.
I have been getting a dependency on DRVADODB.DLL on one particular machine and have had no joy resolving that yet.
The other option is to grab a copy of Visual Studio Express Edition 2005 and compile it for yourself. Not for the fainthearted but I believe the force is strong with you.
Hope this is useful,
Nigel -
Saprfc - Php 5.3 - Ecc 6
Hi all
Can anyone pls tell me the version of saprfc to be installed for php version 5.3 in order to work with Sap Ecc 6.0.
Thanks in advanceWell the problem is that unfortunately despite being the language that powers the web, SAP doesn't support PHP very well. It is a problem that I work behind the sceens to try to address and as you are moving to ECC6 if you are calling RFC's with deep structures then the SAPRFC won't work at all because it doesn't work with the new NW RFC SDK.
Oh that a C guru would pick this problem up and write a new RFC driver. Oh that SAP would hire one or Zend or iBuildings or another company that feels strongly about enterprise php.
Oh that I was a C guru and had oooodles of time available.
I digress....
There is no PAM for the SAPRFC because it is an open source solution.
Sorry ... that's all there is to it.
You may get the current version running with the new set up but beware of the new NW REFSDK issues.
Feel free to write a blog to describe how useful you find having PHP as an interface to SAP. The more voices the better.
regards,
Nigel -
Dear all,
I have a problem with OCI8 installation and I would appreciate if you could kindly guide me how to solve this issue.
I started reading the following articles in order to learn how to install the OCI8 package allowing to connect from PHP to oracle
http://www.php.net/manual/en/oci8.installation.php
http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html
Here is my environment description
OS: Fedora Core 17 (X86_64)
Oracle version: Oracle Enterprise Edition 11gR2 (11.2.0.1.0) X86_64
PHP Version: 5.4.13
Apache version: 2.2.23Just a detail: almost every documentation starts by explaining the instant client installation. However, on the same physical machine, before even installing Apache and PHP. Oracle server had been completely installed, that is, both server and client (SQL*Plus, SQL*Loader, . . .). As a result, I omitted this step in the documentation and I continued by installation direcly OCI8 and apparently everything was compiled successfully (no error message).
Problem: OCI8 doesn't show up in phpinfo()
So it seems that there is a problem. I'm going to write down exactly how I proceeded and I would appreciate if you could kindly take a look at these steps and tell whether I made mistake(s)
I started by running as ROOT. As I said the oracle server was already installed on the machine and so all the required environment variables such as LD_LIBRARY_PATH, ORACLE_SID, . . . were already defined in ~/.bash_profile
And if you look at the below output, you can see that for example ORACLE_HOME was detected automatically during the installation (*checking Oracle ORACLE_HOME install directory... /u01/app/oracle/product/11.2.0/db_1*)
# pecl install oci8This gave me the following output
# pecl install oci8
downloading oci8-1.4.9.tgz ...
Starting to download oci8-1.4.9.tgz (169,255 bytes)
.....................................done: 169,255 bytes
10 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] :
building in /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9
running: /var/tmp/oci8/configure --with-oci8
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for Oracle Database OCI8 support... yes, shared
checking PHP version... 5.4.13, ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of long int... 8
checking checking if we're on a 64-bit platform... yes
checking Oracle ORACLE_HOME install directory... /u01/app/oracle/product/11.2.0/db_1
checking ORACLE_HOME library validity... lib
checking Oracle library version compatibility... 11.1
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c -o oci8.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c -fPIC -DPIC -o .libs/oci8.o
/bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_lob.c -o oci8_lob.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_lob.c -fPIC -DPIC -o .libs/oci8_lob.o
/bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_statement.c -o oci8_statement.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_statement.c -fPIC -DPIC -o .libs/oci8_statement.o
/bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_collection.c -o oci8_collection.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_collection.c -fPIC -DPIC -o .libs/oci8_collection.o
/bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_interface.c -o oci8_interface.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_interface.c -fPIC -DPIC -o .libs/oci8_interface.o
/bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -o oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules oci8.lo oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/lib -L/u01/app/oracle/product/11.2.0/db_1/lib -lclntsh
libtool: link: cc -shared -fPIC -DPIC .libs/oci8.o .libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o .libs/oci8_interface.o -L/u01/app/oracle/product/11.2.0/db_1/lib -lclntsh -O2 -Wl,-rpath -Wl,/u01/app/oracle/product/11.2.0/db_1/lib -Wl,-soname -Wl,oci8.so -o .libs/oci8.so
libtool: link: ( cd ".libs" && rm -f "oci8.la" && ln -s "../oci8.la" "oci8.la" )
/bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=install cp ./oci8.la /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
libtool: install: cp ./.libs/oci8.so /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules/oci8.so
libtool: install: cp ./.libs/oci8.lai /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules/oci8.la
libtool: finish: PATH="/usr/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/op
t/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/sbin" ldconfig -n /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
Libraries have been installed in:
/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
Build complete.
Don't forget to run 'make test'.
running: make INSTALL_ROOT="/var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9" install
Installing shared extensions: /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules/
running: find "/var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9" | xargs ls -dils
3679979 4 drwxr-xr-x. 3 root root 4096 Apr 4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9
3680009 4 drwxr-xr-x. 3 root root 4096 Apr 4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr
3680010 4 drwxr-xr-x. 3 root root 4096 Apr 4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64
3680011 4 drwxr-xr-x. 3 root root 4096 Apr 4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php
3680012 4 drwxr-xr-x. 2 root root 4096 Apr 4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules
3680008 596 -rwxr-xr-x. 1 root root 606865 Apr 4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules/oci8.so
Build process completed successfully
Installing '/usr/lib64/php/modules/oci8.so'
install ok: channel://pecl.php.net/oci8-1.4.9
configuration option "php_ini" is not set to php.ini location
You should add "extension=oci8.so" to php.ini
# Once OCI8 was installed I updated the */etc/php.ini* accordingly by adding the following entries
; Dynamic Extensions ;
; If you wish to have an extension loaded automatically, use the following
; syntax:
; extension=modulename.extension
extension=oci8.so
; Paths and Directories ;
; UNIX: "/path1:/path2"
extension_dir="/usr/lib64/php/modules"Also I updated the */etc/sysconfig/httpd* in order to export the specified set of OS environment variables. So I added the following lines at the end of the file
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
LD_LIBRARY_PATH64=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
TNS_ADMIN=/u01/app/oracle/product/11.2.0/db_1/network/admin
NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
ORACLE_SID=db01In order to check that these values are actually taken into account by Apache, I run
# service httpd restartThen I run a PHP script with phpinfo() and in the section Environment the above values were present in particular the LD_LIBRARY_PATH variable.
However, as I said, there is no OCI8 entry in phpinfo() output. I checked the apache log file and I saw that there is a problem
# cat /var/log/httpd/error_log
[Thu Apr 04 16:02:13 2013] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Apr 04 16:02:13 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Apr 04 16:02:13 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 04 16:02:13 2013] [notice] Digest: done
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Apr 04 16:02:13 2013] [warn] mod_wsgi: Compiled for Python/2.7.2.
[Thu Apr 04 16:02:13 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Thu Apr 04 16:02:13 2013] [notice] Apache/2.2.23 (Unix) DAV/2 PHP/5.4.13 mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
#What I understand from the above log is that the shared library libclntsh.so.11.1 cannot be found. Yet I checked and I saw that it is present in LD_LIBRARY_PATH
# locate libclntsh.so
/u01/app/oracle/product/11.2.0/db_1/inventory/Scripts/ext/lib/libclntsh.so.11.1
/u01/app/oracle/product/11.2.0/db_1/inventory/backup/2012-06-25_12-08-41PM/Scripts/ext/lib/libclntsh.so.11.1
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.10.1
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
# So the last line, shows that the specified library exists in */u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1*.
So I don't really seem what is the problem and the more strange thing is that in command line PHP seem to detect my oracle server parameters.
$ php --ri oci8
oci8
OCI8 Support => enabled
Version => 1.4.9
Revision => $Id: e2241cffb72c940cb2ca267b7a6a0ce436de7e5e $
Active Persistent Connections => 0
Active Connections => 0
Oracle Run-time Client Library Version => 11.2.0.1.0
Oracle Version => 11.2
Compile-time ORACLE_HOME => /u01/app/oracle/product/11.2.0/db_1
Libraries Used => -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/lib -L/u01/app/oracle/product/11.2.0/db_1/lib -lclntsh
Temporary Lob support => enabled
Collections support => enabled
Directive => Local Value => Master Value
oci8.max_persistent => -1 => -1
oci8.persistent_timeout => -1 => -1
oci8.ping_interval => 60 => 60
oci8.privileged_connect => Off => Off
oci8.statement_cache_size => 20 => 20
oci8.default_prefetch => 100 => 100
oci8.old_oci_close_semantics => Off => Off
oci8.connection_class => no value => no value
oci8.events => Off => Off
$ I thought maybe there are several different php.ini and the one used within GUI is not the same used in CLI but a search showed that there is just one php.ini file
# locate php.ini
/etc/php.ini
# php -i | grep Configuration
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Configuration
#It is almost 3 days that I'm googling without success to find the solution to this problem.
So, could someone help me, what is the problem? Why the OCI8 module cannot be loaded by PHP and become visible in the phpinfo() output?
Thanks in advance,
Regards,
Dariyooshcj wrote:
Try disabling SELinux. On Oracle Linux you would edit /etc/selinux/config, set SELINUX to DISABLED, and reboot. Also see the setenforce command.Yes !!!!!!!!
Thanks man it worked !! It was SELinux which was blocking the library load. Now I have OCI8 entry in phpinfo(). At the same time as we saw before the PHP in command line could detect OCI8, maybe this means that SELinux doesn't have the same impact in CLI as in GUI. Conclusion, you were totally correct about defining the environment variables in /etc/syscnfig/httpd. The variables were actually defined (with a slight difference in syntax that I will show below), yet SELinux prevented PHP from loading the oracle libraray.
I also wrote a test SQL script (SELECT employee_id FROM employees WHERE department_id = 100) and the result was printed on the screen perfectly.
So for those who may have encountered the same problem with the same environment parameters I'm going to give a summary of how I proceeded in the case where it might be helpful for others.
My environment
OS: Linux Fedora Core 17 (X86_64)
Oracle version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Apache version (httpd): Apache 2.0
PHP version: 5.4.13
Before the installation
Before the installation I disabled SELinux. At the time of writing I'm not an expert of SELinux so I don't know any rule modification in order to modify SELinux policy accordingly allowing to OCI8 module to load oracle libraries. As a result I finally disabled completely the SELinux on my system which may have serious security impacts! This can be done in the following way (being as root)
# vim /etc/selinux/configThe file content is something similar to the following
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted So what I did was that I put a comment at the beginning of the line SELINUX=enforcing and instead I added a new line right after that line which was SELINUX=disabled.
Finally I rebooted the system.
Installation:
- Make sure that all oracle environment variables are defined in ~/.bash_profile of the user who installs OCI8. Otherwise you will have to enter manually the path to $ORACLE_HOME. I tested both ways and each method works pretty well. Yet I find the first one more elegant because it detects automatically everything
- In my case, PHP, Apache and Oracle server were all on the same physical machine, therefore I didn't need to install the Oracle Instant client*. All the required oracle libraries for OCI8 were therefore already available.
- being as ROOT, I run the following (I don't know whether this was mandatory but I prefered to stop httpd before installing OCI8)
# pecl install oci8(On my machine pecl was already there, if not you can install it by using yum)
- Once installation is over, at the end of the installation report in the terminal you will get something like this
>
Build process completed successfully
Installing '/usr/lib64/php/modules/oci8.so'
install ok: channel://pecl.php.net/oci8-1.4.9
configuration option "php_ini" is not set to php.ini location
You should add "extension=oci8.so" to php.ini
>
The two bold lines above shows what you have to put in your php.ini file (on my computer this file is in */etc/php.ini* )
So I updated the php.ini file in the following way:
; Dynamic Extensions ;
; If you wish to have an extension loaded automatically, use the following
; syntax:
; extension=modulename.extension
extension=oci8.so
; Paths and Directories ;
; UNIX: "/path1:/path2"
extension_dir="/usr/lib64/php/modules"Then you have to define the required oracle environment variables for Apache. According to what I read in http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html and in several forums while I was googling for this problem and also based on my own tests, it seems to me that depending on which Apache version you're using, the syntax for declaring the environment variables in */etc/sysconfig/httpd* is not the same.
Here is what I added at the end of the file /etc/sysconfig/httpd
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
TNS_ADMIN=/u01/app/oracle/product/11.2.0/db_1/network/admin
NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
ORACLE_SID=db01I tried to use the export keyword before the variable names but it didn't work for me, yet I saw in other forums that there were people who apparently had used that syntax successfully. So again it is a matter of personal observation. For me using Apache 2.0, only the above syntax works. Also if I use $ in order to expand the environment variables it doesn't work
so for example instead of writing
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/libI had to write explicitly the expanded values myself, that is,
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/libOnce this is done, restart httpd
# service httpd startIf everything went well, normally you will see the OCI8 entry if you run phpinfo() in a test PHP script.
Hope this may help others,
Once again, thanks a lot to cj for his time and his valuable help for solving my problem.
Regards,
Dariyoosh -
If I put a tag like this <?php include ('menu.php'); ?>
in my file, I can only preview it after putting the file on a
server. How can I preview it in my local computer without uploading
the files to a server?
ThanksThe use of virtual or a root reference in the include
function forces Apache
to look at its root folder for the files. It will not find
them there, and
therefore the include will fail. The only way to make this
work would be to
set up virtual hosts, in which case the root of the site is
always the
virtual root you have specified in the httpd.conf file.
Your use of the $_SERVER['DOCUMENT_ROOT'] autoglobal will
work on the
server, but not within DW (I think).
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"polar_bare" <[email protected]> wrote in
message
news:glskk4$dnu$[email protected]..
>I did change the include to: <?php
virtual('/includes/header.inc.php'); ?>
> from: iv id="header">
> <?php include
($_SERVER['DOCUMENT_ROOT']."/includes/header.inc.php");
> ?>
> and it did display in DW, UNTIL... I save the file.
>
> I think it is how my web host is set up. When I changed
the include
> to:<?php
> virtual('/includes/header.inc.php'); ?> and uploaded
the page, I get an
> error:
> Fatal error: Call to undefined function virtual() in
> /home2/user/public_html/indextest.php on line 35.
>
> I searched this forum on how to set the base url for
includes in php and
> came
> up with the method: ?php include
> ($_SERVER['DOCUMENT_ROOT']."/includes/header.inc.php");
?> which works,
> but
> design view does not show it. No Big Deal.
>
>
http://www.jhcarpenter.com
>
>
> -
Apache (httpd) restarts automatically
After booting my mac my webserver is not running. starting apache with the command "sudo apachectl -k start" works as it should. the webserver has been started. but after the command "sudo apachectl -k stop" the following happens: (logfile)
[Fri Aug 10 18:19:42 2012] [notice] caught SIGTERM, shutting down
[Fri Aug 10 18:19:43 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Aug 10 18:19:44 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Aug 10 18:19:44 2012] [notice] Digest: done
[Fri Aug 10 18:19:45 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.3.13 with Suhosin-Patch configured -- resuming normal operations
the apache starts again, and I have access to my document root via http (127.0.0.1 or localhost and as well from other computers via my IP.
why is the apache restarting automatically???? (and by the way: how can i fix the warning in line 2?)
thxHi,
the event description for FMS that you gave mention about the Apache working as expected. A returned value of 0 shows the correct working of the apache httpd service.
When the apache is stopped, as you are observing, how are the streaming services stopped? They will not be stopped as they are not on http. Anyways, one quick workaround (while we investigate why the apache is stopping intermittantly) is to have an external / separate installation of apache away from FMS and use that for all your web service purposes.
How did you confirm about the stoppage ? The task manager or other process explorer shows it coming down ? Can you please check the fms logs if there is anything that is related to apache coming down, being logged?
Thank you ! -
Is this a Dreamweaver or Apache problem?
Or maybe it's a problem with me??
I created a new site and everything proofs fine on my Apache server EXCEPT:
The .css file path for my left nav include file is: /Pyramid/css/pyramid1include.css <link href="/Pyramid/css/pyramid1include.css" rel="stylesheet" type="text/css" />
When I try to preview the include file, the css component isn't picked up. The Apache error log says:
[Wed May 19 16:25:48 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/Website development/Pyramid/css/images, referer: http://localhost/Pyramid/Include/leftnav.html
Somehow Apache thinks the path is: Pyramid/css/images instead of Pyramid/css/pyramid1include.css which has been clearly specified. There is no reference anywhere in the httpd.conf file to "images" and no reference in the stylesheet link to "images".
My .shtml files proof fine and the include file is in it's proper place except that it's messed up due to not having a stylesheet linked to it. I've even specifically linked it's stylesheet to the .shtml file in the head section but it doesn't make any difference.
Apache won't link the include .css, either when proofing the include alone or within an .shtml document. However, it does pick up the .css file for the .shtml document and they're both in the same folder! The one it likes is called: pyramid1.css and the one it changes the path on is called pyramid1include.css
No doubt I have made some greenhorn error, but would really appreciate any help. It's amazing to me that Apache would "invent" a completely non-existing path for that stylesheet! That path is not in my site anywhere.I am also working through the book Dreamweaver CS5 with PHP/Training from the Source. The sample site went ok but now I am trying to set up a simple form for a newsletter sign up. I moved my site to a virtual host, and that seems to be the problem. Dreamweaver indicates I need to set up my testing server, although I have done that in the site definition.
Here is the error message when I click Live View from my index page.
Server Not Found
The page "http://deemsite2010/index.php" was not loaded because Dreamweaver could not find the server "deemsite2010". Please make sure you are connected to the internet and the server name is correct.
Above this message there is a yellow bar that says "An unknown error occurred while discovering dynamically related files. Retry." When I retry it doesn't work.
Here is my code from the vhosts.conf file:
<Directory C:/vhosts>
order Deny,Allow
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/deemsite2010
ServerName deemsite2010
</VirtualHost>
I may have really messed this up as I have done it now mutliple times. Originally when I had the site in the c:xampp/htdocs/ location, I could get the form to work. Now when I try to connect the database, there is no check next to "3. set up the site's testing server" and when I click that link and redo the testing server information, it remains unchecked. Moving on, the attempt to connect fails and I get this message:
HTTP Error Code 404 File Not Found. Here are some possible reasons for the problem:
1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to the http://deemsite2010/_mmServerScripts/MMHTTPDB.php URL. Verify that the URL Prefix maps to the root of the site.
How do I do that?
Thanks.
Maybe you are looking for
-
How to Connect the Apogee Duet with Digitech Vocalizer 3
I have been trying to figure out how to interface my guitar and microphone with the Apogee Duet 2 using the Digitech Vocalizer 3 (voice correction). I would like someone from Apple to verify what I have found, but this is how I finally got it to work
-
Please advise how to get the unit to accept the latest update.
-
Spool file creation sometimes fails ??
wks_srce_sys.unl file is being created by cow_estgen.sql My problem is that when i run the application if wks_srce_sys.unl file is created successfully the application runs successfully.other times when wks_srce_sys.unl file is not created and applic
-
Hi Experts, while trying to refresh the Crystal report from Launchpad, when the parameter screen pops up isn't there a way that i can cancel or close the prompt screen? I only see OK which triggers the refresh again once i click on OK. Can't i just c
-
When a message is being suspended due to an error will the error details be available in the BizTalk table permanently??? If yes kindly provide the table details to help with. Regards, Vivin.