{"id":19466258,"url":"https://github.com/flaubert-dev/app-php-nginx","last_synced_at":"2025-02-25T13:45:07.062Z","repository":{"id":242254744,"uuid":"806327104","full_name":"flaubert-dev/app-php-nginx","owner":"flaubert-dev","description":"Um app PHP + Nginx super simples apenas para testes, treinamentos e estudos locais. Este repositório também tem o objetivo de ajudar na configuração inicial do Ubuntu 22.04 recém instalado.","archived":false,"fork":false,"pushed_at":"2024-06-16T17:22:36.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T10:31:48.941Z","etag":null,"topics":["docker","docker-compose","make","makefile","nginx","php","ubuntu","wsl-ubuntu","wsl2"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/flaubert-dev.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-05-27T01:19:49.000Z","updated_at":"2024-08-06T02:13:39.000Z","dependencies_parsed_at":"2024-06-01T19:12:40.143Z","dependency_job_id":"521793a0-15d5-4054-a586-fff2825ed34a","html_url":"https://github.com/flaubert-dev/app-php-nginx","commit_stats":null,"previous_names":["flaubert-dev/app-php-nginx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaubert-dev%2Fapp-php-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaubert-dev%2Fapp-php-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaubert-dev%2Fapp-php-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaubert-dev%2Fapp-php-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flaubert-dev","download_url":"https://codeload.github.com/flaubert-dev/app-php-nginx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240679805,"owners_count":19840138,"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":["docker","docker-compose","make","makefile","nginx","php","ubuntu","wsl-ubuntu","wsl2"],"created_at":"2024-11-10T18:26:20.401Z","updated_at":"2025-02-25T13:45:06.996Z","avatar_url":"https://github.com/flaubert-dev.png","language":"Makefile","readme":"# App PHP com Nginx\n\nEste repositório tem o objetivo de ajudar na configuração inicial do Ubuntu 22.04 recém instalado e completamente zerado. Ou seja, será instalado várias ferramentas para facilitar nos testes de um app super simples com PHP + Nginx. É possível rodar a aplicação e utilizar o phpMyAdmin para treinar e estudar SQL. O MySQL não está conectado na aplicação. Ou seja, a aplicação é só para testes, treinar e estudar o PHP 8. Já o MySQL + phpMyAdmin é só para testar, treinar e estudar SQL.\n\n## Requisitos / Recomendação\n\n- Ubuntu 22.04 (Limpo, sem nenhuma instalação) \n- Ou WSL com o Ubuntu 22.04 (Limpo, sem nenhuma instalação)\n\n## Instalação (comandos)\n\n```bash\nsudo apt update \u0026\u0026 sudo apt upgrade -y \u0026\u0026 sudo apt install make -y\n```\n\n```bash\ncd ~ \u0026\u0026 git clone https://github.com/flaubert-dev/app-php-nginx.git\n```\n\n```bash\ncd ~/app-php-nginx\n```\n\n```bash\nrm -fr .git\n```\n\n```bash\nmake instalar\n```\n\n1. Após a conclusão de todas as instalações, use este comando para sair do Zsh:\n\n```bash\nexit\n```\n\n2. Só após sair do Zsh é que poderá fechar o terminal. \n3. Logo depois, abra o terminal novamente.\n4. Na sequência, configure o Zsh executando os comandos logo abaixo:\n\n```bash\ncd ~/app-php-nginx\n```\n\n```zsh\nmake configurar\n```\n\n5. Feche o terminal.\n6. Logo depois, abra o terminal novamente para que seja concluído as configurações.\n7. Reinicie o sistema. Se está usando o WSL com o Ubuntu 22.04 siga este [passo a passo](#wsl-reiniciar-o-sistema-powershell-como-admin).\n\n## App PHP (comandos)\n\nEntrar no app\n\n```zsh\ncd ~/app-php-nginx\n```\n\nInstalar / Ligar\n\n```zsh\nmake ligar\n```\n\nDesligar\n\n```zsh\nmake desligar\n```\n\nReiniciar\n\n```zsh\nmake reiniciar\n```\n\nPermissões\n\n```zsh\nmake permitir\n```\n\n## App PHP (portas)\n\nApós ligar o app:\n\n- Acessar o App: http://localhost\n- Acessar o phpMyAdmin: http://localhost:10777\n\n## App PHP (comandos opcionais)\n\nEntrar no app \n\n```zsh\ncd ~/app-php-nginx\n```\n\nVisualizar chave SSH\n\n```zsh\nmake ver-ssh-key\n```\n\nInstalar plugins Oh My Zsh\n\n```zsh\nmake instalar-plugins-zsh\n```\n\nMostra o uso de espaço Docker (imagens, containers, volumes e cache) \n\n```zsh\nmake espaco\n```\n\nRemove os containers, redes, volumes e imagens associadas\n\n```zsh\nmake desinstalar\n```\n\n## WSL: Windows Subsystem for Linux\n\n1. Instalar o WSL e/ou Ubuntu\n\n```zsh\nwsl --install -d Ubuntu-22.04\n```\n\n2. Atualizar o WSL\n\n```zsh\nwsl --update\n```\n\n3. Defina a versão padrão do WSL para a versão 2 \n\n```zsh\nwsl --set-default-version 2\n```\n\n## WSL: Desinstalar o Ubuntu 22.04 do WSL (PowerShell como ADMIN)\n\n1. Listar distros instaladas \n\n```zsh\nwsl -l -v\n```\n\n2. Desligar a distribuição\n\n```zsh\nwsl --terminate Ubuntu-22.04\n```\n\n3. Desinstalar a distribuição \n\n```zsh\nwsl --unregister Ubuntu-22.04\n```\n\n## WSL: Reiniciar o sistema (PowerShell como ADMIN)\n\n1. Desligar a distribuição\n\n```zsh\nwsl --terminate Ubuntu-22.04\n```\n\n2. Desligar o WSL\n\n```zsh\nwsl --shutdown\n```\n\n3. Ligar o WSL\n\n```zsh\nwsl\n```\n\n4. Feche o PowerShell / Abra novamente o terminal do Ubuntu 22.04\n\n5. Testar se o Docker está funcionando \n\n```zsh\ndocker ps\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaubert-dev%2Fapp-php-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaubert-dev%2Fapp-php-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaubert-dev%2Fapp-php-nginx/lists"}