{"id":15172654,"url":"https://github.com/instazdll/drupal-installer","last_synced_at":"2025-11-13T08:30:18.018Z","repository":{"id":218579490,"uuid":"746819613","full_name":"InstaZDLL/drupal-installer","owner":"InstaZDLL","description":"A script that automatically install Drupal 10.2.3 with apache2 HTTP","archived":false,"fork":false,"pushed_at":"2024-04-12T08:15:28.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T15:54:10.467Z","etag":null,"topics":["apache2","debian","drupal","drupal-10","http","http-server"],"latest_commit_sha":null,"homepage":"","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/InstaZDLL.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":"2024-01-22T18:29:20.000Z","updated_at":"2024-04-12T08:13:39.000Z","dependencies_parsed_at":"2024-04-12T09:31:46.554Z","dependency_job_id":"09d839ac-0963-48fc-a1e9-c30197a18c79","html_url":"https://github.com/InstaZDLL/drupal-installer","commit_stats":{"total_commits":67,"total_committers":1,"mean_commits":67.0,"dds":0.0,"last_synced_commit":"9e2be0c15adfb50444e2b1fe9e5c2b5e1084476e"},"previous_names":["instazdll/drupal-install"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fdrupal-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fdrupal-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fdrupal-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fdrupal-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InstaZDLL","download_url":"https://codeload.github.com/InstaZDLL/drupal-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605124,"owners_count":19666998,"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","debian","drupal","drupal-10","http","http-server"],"created_at":"2024-09-27T10:02:01.523Z","updated_at":"2025-11-13T08:30:17.959Z","avatar_url":"https://github.com/InstaZDLL.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal Installation Script\n\nThis script automates the process of installing Drupal on a Linux server. It performs tasks such as updating the system, installing necessary packages, setting up the database, and configuring Apache and PHP.\n\n[ ![GitHub Release](https://img.shields.io/github/v/release/InstaZDLL/drupal-install?style=for-the-badge)](https://img.shields.io/github/v/release/InstaZDLL/drupal-install?sort=date\u0026display_name=release\u0026style=for-the-badge\n)  ![GitHub License](https://img.shields.io/github/license/InstaZDLL/drupal-install?style=for-the-badge) ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/InstaZDLL/drupal-install?style=for-the-badge) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/InstaZDLL/drupal-install/total?style=for-the-badge\u0026color=%230080ff)\n\n\n\n⚠️The script will install drupal in HTTP ⚠️\n\n⚠️ The script only works on Debian 11 and 12 for now⚠️ \n\n[![Terminal](https://badgen.net/badge/Status/tested/green?icon=terminal)](#)\n\n## How it Works\n\nThe script performs the following steps:\n\n1. **System Update**: The script starts by updating the system's package list and upgrading all installed packages.\n\n2. **Apache Installation**: The script installs Apache2 and starts the service.\n\n3. **PHP Installation**: The script adds the necessary repositories and installs PHP-8.3 along with necessary extensions.\n\n4. **MariaDB Installation**: The script installs MariaDB, starts the service, and sets up a new database and user for Drupal.\n\n5. **Drupal Installation**: The script downloads and extracts Drupal in the appropriate directory, sets the correct permissions, and configures Apache to serve the Drupal site.\n\n6. **Final Configuration**: The script makes necessary changes in `php.ini` file, restarts Apache, and displays the database credentials.\n\n## Usage\n\nTo use this script, simply run it on your Linux server. The script will handle the rest : ![Recommended](https://img.shields.io/static/v1?label=\u0026message=Recommended\u0026color=%2331BB12)\n\n```bash\nwget -O - https://github.com/InstaZDLL/drupal-installer/releases/download/v1.1.1/drupal-install-composer-apache2.sh | sudo bash\n```\n\nIf you want to use the manual installation without the composer, use this : ![Not Recommended](https://img.shields.io/static/v1?label=\u0026message=Not+Recommended\u0026color=yellow)\n\n```bash\nwget -O - https://github.com/InstaZDLL/drupal-install/releases/download/v1.0.1/drupal-install.sh | sudo bash\n```\n\nAt the end of the script, a file named `db_credentials.txt` will be created in the home directory of the current user. This file contains the database username and a randomly generated password.\n\n## Note\n\nPlease handle the `db_credentials.txt` file securely as it contains sensitive information.\n\n## Issues\n\nIf you encounter this error message `The trusted_host_patterns parameter is not configured in settings.php` in drupal dashboard follow these steps :\n\n![Issues A](https://raw.githubusercontent.com/InstaZDLL/drupal-installer/main/images/ScreenshotA.png)\n![Issues B](https://raw.githubusercontent.com/InstaZDLL/drupal-installer/main/images/ScreenshotB.png)\n\n### Do this :\n\nFirst, edit the `setting.php`\n\n```bash\nsudo vi /var/www/html/drupal/sites/default/settings.php\n```\n\nfind the line where you see this :\n\n`# $settings['trusted_host_patterns'] = [];`\n\nUncomment and replace it with :\n\n`$settings['trusted_host_patterns'] = ['^YOUR PUBLIC HOST IP$', '^127\\\\.0\\\\.0\\\\.1\\\\$', '^localhost$',];`\n\n### Exemple :\n`$settings['trusted_host_patterns'] = ['^119\\\\.151\\\\.218\\\\.9$', '^127\\\\.0\\\\.0\\\\.1\\\\$', '^localhost$',];`\n\nSave the file (if you're using vim use `:wq!`) and the error should be fixed with a `sudo systemctl restart apache2`.\n\n## TODO\n\n- [ ] Supports multiple Linux distributions\n- [ ] Upgrade option to update the old Drupal version to the latest one.\n\n## Contributions\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## Author\n\n- [@InstaZDLL](https://github.com/InstaZDLL)\n\n\n## License\n\n```text\nCopyright (C) 2024 Ethan Besson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)\n\n   [dill]: \u003chttps://github.com/joemccann/dillinger\u003e\n   [git-repo-url]: \u003chttps://github.com/joemccann/dillinger.git\u003e\n   [john gruber]: \u003chttp://daringfireball.net\u003e\n   [df1]: \u003chttp://daringfireball.net/projects/markdown/\u003e\n   [markdown-it]: \u003chttps://github.com/markdown-it/markdown-it\u003e\n   [Ace Editor]: \u003chttp://ace.ajax.org\u003e\n   [node.js]: \u003chttp://nodejs.org\u003e\n   [Twitter Bootstrap]: \u003chttp://twitter.github.com/bootstrap/\u003e\n   [jQuery]: \u003chttp://jquery.com\u003e\n   [@tjholowaychuk]: \u003chttp://twitter.com/tjholowaychuk\u003e\n   [express]: \u003chttp://expressjs.com\u003e\n   [AngularJS]: \u003chttp://angularjs.org\u003e\n   [Gulp]: \u003chttp://gulpjs.com\u003e\n\n   [PlDb]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/dropbox/README.md\u003e\n   [PlGh]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/github/README.md\u003e\n   [PlGd]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/googledrive/README.md\u003e\n   [PlOd]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/onedrive/README.md\u003e\n   [PlMe]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/medium/README.md\u003e\n   [PlGa]: \u003chttps://github.com/RahulHP/dillinger/blob/master/plugins/googleanalytics/README.md\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstazdll%2Fdrupal-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstazdll%2Fdrupal-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstazdll%2Fdrupal-installer/lists"}