简体   繁体   English

可以在不同的文件夹中两次安装wamp吗?

[英]can I install wamp twice in different folders?

I'm facing a problem due to the folder name "Program Files" in which my wamp is installed. 由于安装了我的wamp的文件夹名称为“ Program Files”,因此我遇到了问题。 I'm using Yii Framework to create a web app. 我正在使用Yii Framework创建一个Web应用程序。 While running a command 运行命令时

yiic webapp c:\\Program Files\\wamp\\www\\YiiApp yiic webapp c:\\ Program Files \\ wamp \\ www \\ YiiApp

it gives error due to the white space in the folder name. 由于文件夹名称中的空白,它给出了错误。 The error is as below: 错误如下:

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.

What should I do? 我该怎么办? Please suggest me something. 请给我一些建议。

The second install will have superceeded the first. 第二安装将取代第一安装。 In other words Wampmanager and Apache and MySQL will be being started out of the new folder. 换句话说,将从新文件夹中启动Wampmanager以及Apache和MySQL。

As per your question on wamp forum, copy wwww/subfolders into the new location and then copy ONLY YOUR databases from mysqlx.yz/data into the same place in the new location. 根据您在wamp论坛上的问题,将wwww / subfolders复制到新位置,然后仅将mysqlx.yz / data中的数据库复制到新位置的相同位置。

Then delete the folders from program files. 然后从程序文件中删除文件夹。

You only need one wamp ( Apache/MySQL) per system. 每个系统只需要一个Wamp(Apache / MySQL)。

I tried something else: Without moving the previously installed wamp's content just read the 我尝试了其他方法:在不移动先前安装的wamp内容的情况下,请阅读

"uninstall_services.bat" file “ uninstall_services.bat”文件

just uninstall these services from that wamp directory which you want to disable. 只需从您要禁用的wamp目录中卸载这些服务即可。

Still the another wamp's services won't start. 另一个沼泽的服务仍然无法启动。 So install those services mentioned in "uninstall_services.bat" file manually from respective directories. 因此,请从相应目录手动安装“ uninstall_services.bat”文件中提到的那些服务。 Now Restart All Services from the tray icon. 现在,从任务栏图标重新启动所有服务。 The required wamp will be enabled. 所需的wamp将被启用。

If won't, try it again. 如果不会,请再试一次。 No need to reinstall wamp. 无需重新安装沼泽。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Yii中访问文件夹? - How can I make Access to folders in Yii? 我如何避免pjax在yii中两次提交表单? - how can i avoid pjax to submit a form twice in yii? 当我在配置中激活urlManager时,我的Yii项目找不到我自己创建的js文件夹吗? - When I activate the urlManager in config, can my Yii project not find my self created js folders? 如何为Wordpress使用其他登录/注册机制 - How can I use a different login/signup mechanism for wordpress 我可以在其他EC2服务器上放置视图,模型,控制器吗? - Can I place views, models, controllers on different EC2 server? 从YII中相同控制器或不同控制器的不同动作移动时,如何在不同主题之间切换 - How can I switch between the different theme while moving from different actions of same controller or different controller in YII 图像未出现在WAMP / Localhost中 - Images not appearing in WAMP/Localhost 如何安装yii扩展程序,使其可用于整个Web应用程序? - How can I install a yii extension, making it available to my whole web application? 如何通过Composer从供应商/软件包中仅安装一个目录? 还是在安装后删除目录? - How can I install only one directory by Composer from the vendor/package? Or delete directories after installation? 无法在Yii应用程序中安装yiidebugtb扩展 - Can't install yiidebugtb extension in Yii application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM