Via Docker
Last updated
Last updated
installing Openclassify on windows docker desktop
Download docker desktop ()
install docker desktop according to
when you installed the docker desktop successfully. restart windows
You need to download
follow steps 4 and 5 of this
after you installed and updated WSL2 Linux kernel successfully. restart the docker desktop.
it should run without error.
open Mircosoft Store on your Windows
in the Windows Store search for Ubuntu 20.04.4 LTS
Download Ubuntu 20.04.4 LTS and install it on the windows store
open it
It will start installing ubuntu on your windows and ask for a username and password, so set a username and password.
open the docker desktop and go to Settings
then go to General
tab and set options the same as below:
go to Resources
and WSL INTEGRATION
tab and set options like the below:
Click on Apply & restart
button
Open Phpstorm and go to File > Settings...
then go to tools > terminal
in the application settings open the selectbox and select wsl.exe --distribution Ubuntu-20.04
like below:
Click OK.
open Ubunutu-20.04 on Windows
sudo apt update -y && sudo apt-get update -y
sudo apt-get install php libapache2-mod-php php-dev php-zip php-curl php-pear php-mbstring php-mysql php-gd php-xml curl -y
PHP -v
you should see something like this:
open ubuntu
cd ~
git clone https://github.com/openclassify/openclassify.git
cd openclassify
git config core.fileMode false
composer install
composer require laravel/sail --dev
config/app.php
in providers
add this line:
\Laravel\Sail\SailServiceProvider::class,
mv .env-sail .env
alias sail="./bin/sail"
sail build --no-cache
sail up -d
sail artisan install --ready
Openclassify installed
username: admin@example.com
password: admin
username: root
you can change this username and password in the .env file before running sail up -d
command
DON'T RUN COMMANDS WITHOUT SAIL
Access to project on Windows
in File Explorer on Windows
\\wsl$\Ubuntu-20.04\home\{USER}\openclassify
replace {USER} with your WSL ubuntu-20.04 username
also, you can open from this address in the Phpstorm or any IDE
try composer --version
if it does not install so install it from