VM安裝LAMP+WordPress筆記

VM安裝LAMP+WordPress筆記

用hyper-V安裝CentOS

之後須安裝Linux Integration Services Version 3.4 for Hyper-V

但"聽說"hyper-V效能不是很好,所以我這裡用VMware來安裝CentOS6

閱讀更多

XAMPP 開啟Gzip壓縮(windows)

XAMPP 開啟Gzip壓縮(windows)

XAMPP 開啟Gzip壓縮(windows)

想要讓使用者瀏覽你的網頁更快,除了平常優化外,可以試試Gzip網頁壓縮。

編輯httpd.conf,將#去掉
LoadModule headers_module modules/mod_deflate.so
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so

閱讀更多

Windows 7sp1 當機 沒反應

Windows 7sp1 當機 沒反應

事件內容:

Event filter with query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA "Win32_Processor" AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace "//./root/CIMV2" because of error 0x80041003. Events cannot be delivered through this filter until the problem is corrected.

解決方式:

下載微軟修復工具 http://go.microsoft.com/?linkid=9775756

用phpMyAdmin編輯WordPress資料庫

用phpMyAdmin編輯WordPress資料庫

用phpMyAdmin取代WP文章內容

進入phpMyAdmin的wp資料庫,並點選「SQL」

update wp_posts set post_content = replace( post_content, '原本的內容', '新的內容' )

按"執行"

 

其他使用範例

找尋資料表關鍵字:

1
2
3
SELECT *
FROM `wp_posts`
WHERE `post_content` LIKE '%http://xxx.com%'

更新guid欄位內容:

1
UPDATE wp_posts SET guid = replace( guid, 'http://xxx.com', 'http://www.xxx.com.tw' )

更新post_content欄位內容:

1
UPDATE wp_posts SET post_content = replace( post_content, 'http://xxx.com', 'http://www.xxx.com.tw' )

WordPress 更改固定網址結構後造成連結失效解決方式

在httpd.conf中
開啟對應的mod_rewrite模塊:
把:
#LoadModule rewrite_module modules/mod_rewrite.so
改為:
LoadModule rewrite_module modules/mod_rewrite.so

閱讀更多

DMARC 設置

DMARC 設置

DMARC 設置

幾個星期前,雅虎改變了DMARC(Domain-based Message Authentication, Reporting & Conformance)政策阻止欺詐性電子郵件

開始拒絕電子郵件不是從非雅虎的服務器發送

閱讀更多

WordPress 搬家

WordPress 搬家

WordPress搬家(換空間,不換網址)很簡單

閱讀更多

Google短網址goo.gl

Google短網址goo.gl

在Facebook內容上充斥著眾多的短網址,最常看到的就屬goo.gl/開頭的了
閱讀更多