- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- PHP with Oracle problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 10:04 PM
тАО08-14-2005 10:04 PM
PHP with Oracle problem
i have Redhat Enterprise Linux v.4 As,i install on it Apache 1.3.33 and php-4.4 and oracle 10g v.2 ,i run the apache and t is good i try to try a PHP file and it works , but when i try a cript which connect to the oracle DB it gives me the following error
"ocilogon(): _oci_open_server: Error while trying to retrieve text for error ORA-12546 "
i see that it is permission error but i do not know what to do, the apache installed as a root user and it runs as a nobody user, kindly help.
BR,
Fadia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:12 AM
тАО08-15-2005 01:12 AM
Re: PHP with Oracle problem
Do you have oracle client files on this server?
create php file "phpinfo.php" with this code:
And run it. Check if you see OCI support enabled. If not, it seems that you should compile PHP with OCI libraries.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:28 AM
тАО08-15-2005 01:28 AM
Re: PHP with Oracle problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:38 AM
тАО08-15-2005 01:38 AM
Re: PHP with Oracle problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 02:06 AM
тАО08-15-2005 02:06 AM
Re: PHP with Oracle problem
Oracle ships this product with its own port of apache with special extensions made to give database access.
The error code you are getting is pretty generic and pretty much shows that Oracle is not really sure whats wrong, but something is wrong.
General advice here is that if possible its better to use the products that Oracle has integrated instead of what ships with Linux. Their httpd server will use a different port and will co-exist nicely with the apache that ships with the OS.
The PHP script itself probably has an environment variable thats pointing to the wrong apache server or binaries and I'd look at the script carefully and see if there is a problem there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 02:52 AM
тАО08-15-2005 02:52 AM
Re: PHP with Oracle problem
Now that SEP brought up the environment issue.
Check if the ORACLE_HOME environment set in apache, I bet this is the problem.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 05:46 PM
тАО08-16-2005 05:46 PM
Re: PHP with Oracle problem
the ORACL_HOME variable set ccorrectly before i start the apache, i install apache in /opt/apache filder , if you can send me a php script to connect to oracle and i will try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 05:48 PM
тАО08-16-2005 05:48 PM
Re: PHP with Oracle problem
http://il.php.net/manual/en/ref.oci8.php
But according to your error, something is wrong, so if you want to help us help you, it will be very helpfull to attach an output of script :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 06:00 PM
тАО08-16-2005 06:00 PM