- Install required npm packages
socket.io-client laravel-echo - Registering these two package to src/main.js file
import Echo from 'laravel-echo'
window.io = require('socket.io-client')
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
<VirtualHost ip_address>
ServerName domain_name
ServerAlias www.domain_name
DocumentRoot /home/user_name/domain_name
ServerAdmin webmaster@domain_name
UseCanonicalName Off
After configuring your Digital Ocean Server using my previous gist, you may follow this. Else go to my previous gist https://gist.github.com/moaj257/2d1a602fcec3f3dd9afd5f667119d342.
To get started, log into the MySQL root (administrative) account by issuing this command:
mysql -u root -p
Create a new database for a new wordpress installation. I am using wordpress as the database name.
Copy htaccess code to your laravel/lumen .htaccess file.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*) public/$1 [L]
</IfModule>