,

How to setup laravel project in ubuntu

Posted by

step 1:

sudo -s

run this command in /opt

wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.2.4/xampp-linux-x64-8.2.4-0-installer.run

step 2:

chmod 755 xampp-linux-x64-8.2.4-0-installer.run

step 3:

sudo ./xampp-linux-x64-8.2.4-0-installer.run

If facening some kind of error please see this solution

Let’s solve the phpmyadmin access forbidden problem now

Run vi /opt/lampp/etc/extra/httpd-xampp.conf

Solution:

Solution: “Require all granted” instead of  “Require local”

If you want to protect your database then please follow these step:

Run: sudo /opt/lampp/xampp security

step 4:

Now install composer by using this command

composer install

After that

Install laravel project by this command

composer create-project laravel/laravel:^9.0 example-app

If you are facing error some kind error while install project ,you can this solution

first error :

  Problem 1

    – laravel/pint[v1.0.0, …, v1.13.2] require ext-xml * -> it is missing from your system. Install or enable PHP’s xml extension.

    – Root composer.json requires laravel/pint ^1.0 -> satisfiable by laravel/pint[v1.0.0, …, v1.13.2].

Solution

Second error:

    – spatie/laravel-ignition[1.0.0, …, 1.6.4] require ext-curl * -> it is missing from your system. Install or enable PHP’s curl extension.

    – Root composer.json requires spatie/laravel-ignition ^1.0 -> satisfiable by spatie/laravel-ignition[1.0.0, …, 1.6.4].

Solution

Step 5:

clone your code from github whichever want to live.Then run “composer update

step 6:

setup your virtual host then run

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x