Cart

    Sorry, we could not find any results for your search querry.

    Laravel installeren op een webhostingpakket

    Are you planning to build a PHP website yourself without the help of a CMS? Then you are probably familiar with Laravel. On our web hosting packages you can install Laravel to start your Laravel project.

    Please note: We cannot provide support for the use of Laravel itself. Therefore, please use the Laravel documentation to learn more about it.


    Install Laravel using composer


    Composer is active on our web hosting packages, all you need to do is connect via SSH so you can enter the following command:

    composer create-project laravel/laravel laravel

    This will create a folder called /laravel/ into which the files will be downloaded. The index.php file will then be in a folder called /public/. Therefore, after all files have been downloaded, change the DocumentRoot of your website to /laravel/public . You can find the steps for this in the article 'The DocumentRoot of your website'.


    Create a database and database user


    Create a database and database user using the steps in the article ‘Creating and managing a database’.

    After this, open the File manager and open the .env file in the / laravel / folder by clicking on the file and then ' Edit '.

    Now find the lines below and change the DB_HOST, DB_DATABASE, DB_USERNAME and DB_PASSWORD to the correct information of your database:

    DB_CONNECTION=sqlite 
    # DB_HOST=127.0.0.1 
    # DB_PORT=3306 
    # DB_DATABASE=laravel 
    # DB_USERNAME=root 
    # DB_PASSWORD= 

    You can always find your database details in your control panel:

    • The database name: Once the database has been created, it can always be found in the database overview in your control panel.
    • The database user: By clicking on the three dots next to the database name you can find your database user under 'Manage users'.
    • The database user password: If you forget it, you can change it by clicking on the database user.
    • The hostname of the database: You can find this by clicking on the database name in the database overview.

    In the .env file you can also change all other data as you wish, such as the MAIL settings. The settings of our e-mail servers can be found in the article 'The email settings at TransIP'.

    Now that your website is connected to your database, you can get started with Laravel!


    If you have any questions after reading this article, please contact our support department. You can reach them via the 'Contact Us ' button at the bottom of this page.

    Need help?

    Receive personal support from our supporters

    Contact us