close

WAMP是一款簡單Windows架站軟體,集合了Apache、MySQL、PHP,基本上是個完整的小型伺服器。

當我們有時需要臨時架個網站或是測試自己的網頁時,安裝WAMP就能很快的架好。

 

之前我的wamp出現了這樣的錯誤(根本1~2年了XD),再幾乎無解的情況下,就這樣擱著。

直到昨天,一股莫名的毅力,好像看懂出錯的原因也找到解決方法,希望分享給遇到這問題的朋友們。

 

錯誤Aestan Tray Menu

The configuration file contains a syntax error on line 0:

[EParseError] No tray icon was specified. Please assign a tray icon by

using one of the TrayIcon* directives in the [Config] section

螢幕截圖 2014-01-30 09.27.20

之前我重裝過,也試過好幾個檔案,一直無法解決,但現在IT的工作讓我有了偵探精神,培養了一些直覺。

wamp是一個集合Apache、MySQL、PHP的程式集合,還帶有其他處理程式,導致之前一直找不到解決方向。

昨天我想wampmanager.exe 會在執行時錯誤,跑不了是該程式的相關檔案,不會與裡面的A M P有關,錯誤提示的line 0,讓我一直認為是wampmanager.conf的錯誤,最後發現wampmanager.ini裡面是空的,或許它指的是這個。

PS.其實之前有發現XD,但我想ini檔這設定檔,從來沒動過,應該是程式會自行寫入。

 

最後去查了一下,wampmanager.ini的基本內容,把它貼進去就可以正常啟動了。

一啟動後,程式還寫入了很多行資料進去。

而一直認為沒動過的檔案還是空的,程式會寫入這想法是對的,不過它空導致程式也寫不進去。

iloveindeep

以下是wampmanager.ini的基本程式,記得目錄要對應你的路徑與版本。

 

[Config]
ImageList=images_on.bmp
ServiceCheckInterval=1
ServiceGlyphRunning=13
ServiceGlyphPaused=14
ServiceGlyphStopped=15
TrayIconAllRunning=16
TrayIconSomeRunning=17
TrayIconNoneRunning=18

[Services]
Name: wampapache
Name: wampmysqld

[StartupAction]
Action: run; FileName: “c:/wamp/bin/php/php5.2.5/php-win.exe”;Parameters: “refresh.php”;WorkingDir: “c:/wamp/scripts”; Flags: waituntilterminated
Action: resetservices
Action: readconfig;
Action: service; Service: wampapache; ServiceAction: startresume; Flags: ignoreerrors
Action: service; Service: wampmysqld; ServiceAction: startresume; Flags: ignoreerrors
arrow
arrow
    文章標籤
    WAMP 架站 網站 伺服器
    全站熱搜

    mico 發表在 痞客邦 留言(0) 人氣()