doulou1989 2015-08-10 02:01
浏览 48
已采纳

是否有更有效的方法在IIS上安装Web应用程序而不是手动安装?

I have a PHP web app that i would like to be able to ship as easily as possible. Some of the things it does are as follows:

  • Call shell_exec() to execute windows executables
  • Call move_uploaded_file() to move a file to a network folder
  • Create temporary files for processing at later stages

Now these all require special things to be checked during manual installs such as the App Pool's user permissions on accessing network folders, creating files ect. A process that can be long and arduous. Normally this is the process i go through:

  1. Check to see if PHP is installed on client's server. If not, download and install it first
  2. Download zip archive from my website
  3. Check if the server has already got the app installed. If so, copy and paste code files and finish.
  4. If fresh install, extract zip into a physical path that will map to the web application in IIS
  5. Open IIS, create web application under new or existing website
  6. Ensure there is a database connection for the PHP application to talk to
  7. Configure my app's settings (these are defined in my app)
  8. Ensure the App Pool user that my app will be running as has permissions to do the things i mentioned above
  9. Finally, test the app

So given that there is a long list of steps needed to install my app. My question is, is there a more efficient way to go about this? given that there are so many things to do. Can we create an MSI installer application or something similar?

  • 写回答

1条回答 默认 最新

  • douguanyun2169 2015-08-11 11:44
    关注

    Yes, all these steps can be automated. I would use a PowerShell script to perform all those actions.

    Writing a Windows program as a MSI is another option, the tool depends on the available skill-sets in your environment.

    To do this is not done in a few hours, you may need to learn about how to do the various things and then there will be a lot of testings. Different Windows versions are configurations have to be supported.

    I went through such a process and it took much longer than planned, so you have to think about who much such a script would be worth for you.

    If you only do a handful of installations every year it may not be worth investing the time creating the script.

    You may be able to use PowerShell DSC but you still have to learn, write configuration and test things.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛