2013-07-16 25 views
1

由於安裝了我的wamp的文件夾名稱「Program Files」,我正面臨一個問題。 我正在使用Yii框架來創建一個Web應用程序。 當運行一個命令我可以在不同的文件夾中安裝兩次wamp嗎?

的yiic webapp的C:\ Program Files文件\ WAMP \ WWW \ YiiApp

提示錯誤是由於文件夾名稱中的空白。 錯誤如下:

C:\Program Files\wamp\www\yii-1.1.13.e9e4a0\framework>yiic webapp c:\Program Fil 
es\wamp\www\YiiApp 
Error: Unsupported VCS specified. Currently only git and hg supported. 

USAGE 
    yiic webapp <app-path> [<vcs>] 

DESCRIPTION 
    This command generates an Yii Web Application at the specified location. 

PARAMETERS 
* app-path: required, the directory where the new application will be created. 
    If the directory does not exist, it will be created. After the application 
    is created, please make sure the directory can be accessed by Web users. 
* vcs: optional, version control system you're going to use in the new project. 

    Application generator will create all needed files to the specified VCS 
    (such as .gitignore, .gitkeep, etc.). Possible values: git, hg. Do not 
    use this argument if you're going to create VCS files yourself. 

我該怎麼辦?請給我一些建議。

+0

試圖將wamp安裝在不同的文件夾中,並從該文件夾運行該命令。它的工作。沒問題。 – Akshay

+0

你試過用引號嗎? 'yiic webapp「c:\ Program Files \ wamp \ www \ YiiApp」'。 – Maerlyn

+0

@Maerlyn,嘿謝謝,這也適用 – Akshay

回答

0

第二次安裝將會取代第一次安裝。換句話說,Wampmanager和Apache和MySQL將從新文件夾開始。

根據您在wamp論壇上的問題,將wwww /子文件夾複製到新位置,然後僅將您的數據庫從mysqlx.y.z/data複製到新位置的相同位置。

然後從程序文件中刪除文件夾。

每個系統只需要一個wamp(Apache/MySQL)。

0

我嘗試別的東西: 不移動以前安裝WAMP的內容只讀過

「uninstall_services.bat」文件

只需卸載從WAMP目錄要這些服務禁用。

仍然另一個wamp的服務不會啓動。因此,從相應的目錄手動安裝「uninstall_services.bat」文件中提到的服務。 現在從托盤圖標重新啓動所有服務。所需的wamp將被啓用。

如果不會,請再試一次。無需重新安裝wamp。

相關問題