{"id":21681927,"url":"https://github.com/czbone/oneliner-env","last_synced_at":"2025-04-12T06:51:42.784Z","repository":{"id":79736163,"uuid":"160437732","full_name":"czbone/oneliner-env","owner":"czbone","description":"Build server environment by one-liner command","archived":false,"fork":false,"pushed_at":"2022-03-02T08:11:20.000Z","size":234,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:51:36.066Z","etag":null,"topics":["ansible-role","centos","lemp","mariadb","mysql","nginx","php"],"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/czbone.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":"2018-12-05T00:42:04.000Z","updated_at":"2022-02-07T22:37:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f16f8d60-0b26-4f7c-a332-6abd440bf05b","html_url":"https://github.com/czbone/oneliner-env","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Foneliner-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Foneliner-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Foneliner-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Foneliner-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czbone","download_url":"https://codeload.github.com/czbone/oneliner-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530604,"owners_count":21119595,"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":["ansible-role","centos","lemp","mariadb","mysql","nginx","php"],"created_at":"2024-11-25T15:32:19.340Z","updated_at":"2025-04-12T06:51:42.777Z","avatar_url":"https://github.com/czbone.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1行で環境構築\r\nサーバに`root`ログインし１行のコマンドを実行するだけで環境構築できるスクリプトです。  \r\n必要なソフトウェアがすべて納まり、連携動作も取れている1台のサーバ環境を作ります。  \r\n環境構築は難しい、たいへん時間がかかるという問題を即座に解決します。\r\n\r\nこのプロジェクトは、正確に動作するごく標準的な環境を構築するのを目的としています。\r\nそれ以上の環境が必要な場合は、出来た環境からさらに独自のカスタマイズを行うのがベターです。\r\n\r\n## 対象OS\r\n- CentOS Stream 8\r\n\r\nCentOS 8の場合はStream 8へ移行してください。\r\n\r\n## ライセンス\r\n\r\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\r\n\r\n# 内容\r\nローカルにAnsibleをインストールし、Ansible GalaxyのPlaybookを基本に少しカスタマイズして環境構築しています。\r\n次の特色があります。\r\n\r\n- 最新のソフトウェア環境\r\n- 日本語最適化\r\n\r\n# 使い方\r\n新規にOSをインストールしたサーバに`root`でログインし、以下の１行のコマンドをそのままコピーして実行します。\r\n\r\n![installdemo1](https://user-images.githubusercontent.com/4754964/156319663-67611588-b56a-4054-ad74-3956cb06207d.gif)\r\n\r\n## Webサーバ(LEMP)環境構築 (所要時間: 約10分)\r\nLinux(L),Nginx(N),MariaDB(M),PHP(P)のLEMP環境を作成します。\r\n\r\n### バージョン\r\n- Nginx 1.21.x\r\n- PHP 8.1.x\r\n- MariaDB 10.7.x\r\n\r\n### 実行コマンド\r\n```\r\ncurl https://raw.githubusercontent.com/czbone/oneliner-env/master/script/build_lemp.sh | bash\r\n```\r\n\r\n# 動作チェック\r\n\r\n環境構築後、WebブラウザでURLにアクセスし、簡単に動作チェックを行います。「localhost」部分は環境に合わせて変更してください。\r\n\r\nphpinfoが表示されます。\r\n```\r\nhttp://localhost/index.php\r\n```\r\n\r\nテスト用DBに日本語文字列を登録し再表示させます。文字化けせずに日本語が表示されていればOKです。\r\n```\r\nhttp://localhost/index2.php\r\n```\r\n\r\n# 検証環境\r\n- Vagrant Box: centos/stream8\r\n\r\n# 依存関係\r\n\r\n以下のAnsibleロールが含まれています。\r\n\r\n- nginxinc.nginx(公式ロール)\r\n- MariaDB role(https://github.com/czbone/ansible-role-mariadb ) \r\n- geerlingguy.repo-remi\r\n- geerlingguy.ntp\r\n- geerlingguy.php-versions\r\n- geerlingguy.php\r\n- geerlingguy.php-mysql\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczbone%2Foneliner-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczbone%2Foneliner-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczbone%2Foneliner-env/lists"}