OpenLXMP Installation Guide

OpenLXMP is a one-click installation package for LNMP and LAMP environments written in Bash shell. Using OpenLXMP, you can easily and quickly install and configure LNMP and LAMP environments.

Installation:

To install the LNMP environment as an example:

wget https://github.com/OpenLXMP/OpenLXMP/archive/main.zip && unzip main.zip && bash OpenLXMP-main/install.sh --lnmp

To install LAMP, replace --lnmp with --lamp. Additionally, you can replace --lnmp with --nginx to install only Nginx, or --mysql to install only MySQL.

Additionally, you can add the following parameters: --php_fileinfo, --php_ldap, --php_bz2, --php_sodium, --php_imap. Adding these parameters will enable the corresponding PHP extensions.

You can also modify the openlxmp.conf file to add custom Nginx and PHP compilation parameters, and to modify the default website directory, database directory, and other information.

There is a virtual host management tool called LXMP that can be used to add virtual hosts, set domain names, directories, logs, SSL, database, and other information.

Additionally, you can use the addons.sh script to install modules such as Redis, Memcached, Opcache, Fileinfo, LDAP, BZ2, Sodium, and IMAP.


中文翻译

OpenLXMP是一个使用Bash shell编写的LNMP、LAMP环境的一键安装包。使用OpenLXMP,您可以方便快捷地安装配置LNMP和LAMP环境。

安装:

以安装LNMP环境为例:

wget https://github.com/OpenLXMP/OpenLXMP/archive/main.zip && unzip main.zip && bash OpenLXMP-main/install.sh --lnmp

如安装LAMP将 --lnmp 替换为 --lamp ,除此之外还可以将 --lnmp 替换为 --nginx 只安装nginx,--mysql 只安装MySQL。

另外,还有以下参数:--php_fileinfo--php_ldap--php_bz2--php_sodium--php_imap。可以加上这些参数,加上将会开启对应的PHP扩展。

同时也可以修改openlxmp.conf来添加Nginx、PHP自定义编译参数、修改默认网站目录、数据库目录等信息。

有虚拟主机管理工具 lxmp 可用使用该工具添加虚拟主机,设置域名、目录、日志、SSL、数据库等信息。

另外也可以使用 addons.sh 脚本来安装redis、memcached、opcache、fileinfo、ldap、bz2、sodium、imap模块组件。