terça-feira, 22 de março de 2011

PHP + Oracle Client + Ubuntu 10


1. Baixe o oracle-instantclient11.2-sdk e o oracle-instantclient11.2-basic do site da oracle
2. mv oracle-instantclient* /opt
3. unzip oracle-instantclient11.2-sdk && unzip oracle-instantclient11.2-basic
4. cd instantclient/instantclient_
5. mv libclntsh.so. libclntsh.so && ln -s libclntsh.so libclntsh.so.
6. apt-get install php-pear php5-dev apache2.2-common libapache2-mod-php5 php5
7. echo "/opt/instantclient/instantclient" >> /etc/ld.so.conf && rm /etc/ld.so.cache && ldconfig
8. cd /opt && mkdir php5 && cd php5
9. apt-get source php5
10. cd php5
11. make clean && rm config.cache
12. ./configure --with-oci8=shared,instantclient,/opt/instantclient/instanclient
13. make
14. cp /opt/php5/php5/modules/oci8.so /usr/lib/php5/20060613+lfs/
15. echo "extension=oci8.so" >> /etc/php5/apache2/php.ini
16. echo "extension=oci8.so" >> /etc/php5/cli/php.ini
17. /etc/init.d/apache2 restart
18. Seja feliz!

Nenhum comentário:

Postar um comentário