Forum Webscript.Ru
Программирование => PHP => Тема начата: dilnab от 10 Апреля 2004, 11:28:50
-
Короче поставил RedHat 9, Apache 2.0.48, PHP 4.3.4, Oracle 9.0.1.5. ПХП-скрипт с функциями OCI запускается (идет выборка данных из базы и вывод их на экран). ВЕБ-браузером также могу запускать ПХП-скрипты. Но как только начинаю использовать в этих скриптах функции OCI - веб браузер выдает
The page cannot be displayed
The page you are looking for is currently unavailable ....
Все это работает на RedHat 8
В чем может быть проблема?
-
Выяснился еще один момент. В логе apache error_log возникает ошибка
[notice] child pid 656 exit signal Segmentation fault (11)
при попытка загрузки вункций OCI в ПХП-скрипте.
-
there are error-messages like these in the error_log:
child pid 22297 exit signal Segmentation fault (11)
*** glibc detected *** double free or corruption (out): 0x00000000019f4730 ***
*** glibc detected *** double free or corruption (!prev): 0x0000000001111d90 ***
*** glibc detected *** corrupted double-linked list: 0x0000000001111d50 ***
using php 4.4.x with oracle 10.x is impossible, until you do the following:
1. download latest oci8-package from http://pecl.php.net/package/oci8
2. extract package somewhere
3. go to php-4.4.x-source directory
4. rm -rf ext/oci8
5. cp extraceted oci8-1.2.x directory to/as ext/oci8
6. make distclean
7. ./buildconf --force
8. ./.configure (with the options you need)
9. make
10. only for x86_64:
create pear-install.ini:
-----------------------------------------------
[PHP]
memory_limit = 128M ; Maximum amount of memory a script may consume (8MB)
------------------------------------------------
11. edit Makefile:
replace:
PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
with:
PEAR_INSTALL_FLAGS = -cpear-install.ini -dshort_open_tag=0 -dsafe_mode=0
12. make install
have fun!
oracle connections will work now!