[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 請教在debian安裝apache+mysql+php的問題



現在的 MySQL default skip tcp 如果你用於localhost是沒有問題的, 但是不可
用remote連接
回你問題: php 是可以用module 或用 static 的方法加 function 的, debian 用
module for
flexablity. 兩個方法load module. 1) /etc/php/*/php.ini ( apache,
apache-ssl or cgi )
depend on what you are using, 其中一部分是 extension=mysql.so, 如果你是
用offical deb
這一行是ok.
2) 方法是在php file 中加上 dynamic loading call, extension_loaded test
the module is
loaded and dl is loading the library.
if (!extension_loaded('mysql')) {
if (!dl('mysql.so')) {
exit;
}
}
如果失敗,有可能是 lib problem. 用
ldd /usr/lib/php4/*/mysql.so 看看你用否missing some lib. apt-get install
them if you do
Good luck
Alex

電腦商情報重慶分部龔彬 wrote:

>debian-chinese-gb,您好!
>	      我用apt-get install apache php4 mysql 方法安裝,安裝沒有出現什麼問題,apaceh正常,mysql單獨用也正常,但php中的與mysql相關的函數用不起來(如mysql_connect,mysql_pcnnect都無法使用,出錯信息為"Fatal error: Call to undefined function: mysql_pconnect() in /var/www/phpmysql.php on line 3
>"),是安裝有問題嗎?比如在redhat中可以設置--with-mysql=/usr/mysql之類的,在debian中怎麼設置php對mysql的支持,還要裝些軟件包嗎?
>
>        致
>禮!
> 				
>
>        ideasky
>        gongbin@cbigroup.com
>          2002-05-22
>
>--
>To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>  
>

-- 
To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.


-- 
To UNSUBSCRIBE, email to debian-chinese-big5-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: