WordPress
上傳服務器之前需要配置下“wp-config-sample.php”,
以下信息修改爲虛擬主機服務後臺給出的信息,注意全部都要改!
// ** MySQL 設置 - 具體信息來自您正在使用的主機 ** //
/** WordPress數據庫的名稱 */
define('DB_NAME', 'database_name_here');
/** MySQL數據庫用戶名 */
define('DB_USER', 'username_here');
/** MySQL數據庫密碼 */
define('DB_PASSWORD', 'password_here');
/** MySQL主機 */
define('DB_HOST', 'localhost');
/** 創建數據表時默認的文字編碼 */
define('DB_CHARSET', 'utf8');
/** 數據庫整理類型。如不確定請勿更改 */
define('DB_COLLATE', '');
/**#@+
* 身份認證密鑰與鹽。
*
* 修改爲任意獨一無二的字串!
* 或者直接訪問{@link https://api.wordpress.org/secret-key/1.1/salt/
* WordPress.org密鑰生成服務}
* 任何修改都會導致所有cookies失效,所有用戶將必須重新登錄。
*
* @since 2.6.0
*/
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
/**#@-*/
上面修改完之後把wp-config-sample.php
重命名爲wp-config.php
,並和之前wp-config-sample.php放在一個目錄下上傳,然後地址欄輸入服務商給出的域名按照提示安裝即可
discuz
把下載的discuz包解壓,只上傳upload文件夾下的文件到虛擬主機中,使用fileZilla登錄您的服務器,將服務器上以下目錄、以及該目錄下面的所有文件的屬性設置爲 777,Win 主機請設置 internet 來賓帳戶可讀寫屬性。
./config/config_global.php
./config/config_ucenter.php
./config
./data
./data/avatar
然後地址欄輸入服務商給出的域名按照提示安裝即可