PHP » php.ini 設定

//打開全域變數功能
register_globals = Off -> On

//啟用MySQL
extension_dir = "C:\php\ext\" -> 設定DLL路徑
;extension=php_mysql.dll -> ";" 刪除


Apache » httpd.conf 設定

//不顯示目錄
的目錄在沒有預設首頁時,是否顯示目錄結構
Options FollowSymLinks -> Options None

//Server名稱
ServerName jimsuan.no-ip.com

//Server路徑
UserDir "C:/Program Files/Apache Group/Apache/users/"

//加入檔案類型使Apache認識PHP

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .php3
Action application/x-httpd-php "/php/php-cgi.exe"

//首頁設置
DirectoryIndex index.html index.htm index.php index.php3


phpMyAdmin » config.php 設定

//伺服器位址
$cfg['PmaAbsoluteUri'] = 'http://jimsuan.adsldns.org/phpmyadmin/';

// MySQL伺服器
$cfg['Servers'][$i]['host'] = 'localhost';

// MySQL登入方式
$cfg['Servers'][$i]['auth_type'] = 'config';
// config->不需認證
// http->網頁標頭認證
// cookie->cookie認證


// 設置config模式輸入MySQL使用者帳號
$cfg['Servers'][$i]['user'] = '';

// 設置config模式輸入MySQL使用者密碼

$cfg['Servers'][$i]['password'] = '';
arrow
arrow
    全站熱搜

    bshadow 發表在 痞客邦 留言(1) 人氣()