Laravel

Looking for a Framework to Simplify Web Development?

Try Laravel—one of the most popular PHP frameworks. It helps you go from idea to production faster, offering built-in features like:

  • Routing
  • Migrations
  • Authentication
  • RESTful API support

This flexible approach allows you to focus on core functionality without wasting time on repetitive tasks.

If you want to get started immediately, use a pre-installed Laravel VPS environment, which includes:

  • A web server
  • Essential libraries
  • A configured database

If you prefer local development, Laravel’s built-in local server provides an efficient testing environment, allowing instant code changes.

Getting Started

  1. Deploying the Server

Launch a server through Marketplace (or any other preferred method). The pre-installed Laravel version includes a ready-to-use environment for quick development.

  1. Connecting to the Server

Access the server via SSH:

  • Linux/MacOS: Use Terminal
  • Windows: Use PuTTY or PowerShell

Enter your password (set during deployment) or use an SSH key. If you're unsure how to generate an SSH key, follow your provider’s guide.

  1. Viewing Database Connection Credentials

After logging into the server, find the credentials file:

/root/.password_credentials

This file contains the database login details, required for Laravel’s database configuration. image4

To view the contents of the credentials file, run the following command in the terminal:

cat /root/.password_credentials

This will display the database login details, which you will need for Laravel's database configuration. image3

The file contains the database credentials, which are already pre-configured in Laravel’s environment file:

/var/www/laravel/.env

You can check or modify database settings directly in this file if needed. image5

Laravel File Structure

The main Laravel application files are located in:

/var/www/laravel/public/

This is the directory from which users access your website.

Setting Up an SSL Certificate

To enable secure HTTPS connections, follow these steps:

Ensure your domain is correctly pointing to your server’s IP address.

Obtain a free Let’s Encrypt SSL certificate by running:

certbot --nginx

Follow the installation prompts:

  1. Enter your email address (e.g., [email protected]).
  2. Agree to the terms (press Y).
  3. Specify your domain (without "www", "http", or "https" prefixes).
  4. Optionally, disable telemetry data sharing (press N).

After installation, your Laravel site will be accessible via HTTPS! image1

SSL Installation Time

The SSL setup process usually takes just a few minutes.

How to Open Your Laravel Website?

  1. Copy your project files into the following directory:

    /var/www/laravel/public/

  2. Open a browser and enter your server’s IP address or domain name, for example:

    https://11.22.33.44

Your Laravel application should now be accessible online! image6

Handling SSL Warnings

If SSL is not yet configured, your browser may display a security warning. You can ignore it, but it's recommended to complete the SSL certificate setup for secure HTTPS access.

Successful Deployment

After proper configuration, you will see:

  • Either the default Laravel welcome page
  • Or your uploaded project’s homepage

Your Laravel site is now live and ready to use! image2

Conclusion

By using Laravel, you gain access to a powerful framework suitable for both simple websites and complex web applications.

  • Easily scalable architecture
  • Built-in tools for quick feature expansion
  • Seamless integration with third-party services

Deploying Laravel on a VPS enhances reliability and performance, giving you full control over resources for growth and stability. To deepen your knowledge and fine-tune Laravel for your needs, check out the official documentation, where you’ll find detailed guides and examples.

Wishing you successful development and inspiration for creating amazing projects!