Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP5 (5.1.1) + Apache 2 + oracle [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Soef
n00b
n00b


Joined: 17 Mar 2005
Posts: 41

PostPosted: Fri Mar 03, 2006 3:15 pm    Post subject: PHP5 (5.1.1) + Apache 2 + oracle [SOLVED] Reply with quote

Hi folks,

I've tried a dozen ways to install php5 with oracle (oci8) ability:
- PEAR
- PECL
- oci8
- oci8-instant-client

I've installed PHP5 with oci8 support, instant client support, the instant client its self... all with no succes!! I think I've seen whole the web about this, but i can't figure out how to get it work!!

Apache keeps telling me this:
Code:

 * Apache2 has detected a syntax error in your configuration files:
Syntax error on line 6 of /etc/apache2/modules.d/70_mod_php5.conf:
Cannot load /usr/lib/apache2/modules/libphp5.so into server: libnnz10.so: cannot open shared object file: No such file or directory


Please help me or tell me where to find THE guide...

------------------------- EDIT ------------------------------------------

I tried some things more and here is the thing you'll have to do to install PHP5 with apache2 and oci functions (oracle, oci8)


  • Make sure you have this use flags set: "dba cli pcre xml zlib oci8-instant-client"
  • Unmask PHP (5.1.1) by placing "dev-lang/php ~x86" in /etc/portage/package.keywords
  • Unmask oracle-instantclient-basic (10.2.0.1-r1) by placing "dev-db/oracle-instantclient-basic ~x86"
  • Download oracle files from "http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html" (You have to make an account and login, in order to download the packages:

    • instantclient-basic-linux32-10.2.0.1-20050713.zip
    • instantclient-sdk-linux32-10.2.0.1-20050713.zip

  • Place the downloaded packages in "/usr/portage/distfiles"
  • "emerge apache dev-lang/php5" (If you done right, the build for the instantclient will be selected automaticly.
  • Configure your "/etc/conf.d/apache2" to make sure you have "-D PHP5" in your "APACHE_OPTS"


After this, you will be able to use oci functions with apache and with command line PHP-ing...

Good luck!!
_________________
Bleeding edge is our downfall...


Last edited by Soef on Fri Mar 03, 2006 7:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Soef
n00b
n00b


Joined: 17 Mar 2005
Posts: 41

PostPosted: Fri Mar 03, 2006 7:31 pm    Post subject: Reply with quote

Edited post, I hope someone is helped by the sollution.
_________________
Bleeding edge is our downfall...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum