{"id":20989464,"url":"https://github.com/nntoan/capima","last_synced_at":"2025-10-12T21:05:20.136Z","repository":{"id":68352468,"uuid":"219945180","full_name":"nntoan/capima","owner":"nntoan","description":"Capima: Production-ready web server stack for the minimalist","archived":false,"fork":false,"pushed_at":"2024-05-27T08:42:52.000Z","size":5314,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T09:34:50.383Z","etag":null,"topics":["automated","lamp-stack","lemp-stack","nginx"],"latest_commit_sha":null,"homepage":"https://capima.nntoan.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nntoan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-11-06T08:14:27.000Z","updated_at":"2024-06-23T13:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbdaf5aa-63ea-4c71-9f84-db48fe03a46f","html_url":"https://github.com/nntoan/capima","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nntoan/capima","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntoan%2Fcapima","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntoan%2Fcapima/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntoan%2Fcapima/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntoan%2Fcapima/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nntoan","download_url":"https://codeload.github.com/nntoan/capima/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntoan%2Fcapima/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012969,"owners_count":26085218,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["automated","lamp-stack","lemp-stack","nginx"],"created_at":"2024-11-19T06:24:57.993Z","updated_at":"2025-10-12T21:05:20.105Z","avatar_url":"https://github.com/nntoan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is Capima?\n\nCapima is a modern web server stack designed to help you manage your PHP web application and websites easier and faster. Our stack is _production-ready_ stack which currently in used for many customers around the globe.\n\n![Capima](screenshots/capima.png)\n\n\u003e Installing, configuring and optimizing your web server has never been so easy.\n\n# Getting Started\n\n## Requirements\n\nBefore you can use Capima, please make sure your server fulfils these requirements.\n\nSoftware requirement\n\n* Ubuntu 16.04/18.04/20.04/22.04 x86_64 LTS (Fresh installation)\n* If the server is virtual (VPS), OpenVZ may not be supported (Kernel 2.6)\n\nHardware requirement\n\n* More than 5GB HDD\n* At least 2 core processor\n* 2048MB minimum RAM\n\n*Highly recommend* to spin up your first Capima server with \u003ca href=\"https://www.jdoqocy.com/click-100471996-12454592\" target=\"_top\"\u003eContabo VPS\u003c/a\u003e\u003cimg src=\"https://www.lduhtrp.net/image-100471996-12454592\" width=\"1\" height=\"1\" border=\"0\"/\u003e - a promise of German quality at incredible prices.\n\n## What's installed with Capima?\n\n* nginX (frontend - port 80)\n* Apache 2 (backend - port 81)\n* PHP-FPM\n  * 5.5 (only available in 16.04)\n  * 5.6 (only available in 16.04)\n  * 7.0 (only available in 18.04)\n  * 7.1 (only available in 18.04)\n  * 7.2 (only available in 20.04)\n  * 7.3 (only available in 20.04)\n  * 7.4\n  * 8.0\n  * 8.1\n  * 8.2\n  * 8.3\n* MariaDB 10.4\n  * 10.6 (available in 22.04)\n  * Performance optimised for general purposes.\n* Node.js LTS (18.x)\n* Python\n  * Python 3 if Ubuntu 20.04 and above.\n* Redis (can be enabled later by CLI)\n* ElasticSearch (can be enabled later by CLI)\n  * 5.x if Ubuntu 16.04\n  * 6.x if Ubuntu 18.04\n  * 7.x if Ubuntu 20.04\n* MailHog (can be enabled later by CLI)\n* Postfix\n* Memcached (disabled by default)\n* Beanstalk (disabled by default)\n* Firewalld\n  * Port 22, 80, 443 accessible by default.\n  * ufw, iptables will be disabled/removed.\n* Fail2ban\n\n## Installation\n\nRun the following command with sudo or root user.\n\n```bash\nexport DEBIAN_FRONTEND=noninteractive; echo 'Acquire::ForceIPv4 \"true\";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4; sudo apt-get update; sudo apt-get install curl netcat-openbsd ca-certificates wget -y; curl -4 --silent --location https://capima.nntoan.com/files/installers/install.sh | sudo bash -; export DEBIAN_FRONTEND=newt\n```\n\n![MOTD](screenshots/capima-motd.png)\n\n## Usage\n\nAfter installed, you are able to manage your webservers by the following command.\n\n```bash\n$ sudo capima\n\nCAPIMA v0.0.0\n\nUsage:\n capima [commands] [options]\n\nOptions:\n --version(-v)    Display current version.\n --help(-h)       Display this help message.\n --quiet(-q)      Do not output any message.\n --ansi           Force ANSI output.\n --no-ansi        Disable ANSI output.\n\nAvailable commands:\n web              Webapps management panel (add/update/delete).\n db               Databases management panel (add/update/delete).\n use              Switch between version of PHP-CLI.\n enable           Enable optional services (elasticsearch, redis, mailhog).\n restart          Restart Capima services.\n info             Show webapps information (under development).\n logs             Tail the last 200 lines of logfile (apache,fpm,nginx).\n self-update      Check latest version and performing self-update.\n```\n\nPlease note that you will need to switch to `capima` user in order to work with your webapps.\n\n```bash\n$ sudo su - capima\n```\n\n`capima` user can use `sudo capima` without being prompted password. That command is the only sudo command `capima` user can use. We **DO NOT** recommend to give `capima` full `sudo` privileges. Webserver user should never given `sudo` privileges as per security best practices.\n\n![Daily Usage](screenshots/capima-daily-usage.png)\n\n## List of commands\n\nQuick guide of commands available in Capima for configuration and adjustment of this application.\n\n### WEB\n\nManage your websites, create, delete, disable your sites, enable SSL for any of your sites.\n\n```bash\n$ sudo capima web add\n```\n\nYou will enter the interactive mode like the following screenshots:\n\n![Add new site - 1](screenshots/capima-web-add-1.png)\n\n![Add new site - 2](screenshots/capima-web-add-2.png)\n\n```bash\n$ sudo capima web delete\n```\n\nEnter the app name you would like to delete:\n\n![Delete app](screenshots/capima-web-del.png)\n\n### DB\n\nManage your databases.\n\n```bash\n$ sudo capima db add\n```\n\nAdding new database\n\n![Add new database 1](screenshots/capima-db-add-1.png)\n\n![Add new database 2](screenshots/capima-db-add-2.png)\n\n```bash\n$ sudo capima db delete\n```\n\nDelete a database\n\n![Delete a database](screenshots/capima-db-del.png)\n\n### USE\n\nSwitch your PHP-CLI version quickly.\n\n```bash\n$ sudo capima use x.x\n```\n\nReplace x.x with your targeted PHP version (e.g 7.1):\n\n![PHP switcher](screenshots/capima-use-php.png)\n\n# License\n\nCapima is released under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnntoan%2Fcapima","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnntoan%2Fcapima","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnntoan%2Fcapima/lists"}