Base de conhecimento
1000 perguntas frequentes, 500 tutoriais e vídeos explicativos. Aqui, você encontra apenas soluções!
Install Laravel on Infomaniak hosting
Atualização 19/05/2026
This guide concerns Laravel, an open-source web framework written in PHP following the model-view-controller (MVC) principle. Also refer to their documentation.
Prerequisites
- Have a Shared Web Hosting or Cloud Server with the latest MySQL/MariaDB.
- Site under PHP 8.2.
- Create an SSH access.
- Create a database.
Installation of Laravel 11
To do this:
- Log in to the server via SSH (need help?).
- Navigate to the site directory by running the command “cd path-to-site” (for example
cd sites/laravel.domain.xyz). - Create a new project by running the command
composer create-project laravel/laravel example-app. - Modify the
.envfile at the root of the hosting to update the connection parameters to the new database:- DB_CONNECTION=mysql
- DB_HOST=xxxx.myd.infomaniak.com
- DB_PORT=3306
- DB_DATABASE= the name of the MySQL database (xxxx_newbdd)
- DB_USERNAME= the MySQL user with rights to this database
- DB_PASSWORD= its password
- Navigate to the project directory and publish via SSH:
cd example-appphp artisan migrate - Modify the target directory to point to the “public” subdirectory of the project, here
/sites/laravel.domain.xyz/example-app/public.
Link para esta FAQ: https://faq.infomaniak.com/2119
Esta seção de perguntas frequentes foi útil?