Định cấu hình PHP với OCI8Xem lại phần yêu cầu trước khi định cấu hình OCI8. Show
Trước khi bắt đầu máy chủ web, OCI8 thường yêu cầu một số biến môi trường Oracle (xem bên dưới) để định vị các thư viện, chỉ vào các tệp cấu hình và đặt một số thuộc tính cơ bản như bộ ký tự được sử dụng bởi các thư viện Oracle. Các biến phải được đặt trước khi bất kỳ quá trình PHP bắt đầu. Php nhị phân phải liên kết với cùng một phiên bản chính của thư viện Oracle như được cấu hình. Ví dụ: nếu bạn xây dựng OCI8 với các thư viện Oracle 19, thì PHP cũng nên được triển khai và chạy với các thư viện Oracle 19. Các ứng dụng PHP có thể kết nối với các phiên bản khác của cơ sở dữ liệu Oracle, vì Oracle có khả năng tương thích phiên bản chéo máy khách-máy khách. Cài đặt OCI8 từ PECL bằng lệnh PECLTiện ích mở rộng OCI8 có thể được thêm vào cài đặt PHP hiện có bằng cách sử dụng kho lưu trữ »& nbsp; PECL.
Cài đặt OCI8 từ PECL bằng PhpizeĐể cài đặt OCI8 trên cài đặt PHP hiện có khi lệnh $ export PHP_DTRACE=yes $ pecl install oci87 không khả dụng, hãy tải xuống thủ công gói »& nbsp; PECL OCI8, ví dụ: OCI8-3.0.0.TGZ.
Cài đặt OCI8 từ PECL bằng PhpizeĐể cài đặt OCI8 trên cài đặt PHP hiện có khi lệnh $ export PHP_DTRACE=yes $ pecl install oci87 không khả dụng, hãy tải xuống thủ công gói »& nbsp; PECL OCI8, ví dụ: OCI8-3.0.0.TGZ. Trích xuất gói:
Định cấu hình OCI8 bằng một trong các tùy chọn cấu hình sau. Nếu sử dụng các thư viện máy khách tức thời miễn phí »& nbsp; Oracle, thì hãy làm: Nếu máy khách tức thời 12.2 (hoặc sớm hơn) được cài đặt từ các tệp zip, hãy đảm bảo tạo liên kết tượng trưng thư viện trước tiên, ví dụ tar -zxf oci8-3.0.0.tgz cd oci8-3.0.0 7.Nếu sử dụng cài đặt dựa trên RPM của Oracle Instant Client, dòng cấu hình sẽ trông như thế này:
Nếu bạn đang xây dựng PHP từ mã nguồn, tùy chọn Cấu hình tar -zxf oci8-3.0.0.tgz cd oci8-3.0.06 có thể được sử dụng để xây dựng OCI8 như một thư viện dùng chung có thể được tải động vào PHP. Xây dựng một phần mở rộng được chia sẻ cho phép OCI8 được nâng cấp dễ dàng mà không ảnh hưởng đến phần còn lại của PHP. Định cấu hình OCI8 bằng một trong các tùy chọn cấu hình sau.Nếu sử dụng các thư viện máy khách tức thời miễn phí »& nbsp; Oracle, thì hãy làm: Với các thư viện Oracle 12c (hoặc sau này), giải phóng một trong các dòng php.ini ./configure -with-oci8=shared,$ORACLE_HOME2 hoặc ./configure -with-oci8=shared,$ORACLE_HOME3 hoặc ./configure -with-oci8=shared,$ORACLE_HOME4. Chỉ có một trong những DLL này có thể được bật tại một thời điểm. DLL có phiên bản cao hơn có thể chứa nhiều chức năng hơn. Không phải tất cả các DLL có thể có sẵn cho tất cả các phiên bản của PHP. Đảm bảo Extension_DIR được đặt thành thư mục chứa các DLL mở rộng PHP. Nếu sử dụng máy khách tức thời, hãy đặt biến môi trường đường dẫn hệ thống thành thư mục thư viện Oracle. Đặt môi trường OracleTrước khi sử dụng tiện ích mở rộng này, hãy đảm bảo rằng các biến môi trường Oracle được đặt đúng cho người dùng Daemon Web. Nếu máy chủ web của bạn được tự động khởi động vào thời điểm khởi động thì hãy đảm bảo rằng môi trường thời gian khởi động cũng được cấu hình chính xác.
Trên Red Hat Linux và các biến thể, các biến xuất ở cuối/etc/sysconfig/httpd. Các hệ thống khác với Apache 2 có thể sử dụng tập lệnh Envvars trong thư mục Apache Bin. Tùy chọn thứ ba, Chỉ thị Apache ./configure -with-oci8=shared,$ORACLE_HOME5 trong httpd.conf, có thể hoạt động trong một số hệ thống nhưng được biết là không đủ ở các hệ thống khác. Để kiểm tra xem các biến môi trường có được đặt chính xác không, hãy sử dụng phần phpinfo () và kiểm tra môi trường (không phải môi trường Apache) chứa các biến dự kiến.phpinfo() and check the Environment (not the Apache Environment) section contains the expected variables. Các biến có thể cần thiết được bao gồm trong bảng sau. Tham khảo tài liệu Oracle để biết thêm thông tin về tất cả các biến có sẵn. Biến môi trường Oracle phổ biến
Các biến môi trường Oracle ít thường xuyên hơn bao gồm ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib2, ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib3 và các cài đặt toàn cầu hóa khác nhau như ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib4 và các biến ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib5. Xử lý sự cốVấn đề phổ biến nhất khi cài đặt OCI8 là không có môi trường Oracle được đặt chính xác. Điều này thường xuất hiện như một vấn đề bằng cách sử dụng oci_connect () hoặc oci_pconnect (). Lỗi có thể là lỗi PHP như gọi đến hàm không xác định oci_connect (), lỗi Oracle như ORA-12705 hoặc thậm chí là sự cố Apache. Kiểm tra các tệp nhật ký Apache để biết lỗi khởi động và xem các phần trên để giải quyết vấn đề này.oci_connect() or oci_pconnect(). The error may be a PHP error such as Call to undefined function oci_connect(), an Oracle error such as ORA-12705, or even an Apache crash. Check the Apache log files for startup errors and see the sections above to resolve this problem. Mặc dù các lỗi mạng như ORA-12154 hoặc ORA-12514 chỉ ra vấn đề đặt tên mạng hoặc cấu hình của Oracle, nhưng nguyên nhân gốc có thể là do môi trường PHP được thiết lập không chính xác và các thư viện Oracle không thể xác định vị trí tệp cấu hình TNSNames.ora. Trên Windows, có nhiều phiên bản Oracle trên một máy có thể dễ dàng gây ra các cuộc đụng độ thư viện trừ khi được thực hiện để đảm bảo PHP chỉ sử dụng phiên bản chính xác của Oracle. Một tiện ích để kiểm tra những thư viện đang được tìm kiếm và được tải có thể giúp giải quyết các vấn đề thư viện bị thiếu hoặc xung đột, đặc biệt là trên Windows.
f dot kheiri tại ucl dot ac dot uk ¶ ¶ 16 năm trước ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib6 ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib7 ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib8 ./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib9 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib0 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib1 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib2 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib3 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib4 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib5 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Alvaro tại demogracia dot com ¶ 14 năm trước ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib7 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib8 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib9 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Devolver tại iastate dot edu ¶ ¶ 20 năm trước ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib1 ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib2 ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib3 ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib4 ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib5 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 semenov dot v tại gmail dot com ¶ 3 năm trước ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib7 ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib8 ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/<version>/client/lib9 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Aliquis at Die Dot Spammers Dot Die Dot Link-Net Dot org ¶ ¶ 18 năm trước ./configure --with-oci8=shared,$ORACLE_HOME1 ./configure --with-oci8=shared,$ORACLE_HOME2 ./configure --with-oci8=shared,$ORACLE_HOME3 ./configure --with-oci8=shared,$ORACLE_HOME4 ./configure --with-oci8=shared,$ORACLE_HOME5 ./configure --with-oci8=shared,$ORACLE_HOME6 ./configure --with-oci8=shared,$ORACLE_HOME7 ./configure --with-oci8=shared,$ORACLE_HOME8 ./configure --with-oci8=shared,$ORACLE_HOME9 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ 16 năm trước ./configure --with-oci8=instantclient,/path/to/instant/client/lib1 ./configure --with-oci8=instantclient,/path/to/instant/client/lib2 ./configure --with-oci8=instantclient,/path/to/instant/client/lib3 ./configure --with-oci8=instantclient,/path/to/instant/client/lib4 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Alvaro tại demogracia dot com ¶ 14 năm trước ./configure --with-oci8=instantclient,/path/to/instant/client/lib6 ./configure --with-oci8=instantclient,/path/to/instant/client/lib7 ./configure --with-oci8=instantclient,/path/to/instant/client/lib8 ./configure --with-oci8=instantclient,/path/to/instant/client/lib9 ./configure --with-oci8=$ORACLE_HOME0 ./configure --with-oci8=$ORACLE_HOME1 ./configure --with-oci8=$ORACLE_HOME2 ./configure --with-oci8=$ORACLE_HOME3 ./configure --with-oci8=$ORACLE_HOME4 ./configure --with-oci8=$ORACLE_HOME5 ./configure --with-oci8=$ORACLE_HOME6 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Devolver tại iastate dot edu ¶ ¶ 18 năm trước ./configure --with-oci8=$ORACLE_HOME8 ./configure --with-oci8=$ORACLE_HOME9 $ export PHP_DTRACE=yes $ pecl install oci800 $ export PHP_DTRACE=yes $ pecl install oci801 $ export PHP_DTRACE=yes $ pecl install oci802 $ export PHP_DTRACE=yes $ pecl install oci803 $ export PHP_DTRACE=yes $ pecl install oci804 $ export PHP_DTRACE=yes $ pecl install oci805 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ ben at onshop dot co dot uk ¶ $ export PHP_DTRACE=yes $ pecl install oci807 $ export PHP_DTRACE=yes $ pecl install oci808 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 17 năm trước ¶ ben at onshop dot co dot uk ¶ $ export PHP_DTRACE=yes $ pecl install oci810 $ export PHP_DTRACE=yes $ pecl install oci811 $ export PHP_DTRACE=yes $ pecl install oci812 $ export PHP_DTRACE=yes $ pecl install oci813 $ export PHP_DTRACE=yes $ pecl install oci814 $ export PHP_DTRACE=yes $ pecl install oci815 $ export PHP_DTRACE=yes $ pecl install oci816 $ export PHP_DTRACE=yes $ pecl install oci817 $ export PHP_DTRACE=yes $ pecl install oci818 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 17 năm trước ¶ NeoGodo tại Yahoo Dot Com Dot Br ¶ $ export PHP_DTRACE=yes $ pecl install oci820 $ export PHP_DTRACE=yes $ pecl install oci821 $ export PHP_DTRACE=yes $ pecl install oci822 $ export PHP_DTRACE=yes $ pecl install oci823 $ export PHP_DTRACE=yes $ pecl install oci824 $ export PHP_DTRACE=yes $ pecl install oci825 $ export PHP_DTRACE=yes $ pecl install oci826 $ export PHP_DTRACE=yes $ pecl install oci827 $ export PHP_DTRACE=yes $ pecl install oci828 $ export PHP_DTRACE=yes $ pecl install oci829 $ export PHP_DTRACE=yes $ pecl install oci830 $ export PHP_DTRACE=yes $ pecl install oci831 $ export PHP_DTRACE=yes $ pecl install oci832 $ export PHP_DTRACE=yes $ pecl install oci833 $ export PHP_DTRACE=yes $ pecl install oci834 $ export PHP_DTRACE=yes $ pecl install oci835 $ export PHP_DTRACE=yes $ pecl install oci836 $ export PHP_DTRACE=yes $ pecl install oci837 $ export PHP_DTRACE=yes $ pecl install oci838 $ export PHP_DTRACE=yes $ pecl install oci839 $ export PHP_DTRACE=yes $ pecl install oci840 $ export PHP_DTRACE=yes $ pecl install oci841 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Nospamplz! Esartoni tại Omniaglobal Dot Net ¶ ¶ 16 năm trước $ export PHP_DTRACE=yes $ pecl install oci843 $ export PHP_DTRACE=yes $ pecl install oci844 $ export PHP_DTRACE=yes $ pecl install oci845 $ export PHP_DTRACE=yes $ pecl install oci846 $ export PHP_DTRACE=yes $ pecl install oci847 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Alvaro tại demogracia dot com ¶ 14 năm trước $ export PHP_DTRACE=yes $ pecl install oci849 Devolver tại iastate dot edu ¶ ¶ NeoGodo tại Yahoo Dot Com Dot Br ¶ $ export PHP_DTRACE=yes $ pecl install oci850 $ export PHP_DTRACE=yes $ pecl install oci851 $ export PHP_DTRACE=yes $ pecl install oci852 $ export PHP_DTRACE=yes $ pecl install oci853 $ export PHP_DTRACE=yes $ pecl install oci854 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ ben at onshop dot co dot uk ¶ $ export PHP_DTRACE=yes $ pecl install oci856 $ export PHP_DTRACE=yes $ pecl install oci857 $ export PHP_DTRACE=yes $ pecl install oci858 $ export PHP_DTRACE=yes $ pecl install oci859 $ export PHP_DTRACE=yes $ pecl install oci860 $ export PHP_DTRACE=yes $ pecl install oci861 $ export PHP_DTRACE=yes $ pecl install oci862 $ export PHP_DTRACE=yes $ pecl install oci863 $ export PHP_DTRACE=yes $ pecl install oci864 $ export PHP_DTRACE=yes $ pecl install oci865 $ export PHP_DTRACE=yes $ pecl install oci866 $ export PHP_DTRACE=yes $ pecl install oci867 $ export PHP_DTRACE=yes $ pecl install oci868 $ export PHP_DTRACE=yes $ pecl install oci869 $ export PHP_DTRACE=yes $ pecl install oci870 $ export PHP_DTRACE=yes $ pecl install oci871 $ export PHP_DTRACE=yes $ pecl install oci872 $ export PHP_DTRACE=yes $ pecl install oci873 $ export PHP_DTRACE=yes $ pecl install oci874 $ export PHP_DTRACE=yes $ pecl install oci875 $ export PHP_DTRACE=yes $ pecl install oci876 $ export PHP_DTRACE=yes $ pecl install oci877 $ export PHP_DTRACE=yes $ pecl install oci878 $ export PHP_DTRACE=yes $ pecl install oci879 $ export PHP_DTRACE=yes $ pecl install oci880 $ export PHP_DTRACE=yes $ pecl install oci881 $ export PHP_DTRACE=yes $ pecl install oci882 17 năm trước ¶ NeoGodo tại Yahoo Dot Com Dot Br ¶ $ export PHP_DTRACE=yes $ pecl install oci883 Nospamplz! Esartoni tại Omniaglobal Dot Net ¶ ¶ NeoGodo tại Yahoo Dot Com Dot Br ¶ $ export PHP_DTRACE=yes $ pecl install oci884 $ export PHP_DTRACE=yes $ pecl install oci885 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Nospamplz! Esartoni tại Omniaglobal Dot Net ¶ ¶ 19 năm trước $ export PHP_DTRACE=yes $ pecl install oci887 $ export PHP_DTRACE=yes $ pecl install oci888 $ export PHP_DTRACE=yes $ pecl install oci889 $ export PHP_DTRACE=yes $ pecl install oci890 $ export PHP_DTRACE=yes $ pecl install oci891 $ export PHP_DTRACE=yes $ pecl install oci892 $ export PHP_DTRACE=yes $ pecl install oci893 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 lore_giver tại Lycos dot co dot uk ¶ ¶ 16 năm trước $ export PHP_DTRACE=yes $ pecl install oci895 $ export PHP_DTRACE=yes $ pecl install oci896 $ export PHP_DTRACE=yes $ pecl install oci897 $ export PHP_DTRACE=yes $ pecl install oci898 $ export PHP_DTRACE=yes $ pecl install oci899 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.000 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.001 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.002 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Saxon Leung ¶ ¶ 14 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.004 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.005 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.006 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.007 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.008 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Devolver tại iastate dot edu ¶ ¶ 18 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.010 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.011 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.012 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.013 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.014 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ 14 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.016 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.017 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.018 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.019 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.020 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.021 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.022 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.023 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.024 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.025 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.026 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.027 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.028 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.029 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.030 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.031 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.032 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.033 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.034 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.035 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.036 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.037 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.038 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.039 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.040 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.039 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.042 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.043 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.044 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.045 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Devolver tại iastate dot edu ¶ ¶ 14 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.047 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.048 ./configure --with-oci8=instantclient,/path/to/instant/client/lib3 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.050 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.051 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.052 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.053 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.054 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.055 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.056 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Devolver tại iastate dot edu ¶ ¶ 14 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.058 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.059Devolver tại iastate dot edu ¶ 20 năm trước ¶ 14 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.061 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.062 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.063 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.064 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.065 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.066 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.067 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.068 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.069 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.070 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Devolver tại iastate dot edu ¶ ¶ 18 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.072 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.073 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.074 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.075 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.076 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ 18 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.078 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.079 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.080 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.081 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.082 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.083 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.084 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.085 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ 18 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.087 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.088 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ 20 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.090 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.091 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.092 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.093 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.094 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 semenov dot v tại gmail dot com ¶ 3 năm trước tar -zxf oci8-3.0.0.tgz cd oci8-3.0.096 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.097 tar -zxf oci8-3.0.0.tgz cd oci8-3.0.098 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Aliquis at Die Dot Spammers Dot Die Dot Link-Net Dot org ¶ ¶ 3 năm trước ./configure -with-oci8=shared,$ORACLE_HOME00 ./configure -with-oci8=shared,$ORACLE_HOME01 ./configure -with-oci8=shared,$ORACLE_HOME02 ./configure -with-oci8=shared,$ORACLE_HOME03 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Aliquis at Die Dot Spammers Dot Die Dot Link-Net Dot org ¶ ¶ 18 năm trước ./configure -with-oci8=shared,$ORACLE_HOME05 ./configure -with-oci8=shared,$ORACLE_HOME06 ./configure -with-oci8=shared,$ORACLE_HOME07 ./configure -with-oci8=shared,$ORACLE_HOME08 ./configure -with-oci8=shared,$ORACLE_HOME09 ./configure -with-oci8=shared,$ORACLE_HOME10 ./configure -with-oci8=shared,$ORACLE_HOME11 ./configure -with-oci8=shared,$ORACLE_HOME12 ./configure -with-oci8=shared,$ORACLE_HOME13 ./configure -with-oci8=shared,$ORACLE_HOME14 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Ẩn danh ¶ ¶ ben at onshop dot co dot uk ¶ ./configure -with-oci8=shared,$ORACLE_HOME16 ./configure -with-oci8=shared,$ORACLE_HOME17 ./configure -with-oci8=shared,$ORACLE_HOME18 ./configure -with-oci8=shared,$ORACLE_HOME19 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Nicodenboer (at) yahoo (dot) com ¶ ¶ 13 năm trước ./configure -with-oci8=shared,$ORACLE_HOME21 ./configure -with-oci8=shared,$ORACLE_HOME22 ./configure -with-oci8=shared,$ORACLE_HOME23 ./configure -with-oci8=shared,$ORACLE_HOME24 ./configure -with-oci8=shared,$ORACLE_HOME25 ./configure -with-oci8=shared,$ORACLE_HOME26 ./configure -with-oci8=shared,$ORACLE_HOME27 ./configure -with-oci8=shared,$ORACLE_HOME28 ./configure -with-oci8=shared,$ORACLE_HOME29 ./configure -with-oci8=shared,$ORACLE_HOME30 ./configure -with-oci8=shared,$ORACLE_HOME31 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 John tại John-Warner Dot Com ¶ ¶ 19 năm trước ./configure -with-oci8=shared,$ORACLE_HOME33 ./configure -with-oci8=shared,$ORACLE_HOME34 ./configure -with-oci8=shared,$ORACLE_HOME35 ./configure -with-oci8=shared,$ORACLE_HOME36 ./configure -with-oci8=shared,$ORACLE_HOME37 ./configure -with-oci8=shared,$ORACLE_HOME38 ./configure -with-oci8=shared,$ORACLE_HOME39 ./configure -with-oci8=shared,$ORACLE_HOME40 ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib6 Làm cách nào để kích hoạt OCI8?Tiện ích mở rộng OCI8 có thể được thêm vào cài đặt PHP hiện có bằng cách sử dụng kho lưu trữ »PECL. Khi được nhắc, hãy nhập giá trị của $ oracle_home hoặc instantClient,/path/to/instant/client/lib. Hãy chắc chắn rằng PHP. Chỉ thị Ini extension_dir được đặt thành thư mục mà OCI8.o đã được cài đặt.by using the » PECL repository. When prompted, enter either the value of $ORACLE_HOME , or instantclient,/path/to/instant/client/lib . Make sure the php. ini directive extension_dir is set to the directory that oci8.so was installed in.
Làm thế nào để cài đặt OCI8 cho PHP?Lắp đặt OCI8 PHP.. Bước 1: Tải xuống các gói SDK và khách hàng tức thời của Oracle. .... Bước 2: Cài đặt các gói SDK và máy khách Instant Instant. .... Bước 3: Tải về phần mở rộng OCI8 từ PECL. .... Bước 4: Xây dựng mô -đun PHP OCI8. .... Bước 5: Cài đặt mô -đun PHP OCI8. .... Bước 6: Khởi động lại Apache để tải các thay đổi mới .. Làm thế nào để bật OCI8 trong các cửa sổ PHP?1 câu trả lời.. Tải xuống InstantClient và đặt "C: \ instantclient_11_2". Đặt biến môi trường cho c: \ instantclient_11_2 .. Kiểm tra phiên bản PHP của bạn, tức là Php phiên bản 5.6.15 .. Un-spment "extext = php_oci8_11g.dll" trong php.ini và khởi động lại apache .. Kiểm tra php_info (), OCI8 nên được bật. Đó là tất cả.. Làm thế nào để kích hoạt OCI8 trong php linux?Để cài đặt tiện ích mở rộng OCI8, chúng tôi cần cài đặt một số gói bổ sung trên máy chủ của mình ... Chạy các lệnh sau: apt Cài đặt php-dev PHP-pear build-itential libaio1 .. Sau khi cài đặt, chúng tôi cần lấy tệp OCI8..... Chúng ta cần bảo PHP tải tiện ích mở rộng OCI8..... Làm mới máy chủ..... Khởi động lại PHP-FPM .. |