CentOS install服務(wù)器安裝運(yùn)行
對(duì)大家推薦很好使用的CentOS install系統(tǒng),像讓大家對(duì)CentOS install系統(tǒng)有所了解,然后對(duì)CentOS install系統(tǒng)全面講解介紹,希望對(duì)大家有用雖然最后還是沒(méi)有安裝上這個(gè)oci模組,但是也得把這幾天來(lái)學(xué)的總結(jié)一下:
在正式CentOS install服務(wù)器下,為什么一直沒(méi)有安裝成功,原因在:64bit Linux 對(duì)oci8的php5.2.4還不支持(可手動(dòng)修改)。據(jù)說(shuō)6就支持了。CentOS install成功后發(fā)現(xiàn)還是沒(méi)有這個(gè)模組。那還是看看老外們對(duì)64位的安裝辦法吧:http://php.chinaunix.net/manual/zh/ref.oci8.php
在虛擬機(jī)下:系統(tǒng):centOS5 i386 i686configure:error : c++ preprocessor "/lib/cpp" faid sanity check 表示 C++編譯器的package未安裝:運(yùn)行 yum CentOS install glibc-headersyum install gcc-c++
No accecptable c compiler found in $PATH:表示沒(méi)有安裝gcc組件: 運(yùn)行 yum install gcc
configure:error : xml2-config not found,please check your libxml2 installation:
運(yùn)行 yum CentOS install libxml2-devel
CentOS install在啟動(dòng)apache的時(shí)候:apache: /libphp5.so:cannot restore segment prot after reloc: permission denied是因?yàn)閟elinux導(dǎo)致的,運(yùn)行 yum update selinux-policy-targeted 升級(jí)或者在selinux文件夾中找config文件,將里面的一個(gè)參數(shù)改成disable如果還是不能啟動(dòng),就重啟電腦。
vi中:Esc鍵:非編輯狀態(tài),可輸入需要的字符串進(jìn)行查找i鍵:輸入狀態(tài)可輸入如:wq為保存并退出命令
- netstart -tulpn|grep:80 查看80端口運(yùn)行的服務(wù)
- killall -9 http 殺http協(xié)議(好像是這樣的意思)
- dmesg 或者 cat /proc/cpuinfo 查看機(jī)器的硬件信息
CentOS install對(duì)make還需要深入了解一下,這里就不多寫(xiě)了。
安裝參考:
http://php.chinaunix.net/manual/zh/ref.oci8.php 主要還是看評(píng)論了
http://www.oracle.com/technology/global/cn/pub/notes/technote_php_instant.html中文版
http://www.oracle.com/technology/pub/notes/technote_php_instant.html英文版 -- 最后多了一點(diǎn)講php5的配置
http://ubuntuforums.org/showthread.php?t=637158另一種辦法的安裝
http://hi.baidu.com/luoyeguigen/blog/item/4d8e5543823523159213c6e6.html 只有l(wèi)inux+php的,沒(méi)有講oci
http://blog.csdn.net/yown/archive/2007/08/14/1742625.aspx同上
http://bugs.php.net/bug.php?id=41941 oci8對(duì)操作系統(tǒng)是x64位的支持,
php的下一個(gè)版本才支持:Fixed in PHP 5.2.6, 5.3 and 6.Support for Oracle-provided, 64bit Linux RPMs has been added(有手動(dòng)修改的patch)這些oci的文章的安裝只是針對(duì)oracle不在本地服務(wù)器,遠(yuǎn)程連接的,只需要在本地安裝客戶(hù)端的文章。
【編輯推薦】