{"id":28640701,"url":"https://github.com/neurobin/lampi","last_synced_at":"2025-06-25T12:32:03.961Z","repository":{"id":84265613,"uuid":"61494230","full_name":"neurobin/lampi","owner":"neurobin","description":"LAMP installer for Ubuntu","archived":false,"fork":false,"pushed_at":"2020-05-27T14:45:43.000Z","size":42,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-12T20:08:03.500Z","etag":null,"topics":["apache2","custom-domain","lamp-installation","lampi","linux","localhost","localhost-management","localhost-related","mysql","php","php7","phpmyadmin","server","ubuntu"],"latest_commit_sha":null,"homepage":"https://neurobin.org/projects/softwares/unix/lampi","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/neurobin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","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,"zenodo":null},"funding":{"patreon":"neurobin","liberapay":"neurobin","ko_fi":"neurobin","issuehunt":"neurobin","open_collective":"neurobin","otechie":"neurobin"}},"created_at":"2016-06-19T18:30:15.000Z","updated_at":"2023-12-21T17:13:28.000Z","dependencies_parsed_at":"2023-05-24T04:45:26.649Z","dependency_job_id":null,"html_url":"https://github.com/neurobin/lampi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/neurobin/lampi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobin%2Flampi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobin%2Flampi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobin%2Flampi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobin%2Flampi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neurobin","download_url":"https://codeload.github.com/neurobin/lampi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobin%2Flampi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261874619,"owners_count":23223152,"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":["apache2","custom-domain","lamp-installation","lampi","linux","localhost","localhost-management","localhost-related","mysql","php","php7","phpmyadmin","server","ubuntu"],"created_at":"2025-06-12T20:08:01.903Z","updated_at":"2025-06-25T12:32:03.944Z","avatar_url":"https://github.com/neurobin.png","language":"Shell","funding_links":["https://patreon.com/neurobin","https://liberapay.com/neurobin","https://ko-fi.com/neurobin","https://issuehunt.io/r/neurobin","https://opencollective.com/neurobin","https://otechie.com/neurobin"],"categories":[],"sub_categories":[],"readme":"The **lampi** script can install the required packages automatically and setup LAMP for you. It can also be used to create custom sites (both http and https) on *localhost*.\n\n**The installation is only for Ubuntu, other functionality (like setting up custom sites) are available for other Linux flavors as well**\n\n# Install:\n**lampi** is a single script. You can install it or run it from anywhere by specifying its path. This is how you can install it:\n\n```sh\nsudo chmod +x install.sh\nsudo ./install.sh\n```\ni.e just give the *install.sh* file execution permission and run it, or you can manually copy the **lampi** script to a standard bin (e.g */usr/local/bin*) directory and assign execution permission to it.\n\n# Usage:\n\n1. To install a basic LAMP installation with a default setup, run `sudo lampi -i`\n2. To install a basic LAMP with SSL site (https) run `sudo lampi -i -s`\n3. To simply setup a new site run `sudo lampi -n site-name -dr document-root`, where `site-name` is the desired name of the local site and `document-root` is the directory where you want to create this site.\n4. Do the same as no. 3 but enable SSL (https too): `sudo lampi -n site-name -dr document-root -s`\n\n# Examples:\n\nTo create a site named **example.com.local** in *~/example*, run the following:\n\n```sh\nsudo lampi -s -n example.com.local -dr ~/example\n```\nThe above command will create a site (with both *http* and *https*) in *~/example* (*/home/user/example*) directory. The site will be accessible through the URLs:\nhttp://example.com.local and https://example.com.local\n\n**For https site you will have to add exception to your browser for the SSL certificate**\n\nIf you haven't installed the LAMP yet, then just add a `-i` flag to the above command:\n\n```sh\nsudo lampi -i -s -n example.com.local -dr ~/example\n```\n\n## Amazon AWS EC2\n\nOn amazon aws ec2 ubuntu server instance, you can setup your LAMP server pretty easily:\n\n```bash\ngit clone https://github.com/neurobin/lampi\ncd lampi\nsudo ./install.sh\n```\nNow to install LAMP, run `sudo lampi -i`\n\n```bash\nsudo lampi -i -n mydomain.com -dr /var/www/mydomain.com -nip\n```\nThe above will install LAMP stack and create a website named `mydomain.com` in */var/www/mydomain.com* (the `-nip` option is required if you want to expose the site publicly)\n\n\n# Options:\n\n```sh\nlampi [-n, -dr, -i, -ri, -u, -s, -so, -rm, -rmd, -nfo, -nsr, -nip, -f -nu, -v, -h]\n```\n\nOption | Alt. option | Explanation\n------ | ----------- | ----------\n-n [name] | --name [name]                | server name (default localhost)\n-dr [path] | --doc-root [path]           | arbitrary document root\n-i | --install                           | install LAMP\n-ri | --reinstall                        | reinstall LAMP\n-u | --uninstall                         | uninstall LAMP\n-s | --ssl                               | enable SSL\n-rm [name] | --remove [name]             | remove a site\n-rmd [name] | --remove-with-dir [name]   | remove a site and it's directory\n-f | --force                             | force\n-nu | --no-update                        | do not run apt-get update\n-so | --ssl-only                         | configure for https site only \n-npa | --no-php-myadmin                  | no php my admin\n-nfo | --no-info                         | do not create info.php\n-nsr | --no-server-restart               | no server restart\n-nip | --no-ip                           | no ip, i.e use * instead of 127.0.0.1\n-v | --version                           | show version info\n-h | --help                              | show help \n\n# Notes:\n\n1. All options to **lampi** are optional. If any option is not passed, it will be defaulted to some predefined value.\n2. The `-u` flag uses `apt-get purge` i.e it will remove LAMP as well as its configuration.\n\n# Tested On:\n\n1. Xubuntu 14.04.4 LTS\n2. Xubuntu 16.04 LTS\n3. Ubuntu 16.10\n4. Amazon AWS EC2 Ubuntu 16.04 server instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurobin%2Flampi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneurobin%2Flampi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurobin%2Flampi/lists"}