{"id":30318354,"url":"https://github.com/rocdane/vps-ubuntu-laravel","last_synced_at":"2025-08-17T20:11:42.312Z","repository":{"id":309612440,"uuid":"1036718243","full_name":"rocdane/vps-ubuntu-laravel","owner":"rocdane","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-12T22:03:13.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-12T22:11:15.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rocdane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-08-12T13:37:30.000Z","updated_at":"2025-08-12T22:03:17.000Z","dependencies_parsed_at":"2025-08-12T22:11:36.601Z","dependency_job_id":"fd8ab921-31b3-4e4d-ae15-40298bc1dc9b","html_url":"https://github.com/rocdane/vps-ubuntu-laravel","commit_stats":null,"previous_names":["rocdane/vps-ubuntu-laravel"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rocdane/vps-ubuntu-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocdane%2Fvps-ubuntu-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocdane%2Fvps-ubuntu-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocdane%2Fvps-ubuntu-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocdane%2Fvps-ubuntu-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocdane","download_url":"https://codeload.github.com/rocdane/vps-ubuntu-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocdane%2Fvps-ubuntu-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899582,"owners_count":24664720,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-17T20:10:43.606Z","updated_at":"2025-08-17T20:11:42.298Z","avatar_url":"https://github.com/rocdane.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guide Technique pour Configurer un VPS Ubuntu 24.04 LTS pour Laravel 12\n\nCe guide fournit des instructions détaillées pour configurer un serveur VPS IONOS avec une stack optimisée pour Laravel 12.\n\n## Table des Matières\n\n1. [Prérequis](#prérequis)\n2. [Configuration Initiale](#configuration-initiale-du-serveur)\n3. [Installation des Composants](#installation-des-composants)\n4. [Configuration des Services](#configuration-des-services)\n5. [Optimisation Laravel](#optimisation-laravel)\n6. [Script d'Installation](#script-dinstallation-automatisé)\n\n## [Prérequis](prérequis)\n\nAvant de commencer, assurez-vous d'avoir :\n\n- Un VPS IONOS avec Ubuntu 24.04 LTS fraîchement installé\n- Un nom de domaine valide pointant vers l'IP de votre VPS\n- Un certificat SSL valide pour votre domaine\n- Un accès SSH avec privilèges root\n- Au moins 1 Go de RAM (2 Go recommandé pour la production)\n\n## [Configuration Initiale du Serveur](configuration-initiale-du-serveur)\n\n### 1. Connexion SSH sécurisée\n\n```bash\nssh root@votre_ip_serveur\n```\n\n### 2. Mise à jour du système\n\n```bash\napt update \u0026\u0026 apt upgrade -y\napt install -y software-properties-common curl apt-transport-https ca-certificates gnupg\n```\n\n### 3. Création d'un utilisateur dédié\n\n```bash\nadduser deployer\nusermod -aG sudo deployer\nrsync --archive --chown=deployer:deployer ~/.ssh /home/deployer\n```\n\n### 4. Configuration du par-feu\n\n```bash\nufw allow OpenSSH\nufw allow 80/tcp\nufw allow 443/tcp\nufw --force enable\n```\n\n## [Installation des composants](installation-des-composants)\n\n### 5. PHP 8.3 avec extentions\n\n```bash\nadd-apt-repository -y ppa:ondrej/php\napt update\napt install -y php8.3 php8.3-fpm php8.3-{cli,mbstring,xml,bcmath,curl,zip,gd,pgsql,mysql,sqlite3,redis,opcache}\n```\n\n### 6. Node.js 24\n\n```bash\ncurl -fsSL https://deb.nodesource.com/setup_24.x | bash -\napt install -y nodejs\n```\n\n### 7. Autres dépendances\n\n```bash\napt install -y git unzip nginx supervisor\n```\n\n### 8. Base de données (au choix)\n\n```bash\napt install -y postgresql postgresql-contrib\n\napt install -y mysql-server\n```\n\n## [Configuration des services](configuration-des-services)\n\n### Nginx\n\n- Configuration du virtual host pour Laravel\n- Optimisation des paramètres de performance\n- Configuration SSL (si certificat disponible)\n\n### PostgreSQL/MySQL\n\n- Création de l'utilisateur et de la base de données\n- Configuration des accès sécurisés\n\n### Supervisor\n\n- Configuration pour les queues Laravel\n- Gestion des processus workers\n\n### PHP-FPM\n\n- Optimisation des paramètres pour la production\n- Configuration des pools\n\n## [Optimisation Laravel](optimisation-laravel)\n\n### Permissions des dossiers\n\n```bash\nchown -R deployer:www-data /var/www/html/storage\nchown -R deployer:www-data /var/www/html/bootstrap/cache\nchmod -R 775 /var/www/html/storage\nchmod -R 775 /var/www/html/bootstrap/cache\n```\n\n### Configuration .env\n\n- Protection du fichier .env\n- Configuration des variables sensibles\n\n### Optimisation des performances\n\n```bash\nphp artisan config:cache\nphp artisan route:cache\nphp artisan view:cache\n```\n\n## [Script d'installation automatisée](script-dinstallation-automatisé)\n\nUn script complet est disponible avec les fonctionnalités suivantes :\n\n- Installation en une seule commande\n- Gestion des erreurs détaillée\n- Journalisation des opérations\n- Configuration automatique de tous les composants\n- Options personnalisables\n\n```bash\ngit clone https://github.com/rocdane/vps-ubuntu-laravel\ncd vps-ubuntu-laravel\nchmod +x config.sh\nsudo ./config.sh\n```\n\n## Recommandations Post-Installation\n\n1. Configurer des sauvegardes automatiques\n2. Mettre en place la surveillance du serveur\n3. Configurer Fail2Ban pour la sécurité\n4. Mettre à jour régulièrement les paquets\n\n## Support\n\nPour toute question ou problème, consultez la documentation officielle de :\n\n- [Laravel](https://laravel.com/docs)\n- [Ubuntu Server](https://laravel.com/docs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocdane%2Fvps-ubuntu-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocdane%2Fvps-ubuntu-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocdane%2Fvps-ubuntu-laravel/lists"}