{"id":15917561,"url":"https://github.com/takuya/docker-php-systemd","last_synced_at":"2026-01-18T13:28:48.248Z","repository":{"id":136550749,"uuid":"385196001","full_name":"takuya/docker-php-systemd","owner":"takuya","description":"docker with systemd for LAMP","archived":false,"fork":false,"pushed_at":"2021-07-13T05:50:34.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T01:14:06.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.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":"2021-07-12T09:37:12.000Z","updated_at":"2021-07-13T05:50:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbd19b24-6ad3-4ea2-a2d5-314ce1d6b76b","html_url":"https://github.com/takuya/docker-php-systemd","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"9548aaf591cf0d6def2a6ec04a731f4e4e5dd0c5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fdocker-php-systemd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fdocker-php-systemd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fdocker-php-systemd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fdocker-php-systemd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/docker-php-systemd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998102,"owners_count":20866690,"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":[],"created_at":"2024-10-06T18:11:32.601Z","updated_at":"2026-01-18T13:28:48.239Z","avatar_url":"https://github.com/takuya.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-php-systemd\ndocker container with systemd for LAMP\n\n\n## LAMP \n\nTo run old php WebApp\n\n## run \n\n```shell\nIMAGE=takuya/ubuntu-systemd-1804-modphp\nmkdir data\ndata_dir=$(pwd)/data \nPORT_PUBLISH=33400\nNAME=myapp\n\ndocker run \\\n   --name ${NAME}\n   -d \\\n   --rm \\\n   --privileged \\\n   -v ${data_dir}/mysql:/var/lib/mysql \\\n   -v ${data_dir}/web:/var/www/html \\\n   -p ${PORT_PUBLISH}:80 \\\n  ${IMAGE}\n```\n\n## after startup \n\nyou must re-initialize mysql \n\n\n` mysqld --initialized ` will be needed, when specify volume ` -v vol:/var/lib/mysql `.\n\n```shell\nNAME=myapp\ndocker exec -it $(docker ps -q --filter name=$NAME)  mysqld --initialize\ndocker exec -it $(docker ps -q --filter name=$NAME)  cat /var/log/mysql/error.log  | grep -i pass\ndocker exec -it $(docker ps -q --filter name=$NAME)  systemctl start mysql\ndocker exec -it $(docker ps -q --filter name=$NAME)  mysql -p \n```\n```sql\nALTER USER 'root'@'localhost' IDENTIFIED  BY 'MYSQL_ROOT_PASSWORD';\n```\n\n## test php is running \n\n\n```shell\ndocker exec -it $(docker ps -q --filter name=$NAME)  chown www-data  -R /var/www/html\ndocker exec -it $(docker ps -q --filter name=$NAME)  echo \"\u003c?php phpinfo();\" \u003e\u003e /var/www/html/phpinfo.php\ncurl localhost:${PORT_PUBLISH}/phpinfo.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fdocker-php-systemd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fdocker-php-systemd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fdocker-php-systemd/lists"}