create new laravel project ubuntu
composer create-project laravel/laravel . --prefer-dist
create new laravel project ubuntu
composer create-project laravel/laravel . --prefer-dist
create new laravel project ubuntu
1) Install the necessary PHP extensions:
sudo apt install -y \
openssl php8.0-curl libapache2-mod-php8.0 php8.0-mbstring \
php8.0-mysql php8.0-xml php8.0-zip php8.0-pdo
2)Create folder for your project and navigate into it.
PROJECT_NAME="my-project"
mkdir $PROJECT_NAME
cd $PROJECT_NAME
3)Initialize the project through composer.
composer create-project laravel/laravel . --prefer-dist
That will install the latest version of laravel.
If you wish to install a specific version of laravel, use:
composer create-project laravel/laravel . 5.8 --prefer-dist
Note: If running Ubuntu 18.04, you probably want to have the following
packages installed: php7.2-cli php7.2-bcmath php7.2-mysql php7.2-xml
php7.2-mbstring php7.2-json.
laravel apache2
# Laravel includes a public/.htaccess file that is used to
# provide URLs without the index.php front controller in the
# path. Before serving Laravel with Apache, be sure to enable
# the mod_rewrite module so the .htaccess file will be honored
# by the server.
# If the .htaccess file that ships with Laravel does not work
# with your Apache installation, try this alternative:
Options +FollowSymLinks -Indexes
RewriteEngine On
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us