2007年5月9日 星期三
php.ini 修改
要讓php和mysql正常運作,必須修改php.ini這個檔案,在fc6中的位置若不知道可以用locate這個指令查詢:
[root@localhost ~]# locate php.ini
/etc/php.ini
所以發現這個檔案路徑是位在/etc/php.ini
找到檔案位置後,利用vi來修改裏面的檔案
找到下面這一段文字,下列為原始文字設定:
; - error_reporting = E_ALL [Code Cleanliness, Security(?)]
把註解符號拿掉並改為下面的:
- error_reporting = E_ALL&~E_NOTICE [Code Cleanliness, Security(?)]
另外把下列這行原本設定值Off改成On
- display_errors = On [Security]
存檔離開即可
[root@localhost ~]# locate php.ini
/etc/php.ini
所以發現這個檔案路徑是位在/etc/php.ini
找到檔案位置後,利用vi來修改裏面的檔案
找到下面這一段文字,下列為原始文字設定:
; - error_reporting = E_ALL [Code Cleanliness, Security(?)]
把註解符號拿掉並改為下面的:
- error_reporting = E_ALL&~E_NOTICE [Code Cleanliness, Security(?)]
另外把下列這行原本設定值Off改成On
- display_errors = On [Security]
存檔離開即可
2007年5月3日 星期四
解決phpMyAdmin安裝出現紅字的問題
安裝完phpMyAdmin後出現紅字"找不到 PHP 內的 mbstring 編碼模組, 沒有這個模組, phpMyAdmin 無法準確地分割雙字元文字, 而可能產生問題."
下指令更新:
[root@localhost public_html]# yum -y install php-mbstring
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
..................................................以下開始更新...................略
重啟:service httpd restart................................紅字消失了…哈哈哈
下指令更新:
[root@localhost public_html]# yum -y install php-mbstring
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
..................................................以下開始更新...................略
重啟:service httpd restart................................紅字消失了…哈哈哈
2007年5月2日 星期三
FC6 SMB啟動
目的:
1.讓windows系統機器可讀取Linux系統主機資料,達到資料分享目的。
2.配合虛擬主機,可以設定Linux smb將/home目錄下的資料夾分享,讓windows系統使用者透過網芳直接上傳、修改www資料。
-----------------------------------------------------------------------------------------------
第一部份
step1:檢查fc6 smb預設狀況(預設是全關)
[root@localhost xxxx]# chkconfig --list grep smb
smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off
step2:開啟fc6 smb(將run level 2、3、5設定開機啟動)
[root@localhost xxxx]# chkconfig --level 235 smb on
step3:檢查看看,run level 2、3、5己開啟
[root@localhost xxxx]# chkconfig --list grep smb
smb 0:off 1:off 2:on 3:on 4:off 5:on 6:off
step4:重啟smb,成功
[root@localhost xxxx]# service smb restart
Shutting down SMB services: [FAILED]
Shutting down NMB services: [FAILED]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
step5:設定/etc/samba/smb.conf設定檔
1.修改: hosts allow = 140.109.240.26(只有這個ip可存取smb)
2.設定安全等級
step6:重啟smb
step7:此時重windows的網芳就看得到linux fc6的群組名稱mygroup,但是尚無權限可登入,且smb有自己的密碼檔與linux的密碼檔各自管理,所以得自己再加入smb的使用者,下列的帳號原本就在linux的系統裏,所以只有另設密碼即可,若原本沒在linux系統的帳號,需另外新增帳號,而smb.conf設定檔中,security=user,讓登入者可登入自己在/home下的目錄。
[root@localhost samba]# smbpasswd -a lilichih------->此帳號原己存在linux系統中
New SMB password:
Retype new SMB password:Added user lilichih.
--------------------------------------------------------------------------------------------
第二部份
home區段設定:
有許多要分享的設定…視情況需要再改
1.讓windows系統機器可讀取Linux系統主機資料,達到資料分享目的。
2.配合虛擬主機,可以設定Linux smb將/home目錄下的資料夾分享,讓windows系統使用者透過網芳直接上傳、修改www資料。
-----------------------------------------------------------------------------------------------
第一部份
step1:檢查fc6 smb預設狀況(預設是全關)
[root@localhost xxxx]# chkconfig --list grep smb
smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off
step2:開啟fc6 smb(將run level 2、3、5設定開機啟動)
[root@localhost xxxx]# chkconfig --level 235 smb on
step3:檢查看看,run level 2、3、5己開啟
[root@localhost xxxx]# chkconfig --list grep smb
smb 0:off 1:off 2:on 3:on 4:off 5:on 6:off
step4:重啟smb,成功
[root@localhost xxxx]# service smb restart
Shutting down SMB services: [FAILED]
Shutting down NMB services: [FAILED]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
step5:設定/etc/samba/smb.conf設定檔
1.修改: hosts allow = 140.109.240.26(只有這個ip可存取smb)
2.設定安全等級
step6:重啟smb
step7:此時重windows的網芳就看得到linux fc6的群組名稱mygroup,但是尚無權限可登入,且smb有自己的密碼檔與linux的密碼檔各自管理,所以得自己再加入smb的使用者,下列的帳號原本就在linux的系統裏,所以只有另設密碼即可,若原本沒在linux系統的帳號,需另外新增帳號,而smb.conf設定檔中,security=user,讓登入者可登入自己在/home下的目錄。
[root@localhost samba]# smbpasswd -a lilichih------->此帳號原己存在linux系統中
New SMB password:
Retype new SMB password:Added user lilichih.
--------------------------------------------------------------------------------------------
第二部份
home區段設定:
有許多要分享的設定…視情況需要再改
訂閱:
文章 (Atom)