php - 打包 LAMP 应用程序以方便部署

标签 php linux apache deployment lamp

我是我妈妈的小企业的常驻“计算机专家”。大约一年前,我在商店的 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/

相关文章:

php - 维基百科样式包含 - 循环检测 PHP

php - 从 symfony 中的 swift mailer 发送时防止电子邮件中的标题

linux - 适用于括号中包含十进制数字和大写/小写字母的行的 Shell 命令

c - execve() 中的 linux_binprm

apache - 为 SSL 配置 Httpd

linux - 如何使用 mod_rewrite 将 URL 从一个子域重定向到另一个子域?

html - 网站加载速度 - 缓慢的 html 加载

php - Drupal 7 FAPI-在验证或提交处理程序中添加表单元素

php - 如何安全地将数据库连接变量传递到新页面?

ruby - 我无法在 cygwin 上启动 Chef