{"id":13405920,"url":"https://github.com/teddysun/lamp","last_synced_at":"2025-05-13T23:05:57.178Z","repository":{"id":11479880,"uuid":"13950167","full_name":"teddysun/lamp","owner":"teddysun","description":"Install LAMP (Linux + Apache + MySQL/MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu","archived":false,"fork":false,"pushed_at":"2025-04-09T02:37:31.000Z","size":3239,"stargazers_count":2909,"open_issues_count":44,"forks_count":1067,"subscribers_count":150,"default_branch":"master","last_synced_at":"2025-04-10T00:13:58.015Z","etag":null,"topics":["almalinux","amazonlinux2","apache","centos","debian","lamp","mariadb","mysql","php","rhel","rockylinux","shell","ubuntu"],"latest_commit_sha":null,"homepage":"https://lamp.sh","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teddysun.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}},"created_at":"2013-10-29T08:24:17.000Z","updated_at":"2025-04-09T12:15:04.000Z","dependencies_parsed_at":"2023-02-18T15:55:15.258Z","dependency_job_id":"828976e1-971c-4de5-a31b-7717297d6b30","html_url":"https://github.com/teddysun/lamp","commit_stats":{"total_commits":1974,"total_committers":7,"mean_commits":282.0,"dds":0.04103343465045595,"last_synced_commit":"3b33504e31c4d3cf51daa948f873f53f88da0d55"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teddysun","download_url":"https://codeload.github.com/teddysun/lamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131314,"owners_count":21052819,"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":["almalinux","amazonlinux2","apache","centos","debian","lamp","mariadb","mysql","php","rhel","rockylinux","shell","ubuntu"],"created_at":"2024-07-30T19:02:15.935Z","updated_at":"2025-04-10T00:14:25.310Z","avatar_url":"https://github.com/teddysun.png","language":"Shell","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://lamp.sh/\" target=\"_blank\"\u003e\n        \u003cimg alt=\"LAMP\" src=\"https://github.com/teddysun/lamp/blob/master/conf/lamp.png\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n## Description\n\n[LAMP](https://lamp.sh/) is a powerful bash script for the installation of Apache + PHP + MySQL/MariaDB and so on. You can install Apache + PHP + MySQL/MariaDB in an very easy way, just need to choose what you want to install before installation. And all things will be done in few minutes.\n\n- [Supported System](#supported-system)\n- [Supported Software](#supported-software)\n- [Software Version](#software-version)\n- [Installation](#installation)\n- [Upgrade](#upgrade)\n- [Backup](#backup)\n- [Uninstall](#uninstall)\n- [Default Installation Location](#default-installation-location)\n- [Process Management](#process-management)\n- [lamp command](#lamp-command)\n- [Bugs \u0026 Issues](#bugs--issues)\n- [License](#license)\n\n## Supported System\n\n- Amazon Linux 2\n- AlmaLinux 8\n- AlmaLinux 9\n- CentOS Stream 8\n- CentOS Stream 9\n- Rocky Linux 8\n- Rocky Linux 9\n- Debian 10\n- Debian 11\n- Debian 12\n- Ubuntu 20.04\n- Ubuntu 22.04\n- Ubuntu 24.04\n\n## Supported Software\n\n- Apache-2.4 (Include HTTP/2 module: [mod_http2](https://httpd.apache.org/docs/2.4/mod/mod_http2.html))\n- Apache Additional Modules: [mod_wsgi](https://github.com/GrahamDumpleton/mod_wsgi), [mod_security](https://github.com/SpiderLabs/ModSecurity), [mod_jk](https://tomcat.apache.org/download-connectors.cgi)\n- MySQL-5.7, MySQL-8.0, MariaDB-10.5, MariaDB-10.6, MariaDB-10.11\n- PHP-7.4, PHP-8.0, PHP-8.1, PHP-8.2\n- PHP Additional extensions: [Zend OPcache](https://www.php.net/manual/en/book.opcache.php), [ionCube Loader](https://www.ioncube.com/loaders.php), [PDFlib](https://www.pdflib.com/), [APCu](https://pecl.php.net/package/APCu), [imagick](https://pecl.php.net/package/imagick), [libsodium](https://github.com/jedisct1/libsodium-php), [memcached](https://github.com/php-memcached-dev/php-memcached), [redis](https://github.com/phpredis/phpredis), [mongodb](https://pecl.php.net/package/mongodb), [swoole](https://github.com/swoole/swoole-src), [yaf](https://github.com/laruence/yaf), [yar](https://github.com/laruence/yar), [msgpack](https://pecl.php.net/package/msgpack), [psr](https://github.com/jbboehr/php-psr), [phalcon](https://github.com/phalcon/cphalcon), [grpc](https://github.com/grpc/grpc), [xdebug](https://github.com/xdebug/xdebug)\n- Other Software: [OpenSSL](https://github.com/openssl/openssl), [ImageMagick](https://github.com/ImageMagick/ImageMagick), [Memcached](https://github.com/memcached/memcached), [phpMyAdmin](https://github.com/phpmyadmin/phpmyadmin), [Adminer](https://github.com/vrana/adminer), [Redis](https://github.com/redis/redis), [re2c](https://github.com/skvadrik/re2c), [KodExplorer](https://github.com/kalcaddle/KodExplorer)\n\n## Software Version\n\n| Apache \u0026 Additional Modules   | Version                                                   |\n|-------------------------------|-----------------------------------------------------------|\n| httpd                         | 2.4.63                                                    |\n| apr                           | 1.7.5                                                     |\n| apr-util                      | 1.6.3                                                     |\n| openssl                       | 1.1.1w                                                    |\n| mod_wsgi                      | 4.9.4                                                     |\n| mod_security2                 | 2.9.6                                                     |\n| mod_jk                        | 1.2.50                                                    |\n\n| Database                      | Version                                                   |\n|-------------------------------|-----------------------------------------------------------|\n| MySQL                         | 5.7.44, 8.0.41                                            |\n| MariaDB                       | 10.5.28, 10.6.21, 10.11.11                                |\n\n| PHP \u0026 Additional extensions   | Version                                                   |\n|-------------------------------|-----------------------------------------------------------|\n| PHP                           | 7.4.33, 8.0.30, 8.1.32, 8.2.28                            |\n| ionCube Loader                | 14.4.0                                                    |\n| PDFlib                        | 10.0.0                                                    |\n| APCu extension                | 5.1.21                                                    |\n| gRPC extension                | 1.58.0                                                    |\n| ImageMagick                   | 7.1.1-38                                                  |\n| imagick extension             | 3.7.0                                                     |\n| libsodium                     | 1.0.19                                                    |\n| libsodium extension           | 2.0.23                                                    |\n| memcached                     | 1.6.6                                                     |\n| libmemcached                  | 1.0.18                                                    |\n| memcached extension           | 3.1.5                                                     |\n| re2c                          | 3.0                                                       |\n| redis                         | 5.0.14                                                    |\n| redis extension               | 5.3.7                                                     |\n| mongodb extension             | 1.16.2                                                    |\n| swoole extension              | 4.8.12                                                    |\n| yaf extension                 | 3.3.5                                                     |\n| yar extension                 | 2.3.2                                                     |\n| msgpack extension             | 2.1.2                                                     |\n| psr extension                 | 1.2.0                                                     |\n| phalcon extension             | 5.3.1                                                     |\n| xdebug extension              | 3.1.6                                                     |\n\n| Database Management Tools     | Version                                                   |\n|-------------------------------|-----------------------------------------------------------|\n| phpMyAdmin                    | 5.2.2                                                     |\n| Adminer                       | 5.2.0                                                     |\n\n| File Managerment Tool         | Version                                                   |\n|-------------------------------|-----------------------------------------------------------|\n| KodExplorer                   | 4.52                                                      |\n\n## Installation\n\n- If your server system: Amazon Linux 2/CentOS/Rocky Linux/AlmaLinux\n```bash\nyum -y install wget git\ngit clone https://github.com/teddysun/lamp.git\ncd lamp\nchmod 755 *.sh\n./lamp.sh\n```\n\n- If your server system: Debian/Ubuntu\n```bash\napt-get -y install wget git\ngit clone https://github.com/teddysun/lamp.git\ncd lamp\nchmod 755 *.sh\n./lamp.sh\n```\n\n- [Automation install mode](https://lamp.sh/autoinstall.html)\n```bash\n./lamp.sh -h\n```\n\n- Automation install mode example\n```bash\n./lamp.sh --apache_option 1 --apache_modules mod_wsgi,mod_security --db_option 1 --db_root_pwd teddysun.com --php_option 1 --php_extensions apcu,ioncube,imagick,redis,mongodb,libsodium,swoole --db_manage_modules phpmyadmin,adminer --kodexplorer_option 1\n```\n\n## Upgrade\n\n```bash\ncd ~/lamp\ngit reset --hard         // Resets the index and working tree\ngit pull                 // Get latest version first\nchmod 755 *.sh\n\n./upgrade.sh             // Select one to upgrade\n./upgrade.sh apache      // Upgrade Apache\n./upgrade.sh db          // Upgrade MySQL or MariaDB\n./upgrade.sh php         // Upgrade PHP\n./upgrade.sh phpmyadmin  // Upgrade phpMyAdmin\n./upgrade.sh adminer     // Upgrade Adminer\n```\n\n## Backup\n\n- You must modify the config before run it\n- Backup MySQL or MariaDB datebases, files and directories\n- Backup file is encrypted with AES256-cbc with SHA1 message-digest (Depends on `openssl` command) (option)\n- Auto transfer backup file to Google Drive (Depends on [`rclone`](https://teddysun.com/469.html) command) (option)\n- Auto transfer backup file to FTP server (Depends on `ftp` command) (option)\n- Auto delete remote file from Google Drive or FTP server (option)\n\n```bash\n./backup.sh\n```\n\n## Uninstall\n\n```bash\n./uninstall.sh\n```\n\n## Default Installation Location\n\n| Apache Location            | Path                                                |\n|----------------------------|-----------------------------------------------------|\n| Install prefix             | /usr/local/apache                                   |\n| Web root location          | /data/www/default                                   |\n| Main configuration File    | /usr/local/apache/conf/httpd.conf                   |\n| Default virtual host conf  | /usr/local/apache/conf/vhost/default.conf           |\n| Virtual host conf          | /usr/local/apache/conf/vhost/your_virtual_host.conf |\n| Virtual host SSL location  | /usr/local/apache/conf/ssl/your_virtual_host        |\n| Virtual host location      | /data/www/your_virtual_host_names                   |\n| Virtual host log location  | /data/wwwlog/your_virtual_host_names                |\n\n| phpMyAdmin Location        | Path                                                |\n|----------------------------|-----------------------------------------------------|\n| Installation location      | /data/www/default/phpmyadmin                        |\n\n| Adminer Location           | Path                                                |\n|----------------------------|-----------------------------------------------------|\n| Installation location      | /data/www/default/adminer.php                       |\n\n| KodExplorer Location       | Path                                                |\n|----------------------------|-----------------------------------------------------|\n| Installation location      | /data/www/default/kod                               |\n\n| PHP Location               | Path                                                |\n|----------------------------|-----------------------------------------------------|\n| Install prefix             | /usr/local/php                                      |\n| Configuration file         | /usr/local/php/etc/php.ini                          |\n| ini additional location    | /usr/local/php/php.d                                |\n\n| MySQL Location             | Path                                                |\n|----------------------------|-----------------------------------------------------|\n| Install prefix             | /usr/local/mysql                                    |\n| Default data location      | /usr/local/mysql/data                               |\n| my.cnf configuration File  | /etc/my.cnf                                         |\n\n| MariaDB Location           | Path                                                |\n|----------------------------|-----------------------------------------------------|\n| Install prefix             | /usr/local/mariadb                                  |\n| Default data location      | /usr/local/mariadb/data                             |\n| my.cnf configuration file  | /etc/my.cnf                                         |\n\n## Process Management\n\n| Process       | Command                                                 |\n|---------------|---------------------------------------------------------|\n| Apache        | /etc/init.d/httpd  (start\\|stop\\|status\\|restart)       |\n| MySQL/MariaDB | /etc/init.d/mysqld (start\\|stop\\|status\\|restart)       |\n| Memcached     | /etc/init.d/memcached (start\\|stop\\|restart)            |\n| Redis-Server  | /etc/init.d/redis-server (start\\|stop\\|restart)         |\n\n## lamp Command\n\n| Command       | Description                       |\n|---------------|-----------------------------------|\n| lamp add      | Create a new Apache virtual host  |\n| lamp del      | Delete a Apache virtual host      |\n| lamp list     | List all of Apache virtual hosts  |\n| lamp version  | Print version and exit            |\n\n## Bugs \u0026 Issues\n\nPlease feel free to report any bugs or issues to us, email to: i@teddysun.com or [open issues](https://github.com/teddysun/lamp/issues) on Github.\n\nSupport(Chinese only): https://lamp.sh/support.html\n\n## License\n\nCopyright (C) 2013 - 2025 [Teddysun](https://teddysun.com/)\n\nLicensed under the [GPLv3](LICENSE) License.\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddysun%2Flamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteddysun%2Flamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddysun%2Flamp/lists"}