{"id":13459313,"url":"https://github.com/oneinstack/oneinstack","last_synced_at":"2025-05-14T00:08:19.836Z","repository":{"id":37677589,"uuid":"37447028","full_name":"oneinstack/oneinstack","owner":"oneinstack","description":"OneinStack - A PHP/JAVA Deployment Tool","archived":false,"fork":false,"pushed_at":"2025-03-24T12:30:38.000Z","size":16284,"stargazers_count":2429,"open_issues_count":65,"forks_count":608,"subscribers_count":112,"default_branch":"main","last_synced_at":"2025-04-10T03:44:39.194Z","etag":null,"topics":["jdk","lamp","lemp","lnmh","lnmp","lnmpa","lnmt","mariadb","memcached","mysql","nginx","oneinstack","openresty","percona","php","phpmyadmin","pureftpd","redis","tengine","tomcat"],"latest_commit_sha":null,"homepage":"https://oneinstack.com/","language":"Shell","has_issues":true,"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/oneinstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":"2015-06-15T06:16:12.000Z","updated_at":"2025-04-07T07:38:10.000Z","dependencies_parsed_at":"2023-02-01T04:46:49.874Z","dependency_job_id":"7bea1945-efa6-47b3-bdad-94183bf5f42c","html_url":"https://github.com/oneinstack/oneinstack","commit_stats":{"total_commits":567,"total_committers":41,"mean_commits":"13.829268292682928","dds":"0.23456790123456794","last_synced_commit":"1ad23bb9fe0d4072e0302dde32b5a1242d31790e"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneinstack%2Foneinstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneinstack%2Foneinstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneinstack%2Foneinstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneinstack%2Foneinstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oneinstack","download_url":"https://codeload.github.com/oneinstack/oneinstack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043982,"owners_count":22005047,"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":["jdk","lamp","lemp","lnmh","lnmp","lnmpa","lnmt","mariadb","memcached","mysql","nginx","oneinstack","openresty","percona","php","phpmyadmin","pureftpd","redis","tengine","tomcat"],"created_at":"2024-07-31T09:01:15.375Z","updated_at":"2025-05-14T00:08:14.807Z","avatar_url":"https://github.com/oneinstack.png","language":"Shell","readme":"[English](README.md) | [中文](README.zh-CN.md)\n\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 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.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, Caddy, 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.oneinstack.com/oneinstack-full.tar.gz\ntar xzf oneinstack-full.tar.gz\ncd oneinstack\n```\n\nIf you disconnect during installation, you can execute the command `screen -r oneinstack` to reconnect to the install window\n```bash\nscreen -S oneinstack\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~/oneinstack/install.sh --mphp_ver 54\n\n```\n\n## How to add Extensions\n\n```bash\n~/oneinstack/addons.sh\n\n```\n\n## How to add a virtual host\n\n```bash\n~/oneinstack/vhost.sh\n```\n\n## How to delete a virtual host\n\n```bash\n~/oneinstack/vhost.sh --del\n```\n\n## How to add FTP virtual user\n\n```bash\n~/oneinstack/pureftpd_vhost.sh\n```\n\n## How to backup\n\n```bash\n~/oneinstack/backup_setup.sh    // Backup parameters\n~/oneinstack/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 ~/oneinstack/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~/oneinstack/upgrade.sh\n```\n\n## How to uninstall\n\n```bash\n~/oneinstack/uninstall.sh\n```\n\n## Installation\n\nFor feedback, questions, and to follow the progress of the project: \u003cbr /\u003e\n[Telegram Group](https://t.me/oneinstackn)\u003cbr /\u003e\n[OneinStack](https://oneinstack.com)\u003cbr /\u003e\n","funding_links":["https://oneinstack.com/donation/"],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneinstack%2Foneinstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneinstack%2Foneinstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneinstack%2Foneinstack/lists"}