我是我妈妈的小企业的常驻“计算机专家”。大约一年前,我在商店的 LAN 上设置了一台备用 Dell 盒子作为 Ubuntu 服务器,在其上设置了一个 LAMP 堆栈,并构建了一些内部网 Web 应用程序(主要使用 PHP 和 MySQL),用于管理客户奖励之类的事情我继续实现了一个自定义条形码和 cooking 说明标签生成器,其前端可在 Avery 模板上打印,以及一个成熟的收银机前端,可扫描条形码、自定义库存 Hook 管理和一套会计报告。我的小型数据库应用程序已成为商店日常流程和业务模式的一部分。
最近,我妈妈告诉我,她有一个潜在的特许经营商,想要获得商业模式的许可,并在另一个州开设一家姊妹店,并使用我的软件。
现在,我的代码很好而且稳定,我有大量的使用它的文档,但我不会帮助新人启动和运行它。更糟糕的是,它不仅仅是一个简单的 LAMP 堆栈,其文档根目录中包含一些文件,安装还涉及使用自定义 Apache 配置文件、设置 MySQL 数据库和用户,以及安装一些深奥的依赖项,例如 ImageMagick 及其 PHP Imagick 扩展(我在其中安装了 ImageMagick 和 PHP Imagick 扩展)。必须从源代码编译!)
有没有什么好的方法可以制作某种一次性安装脚本或包来安装我需要的依赖项、我的自定义 apache 配置,并将我的 PHP 文件全部提取到位?我可以向以前从未配置过 Apache 的人展示一些无需我帮助即可启动并运行 Apache 的东西吗?也许甚至可以通过某种方式轻松获取整个操作系统和堆栈的镜像,然后无需专业知识即可将其克隆到新驱动器上?
抱歉,如果这是主观的,但我的谷歌让我失望了。
最佳答案
您查看了吗 Server2Go ?
Server2Go is a Webserver that runs out of the box without any installation and on write protected media. This means that web applications based on Server2Go can be used directly from cdrom, a usb stick or from any folder on a hard disk without the hassle of configuring Apache, PHP or MySQL.
Server2Go allows you to create a standalone working web site or PHP application on a CD-ROM. There are many examples of its possible useses such as catalogue software, calculation programmes, image campaigns (CMS-based), computer based training lessons or other applicatons. Most PHP-Software such as the content management system Joomla or the computer based training software Moodle can be used from CD-ROM with the help of Server2Go.
关于php - 打包 LAMP 应用程序以方便部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14197083/