Best Cosmetic Hospitals Near You

Compare top cosmetic hospitals, aesthetic clinics & beauty treatments by city.

Trusted • Verified • Best-in-Class Care

Explore Best Hospitals

Laravel Project Installation Guide

Here’s the installation guide that includes the step to make sure your project files are inside the htdocs directory of XAMPP (or the corresponding directory for your web server).


Laravel Project Installation Guide

Welcome to the Laravel project! Follow the steps below to ensure your system meets the requirements and to set up the application using the one-click installer.


Pre-Installation Requirements

Before you begin, ensure your system meets the following requirements:

1. System Requirements

  • Operating System: Linux, macOS, or Windows
  • Web Server: Apache (via XAMPP, WAMP, or similar) or Nginx
  • PHP Version: PHP 8.1 or higher (check Laravel’s current requirements)
  • Database: MySQL 5.7+ or MariaDB
  • Composer: Version 2.6 or higher
  • Node.js: Version v22.14.0
  • NPM: Version 10.9.2
  • Laravel Version: 10

2. Required Extensions

Ensure the following PHP extensions are enabled:

  • OpenSSL
  • PDO
  • Mbstring
  • Tokenizer
  • XML
  • Ctype
  • JSON
  • Fileinfo
  • BCMath

3. Software Installation

Follow these steps to install the required software on your system:

1. Install XAMPP/WAMP (Windows users)

  • Download and install XAMPP or WAMP.
  • Ensure Apache and MySQL services are running.

2. Install Composer

  • Download and install Composer.
  • Verify the installation by running: composer --version

3. Install Node.js (optional)

  • Download and install Node.js.
  • Verify the installation: node -v npm -v

4. Laravel Version

  • This project is built on Laravel 10.
  • Install Laravel globally (if needed): composer global require laravel/installer

Installation Steps

Follow the steps below to install the Laravel project and set up the application.

1. Clone the Repository

Clone this project from your version control system (GitHub, GitLab, etc.):

git clone <repository-url>
  • Replace <repository-url> with your repository’s actual URL.

After cloning, navigate into the project directory:

cd <project-directory>

2. Move Project to htdocs Directory

For XAMPP (or WAMP on Windows), your project should be inside the htdocs directory for it to be accessible by the web server.

Move the cloned repository to the htdocs directory (replace <project-directory> with the actual project folder):

sudo mv <project-directory> /opt/lampp/htdocs/

Now, navigate to the htdocs directory where your project is located:

cd /opt/lampp/htdocs/<project-directory>

3. Install Composer Dependencies

Run the following command to install all PHP dependencies:

composer install
composer require laravel/passport:^12.0

4. Set Up the .env File

Rename the .env.example file to .env:

cp .env.example .env

5. Configure the Database

Open the .env file and configure the database settings:

  • Set the database connection settings, including DB_HOST, DB_DATABASE, DB_USERNAME, and DB_PASSWORD according to your MySQL/MariaDB configuration.

For example:

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=root
DB_PASSWORD=your_password

6. Set Permissions for Files and Directories

Run the following command to set the correct file and directory permissions:

sudo chown -R daemon:daemon .

7. Update Composer Dependencies

Run the following command to update the dependencies:

composer update
composer require laravel/socialite

8. Install Symfony Process (if required)

Install the Symfony Process package required for the application:

composer require symfony/process:^6.2

9. Install Node.js Setup

Add the Node.js repository and install Node.js (for front-end dependencies):

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs

10. Install Front-End Dependencies

Run the following commands to install the necessary front-end dependencies:

npm install @vitejs/plugin-react
npm install react-places-autocomplete
npm install react-table
npm install react-date-range
npm install react-datepicker
npm install react-responsive-modal
npm install html5-qrcode
npm install react-select
npm install @mui/material @emotion/react @emotion/styled

or 
npm install 
npm i react-select
npm i @mui/material @emotion/react @emotion/styled

11. Build the Front-End Assets

To compile the front-end assets, run:

npm run build

12. Update MySQL Configuration (Optional)

If you are facing issues with large packets in MySQL, you can increase the max_allowed_packet in MySQL configuration:

  1. Open the MySQL configuration file: sudo vi /opt/lampp/etc/my.cnf
  2. Add or update the following setting under the [mysqld] section: max_allowed_packet=256M
  3. Restart MySQL: sudo /opt/lampp/lampp restart

Running the Application

1. Run the Laravel Application

To serve the Laravel application locally, use the following command:

php artisan serve

You can access the application in your browser at:

http://127.0.0.1:8000

Additional Information

Troubleshooting

  • Ensure your database settings are correctly configured in the .env file.
  • If there are any permission-related issues, check the folder permissions for the storage and bootstrap/cache directories.

Summary of Commands

# Clone repository
git clone <repository-url>
cd <project-directory>

# Move project to XAMPP's htdocs directory
sudo mv <project-directory> /opt/lampp/htdocs/

# Install dependencies
composer install
cp .env.example .env
composer update
composer require symfony/process:^6.2
composer require laravel/socialite

# Set permissions
sudo chown -R daemon:daemon .

# Install Node.js and front-end dependencies
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install @vitejs/plugin-react
npm install react-places-autocomplete
npm install react-table

# Build front-end assets
npm run build

# Update MySQL configuration (optional)
sudo vi /opt/lampp/etc/my.cnf
max_allowed_packet=256M
sudo /opt/lampp/lampp restart

# Serve the application
php artisan serve

Best Cardiac Hospitals Near You

Discover top heart hospitals, cardiology centers & cardiac care services by city.

Advanced Heart Care • Trusted Hospitals • Expert Teams

View Best Hospitals
<p data-start="140" data-end="435">I’m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I’ve had the opportunity to work with <a class="decorated-link" href="https://www.cotocus.com/" target="_new" rel="noopener" data-start="300" data-end="335">Cotocus</a> and continue to contribute to multiple platforms where I share insights across different domains:</p> <ul data-start="437" data-end="922"> <li data-start="437" data-end="514"> <p data-start="439" data-end="514"><a class="decorated-link" href="https://www.devopsschool.com/" target="_new" rel="noopener" data-start="439" data-end="485">DevOps School</a> – Tech blogs and tutorials</p> </li> <li data-start="515" data-end="599"> <p data-start="517" data-end="599"><a class="decorated-link" href="https://www.holidaylandmark.com/" target="_new" rel="noopener" data-start="517" data-end="569">Holiday Landmark</a> – Travel stories and guides</p> </li> <li data-start="600" data-end="684"> <p data-start="602" data-end="684"><a class="decorated-link" href="https://www.stocksmantra.in/" target="_new" rel="noopener" data-start="602" data-end="647">Stocks Mantra</a> – Stock market strategies and tips</p> </li> <li data-start="685" data-end="764"> <p data-start="687" data-end="764"><a class="decorated-link" href="https://www.mymedicplus.com/" target="_new" rel="noopener" data-start="687" data-end="732">My Medic Plus</a> – Health and fitness guidance</p> </li> <li data-start="765" data-end="841"> <p data-start="767" data-end="841"><a class="decorated-link" href="https://www.truereviewnow.com/" target="_new" rel="noopener" data-start="767" data-end="814">TrueReviewNow</a> – Honest product reviews</p> </li> <li data-start="842" data-end="922"> <p data-start="844" data-end="922"><a class="decorated-link" href="https://www.wizbrand.com/" target="_new" rel="noopener" data-start="844" data-end="881">Wizbrand</a> – SEO and digital tools for businesses</p> </li> </ul> <p data-start="924" data-end="1021">I’m also exploring the fascinating world of <a class="decorated-link" href="https://www.quantumuting.com/" target="_new" rel="noopener" data-start="968" data-end="1018">Quantum Computing</a>.</p>

Related Posts

SCMGalaxy OS for Consultants: How to Generate DevOps Assessment Reports and Transformation Roadmaps

Consultants are often brought into organizations when software delivery is already under pressure. Releases are slow.Deployments are risky.CI/CD pipelines are inconsistent.Security findings appear late.Kubernetes adoption is messy.Developers…

Read More

DevOps Consultants Optimize Deployment Pipelines for Maximum Efficiency

Introduction In today’s fast-paced digital market, the ability to release software reliably and at speed is a primary competitive advantage, yet many organizations remain trapped by brittle,…

Read More

Essential DevOps Consulting Practices for Securing Your CI/CD

Introduction In the modern era of rapid digital transformation, the CI/CD pipeline has become the essential backbone of software delivery, enabling organizations to iterate and deploy at…

Read More

The Guide to Modern CI/CD Pipeline Optimization

Introduction In today’s fast-paced digital market, the speed and reliability of your software delivery are primary drivers of business success, yet many organizations remain hindered by manual,…

Read More

The Ultimate Guide to Stock Market Education for Beginners

The pursuit of financial independence has evolved significantly over the past few decades. Where traditional savings accounts once served as the primary vehicle for wealth preservation, today’s…

Read More

Bridging the Gap: Connecting SEO, Influencer Strategy, and Asset Management

The digital marketing landscape has transformed into an intricate ecosystem where online visibility is no longer defined by search rankings alone. Today, professionals must navigate a convergence…

Read More
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x