{"id":19857332,"url":"https://github.com/xesk/bamp","last_synced_at":"2025-05-02T02:30:35.956Z","repository":{"id":75457708,"uuid":"120913444","full_name":"xEsk/BAMP","owner":"xEsk","description":"BAMP is a small macOS utility to manage your local server based on Apache + MongoDB + PHP using the Homebrew toolkit.","archived":false,"fork":false,"pushed_at":"2023-12-27T17:32:09.000Z","size":5081,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T21:04:11.085Z","etag":null,"topics":["apache","homebrew","macos","mongodb","php","xcode"],"latest_commit_sha":null,"homepage":"https://xesk.github.io/BAMP/","language":"Objective-C","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/xEsk.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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}},"created_at":"2018-02-09T14:10:39.000Z","updated_at":"2025-03-12T08:09:28.000Z","dependencies_parsed_at":"2023-06-06T13:15:33.027Z","dependency_job_id":"3e4177e2-2158-4896-b313-aa3bf729fba2","html_url":"https://github.com/xEsk/BAMP","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xEsk%2FBAMP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xEsk%2FBAMP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xEsk%2FBAMP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xEsk%2FBAMP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xEsk","download_url":"https://codeload.github.com/xEsk/BAMP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972413,"owners_count":21673600,"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":["apache","homebrew","macos","mongodb","php","xcode"],"created_at":"2024-11-12T14:18:17.904Z","updated_at":"2025-05-02T02:30:31.338Z","avatar_url":"https://github.com/xEsk.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/xEsk/BAMP/master/BAMP/Resources/Assets.xcassets/AppIcon.appiconset/128x128@2x.png\"/\u003e\n\u003c/p\u003e\n\n## What is BAMP?\n**BAMP** (**B**rew+**A**pache+**M**ongoDB+**P**HP) is a small macOS utility to manage your local server based on Apache + MongoDB + PHP using the Homebrew toolkit.\n\nThe tool assumes that you have installed PHP using Homebrew. \n\n\u003e Apache and MongoDB are not required to be installed using Homebrew, but I recomend to install them using homebrew.\n\n## Download\nIt is free and open source. Download the last version [here](https://github.com/xEsk/BAMP/releases).\n\n## Why BAMP if there is MAMP, XAMP, etc...?\nI have been using MAMP for years now, but I don't like to wait others to update so I prefere use my own server setup (and I love how homebrew do its job).\n\n## Required tools\nYou only need to have installed the [Homebrew](https://brew.sh/) in your system (if you are already not using it, don't lose time reading this and install it!).\n\n## Installation\nTo install MongoDB: ``brew install mongodb``\n\n[Follow those instructions about how to install Apache and multiple PHP versions in your system](https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions). \n\nRemember to configure your php.ini and maybe some configs in httpd.conf.\n\nIf you will control your Apache with BAMP, the **PHP Switcher Script** is not required, BAMP is a PHP Switcher!\n\n## Troubleshootings\nI'm sure at 99% that your PHP code will not run on your first try, and your fancy php code ``\u003c?php echo \"Hello world!\";`` will be printed in screen instead of your message. Well, maybe it is because you missed to tell apache how to run PHP code. In **httpd.conf** append ``AddType application/x-httpd-php .php`` in ``\u003cIfModule mime_module\u003e`` section.\n\nOh! Why **index.php** is not working! You missed to tell Apache to recognise index.php! In **httpd.conf** search **IfModule dir_module** and add index.php.\nExample:``\u003cIfModule dir_module\u003e DirectoryIndex index.html index.php\u003c/IfModule\u003e``\n\nThe mongodb extension on macOS High Sierra is not working! To fix this headache follow [those instructions](https://github.com/Homebrew/homebrew-core/issues/21475#issuecomment-352155715).\n\n## How to use BAMP\nJust push the **ON** button and Apache will run up. Push **OFF** and Apach will stop.\n\nYou can change at any time the PHP to use in your Apache, simple select one PHP version and tachan!\n\nAlso you can configure multiple DocumentsRoot and select one of them at any time.\n\nThe server will continue running up, even when BAMP is not running! What does it means? You don't need BAMP keept open to use your server! ;)\n\n## Special considerations\nThe apache is started up using ``sudo apachectl start``, so if you restart your computer you will need to start Apache again.\n\nThe MongoDB server will be started-up automatically, but if an instance of mongod is already running when starting Apache, then BAMP will not manage the start-stop of mongod! \n\n## Icon credits\nThe icon is based on [icons8 parrot icon](https://icons8.com/icon/36840/parrot)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxesk%2Fbamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxesk%2Fbamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxesk%2Fbamp/lists"}