What would you like to do today?

Make Payment ★Quick & secure Order Hosting ★SSD & fast Get Support ★We're here 24/7

Installing Laravel on cPanel Using Softaculous


Overview

At Arannel Hosting, we make it simple for developers and businesses to launch powerful web applications quickly. One of the most popular frameworks for building modern web applications is Laravel, and with our cPanel hosting, you can install Laravel with just a few clicks using Softaculous.

This guide will walk you through the complete process of installing Laravel on your Arannel Hosting cPanel account.

Prerequisites

Before you begin, ensure you have:

System Requirements

Laravel requires:

Don't worry—Arannel Hosting's servers are pre-configured to meet all Laravel requirements.

Installation Methods

Arannel Hosting supports two methods for installing Laravel:

  1. Softaculous Auto-Installer (Recommended for beginners)
  2. Manual Installation via SSH (For advanced users)

This guide focuses on the Softaculous method, which is the fastest and most user-friendly option.

Step-by-Step Installation Guide

Step 1: Log into cPanel

  1. Navigate to your Arannel Hosting client area
  2. Locate your hosting service and click "Login to cPanel"
  3. Alternatively, access cPanel directly at: yourdomain.com/cpanel

Step 2: Locate Softaculous

  1. Once logged into cPanel, scroll down to the Software section
  2. Click on the Softaculous Apps Installer icon
  3. The Softaculous interface will open in a new window or panel

Step 3: Find Laravel in Softaculous

  1. In the Softaculous dashboard, use the search bar at the top
  2. Type "Laravel" and press Enter
  3. Click on the Laravel icon from the search results
  4. Alternatively, navigate to FrameworksLaravel from the left sidebar

Step 4: Configure Your Laravel Installation

Click the Install Now button and fill in the following details:

Software Setup

Site Settings

Admin Account

Database Settings

Softaculous will automatically create a database for you. You can:

Advanced Options (Optional)

Step 5: Complete the Installation

  1. Review all your settings carefully
  2. Click the Install button at the bottom of the page
  3. Wait for the installation to complete (typically 1-2 minutes)
  4. You'll see a success message with your installation details

Step 6: Access Your Laravel Application

Once installation is complete, you'll receive:

Click on the application URL to view your new Laravel installation!

Post-Installation Steps

Configure Environment Variables

  1. Navigate to File Manager in cPanel
  2. Locate your Laravel installation directory
  3. Find the .env file and click Edit
  4. Update the following settings as needed:
    • APP_NAME: Your application name
    • APP_ENV: Set to production for live sites
    • APP_DEBUG: Set to false for production
    • APP_URL: Your full domain URL
    • Database credentials (if different from auto-generated)

Set Proper Permissions

Ensure the following directories have write permissions:

Softaculous typically handles this automatically, but you can verify in File Manager.

Enable SSL Certificate

If you haven't already:

  1. Go to cPanel Security section
  2. Click SSL/TLS Status
  3. Enable AutoSSL for your domain
  4. Update your .env file to use https:// in APP_URL

Common Issues and Troubleshooting

500 Internal Server Error

Solution: Check file permissions on the storage and bootstrap/cache directories. They should be set to 775.

Database Connection Error

Solution: Verify your database credentials in the .env file match those provided during installation.

Blank White Page

Solution: Enable error reporting temporarily by setting APP_DEBUG=true in your .env file to see the actual error.

.htaccess Issues

Solution: Ensure mod_rewrite is enabled on your server (it is by default at Arannel Hosting). Check that your .htaccess file exists in the public directory.

Managing Your Laravel Installation

Accessing Laravel Files

Use cPanel's File Manager to:

Database Management

Access your Laravel database through phpMyAdmin in cPanel:

  1. Click phpMyAdmin in the Databases section
  2. Select your Laravel database from the left sidebar
  3. Run queries, import/export data, or manage tables

Updating Laravel

To update Laravel via Softaculous:

  1. Return to Softaculous in cPanel
  2. Click All Installations in the left sidebar
  3. Find your Laravel installation
  4. Click the Update icon if an update is available

Best Practices

  1. Regular Backups: Use cPanel's backup feature or Softaculous automatic backups
  2. Keep Updated: Regularly update Laravel for security patches
  3. Use Version Control: Consider setting up Git for your Laravel project
  4. Monitor Resources: Check your hosting resource usage in cPanel to ensure your application runs smoothly
  5. Secure Your Installation: Always use strong passwords and enable two-factor authentication where possible

Need Help?

If you encounter any issues during installation or have questions:

Was this answer helpful?