{"id":13405881,"url":"https://github.com/linuxeye/lnmp","last_synced_at":"2025-05-14T00:07:56.342Z","repository":{"id":7749927,"uuid":"9117329","full_name":"linuxeye/lnmp","owner":"linuxeye","description":"LEMP stack/LAMP stack/LNMP stack  installation scripts for CentOS/Redhat Debian and Ubuntu","archived":false,"fork":false,"pushed_at":"2025-03-26T02:32:00.000Z","size":4836,"stargazers_count":2719,"open_issues_count":17,"forks_count":763,"subscribers_count":199,"default_branch":"main","last_synced_at":"2025-04-10T02:17:50.320Z","etag":null,"topics":["lamp","lemp","lnmh","lnmp","lnmpa","mariadb","memcached","mysql","nginx","openresty","percona","php","redis","tengine"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linuxeye.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://oneinstack.com/donation/"]}},"created_at":"2013-03-30T14:53:04.000Z","updated_at":"2025-04-08T21:46:14.000Z","dependencies_parsed_at":"2025-04-10T02:17:52.915Z","dependency_job_id":"1e75a113-e909-4657-82f9-a28c906bb9da","html_url":"https://github.com/linuxeye/lnmp","commit_stats":{"total_commits":769,"total_committers":12,"mean_commits":64.08333333333333,"dds":0.5071521456436932,"last_synced_commit":"8234ad27310bc0668d7b8f3629794cc6a58e00a8"},"previous_names":["linuxeye/lnmp","oneinstack/lnmp","lj2007331/lnmp"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxeye%2Flnmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxeye%2Flnmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxeye%2Flnmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxeye%2Flnmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxeye","download_url":"https://codeload.github.com/linuxeye/lnmp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043886,"owners_count":22005032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lamp","lemp","lnmh","lnmp","lnmpa","mariadb","memcached","mysql","nginx","openresty","percona","php","redis","tengine"],"created_at":"2024-07-30T19:02:14.765Z","updated_at":"2025-05-14T00:07:56.325Z","avatar_url":"https://github.com/linuxeye.png","language":"Shell","readme":"## Recommend\n\nThis project no longer adds new features and is only for daily maintenance. It is recommended to use the docker-compose version. Project link: https://github.com/linuxeye/bypanel\n\n[Aliyun ECS recommend](https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=ird24dsz)\n\n## lnmp\nThis script is written using the shell, in order to quickly deploy `LEMP`/`LAMP`/`LNMP`/`LNMPA`/`LTMP`(Linux, Nginx/Tengine/OpenResty, MySQL in a production environment/MariaDB/Percona, PHP, JAVA), applicable to RHEL 7, 8, 9(including CentOS,RedHat,AlmaLinux,Rocky), Debian 9, 10, 11, 12, Ubuntu 16, 18, 20, 22, 24 and Fedora 27+ of 64.\n\nScript properties:\n- Continually updated, Provide Shell Interaction and Autoinstall\n- Source compiler installation, most stable source is the latest version, and download from the official site\n- Some security optimization\n- Providing a plurality of database versions (MySQL-8.0, MySQL-5.7, MySQL-5.6, MySQL-5.5, MariaDB-10.11, MariaDB-10.5, MariaDB-10.4, MariaDB-5.5, Percona-8.0, Percona-5.7, Percona-5.6, Percona-5.5, PostgreSQL, MongoDB)\n- Providing multiple PHP versions (PHP-8.4, PHP-8.3, PHP-8.2, PHP-8.1, PHP-8.0, PHP-7.4, PHP-7.3, PHP-7.2, PHP-7.1, PHP-7.0, PHP-5.6, PHP-5.5, PHP-5.4, PHP-5.3)\n- Provide Nginx, Tengine, OpenResty, Apache and ngx_lua_waf\n- Providing a plurality of Tomcat version (Tomcat-10, Tomcat-9, Tomcat-8, Tomcat-7)\n- Providing a plurality of JDK version (OpenJDK-8, OpenJDK-11, OpenJDK-17)\n- According to their needs to install PHP Cache Accelerator provides ZendOPcache, xcache, apcu, eAccelerator. And php extensions,include ZendGuardLoader,ionCube,SourceGuardian,imagick,gmagick,fileinfo,imap,ldap,calendar,phalcon,yaf,yar,redis,memcached,memcache,mongodb,swoole,xdebug\n- Installation Nodejs, Pureftpd, phpMyAdmin according to their needs\n- Install memcached, redis according to their needs\n- Jemalloc optimize MySQL, Nginx\n- Providing add a virtual host script, include Let's Encrypt SSL certificate\n- Provide Nginx/Tengine/OpenResty/Apache/Tomcat, MySQL/MariaDB/Percona, PHP, Redis, Memcached, phpMyAdmin upgrade script\n- Provide local,remote(rsync between servers),Aliyun OSS,Qcloud COS,UPYUN,QINIU,Amazon S3,Google Drive and Dropbox backup script\n\n## Installation\n\nInstall the dependencies for your distro, download the source and run the installation script.\n\n#### CentOS/Redhat\n\n```bash\nyum -y install wget screen\n```\n\n#### Debian/Ubuntu\n\n```bash\napt-get -y install wget screen\n```\n\n#### Download Source and Install\n\n```bash\nwget http://mirrors.linuxeye.com/lnmp-full.tar.gz\n# wget https://downloads.sourceforge.net/project/linuxeye/lnmp-full.tar.gz\ntar xzf lnmp-full.tar.gz\ncd lnmp\n```\n\nIf you disconnect during installation, you can execute the command `screen -r lnmp` to reconnect to the install window\n```bash\nscreen -S lnmp\n```\n\nIf you need to modify the directory (installation, data storage, Nginx logs), modify `options.conf` file before running install.sh\n```bash\n./install.sh\n```\n\n## How to install another PHP version\n\n```bash\n~/lnmp/install.sh --mphp_ver 54\n\n```\n\n## How to add Extensions\n\n```bash\n~/lnmp/addons.sh\n\n```\n\n## How to add a virtual host\n\n```bash\n~/lnmp/vhost.sh\n```\n\n## How to delete a virtual host\n\n```bash\n~/lnmp/vhost.sh --del\n```\n\n## How to add FTP virtual user\n\n```bash\n~/lnmp/pureftpd_vhost.sh\n```\n\n## How to backup\n\n```bash\n~/lnmp/backup_setup.sh    // Backup parameters\n~/lnmp/backup.sh    // Perform the backup immediately\ncrontab -l    // Can be added to scheduled tasks, such as automatic backups every day 1:00\n  0 1 * * * cd ~/lnmp/backup.sh  \u003e /dev/null 2\u003e\u00261 \u0026\n```\n\n## How to manage service\n\nNginx/Tengine/OpenResty:\n```bash\nsystemctl {start|stop|status|restart|reload} nginx\n```\nMySQL/MariaDB/Percona:\n```bash\nsystemctl {start|stop|restart|reload|status} mysqld\n```\nPostgreSQL:\n```bash\nsystemctl {start|stop|restart|status} postgresql\n```\nMongoDB:\n```bash\nsystemctl {start|stop|status|restart|reload} mongod\n```\nPHP:\n```bash\nsystemctl {start|stop|restart|reload|status} php-fpm\n```\nApache:\n```bash\nsystemctl {start|restart|stop} httpd\n```\nTomcat:\n```bash\nsystemctl {start|stop|status|restart} tomcat\n```\nPure-FTPd:\n```bash\nsystemctl {start|stop|restart|status} pureftpd\n```\nRedis:\n```bash\nsystemctl {start|stop|status|restart|reload} redis-server\n```\nMemcached:\n```bash\nsystemctl {start|stop|status|restart|reload} memcached\n```\n\n## How to upgrade\n\n```bash\n~/lnmp/upgrade.sh\n```\n\n## How to uninstall\n\n```bash\n~/lnmp/uninstall.sh\n```\n","funding_links":["https://oneinstack.com/donation/"],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxeye%2Flnmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxeye%2Flnmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxeye%2Flnmp/lists"}