Laravel Project Configuration & Create Virtual Host: Step 1: Create new laravel project with composer. php composer.phar create-project --prefer-dist laravel/laravel blog "5.5.*" Step 2: We can start the project using the "php artisan serve" command. But often we do not have to turn on the command, so we will set up a virtual host. Using sudo command open the below file. The file will be open as shown below. sudo nano /etc/hosts Step 3: Must add the domain name related to the project. 127.0.1.1 blog.local Step 4: We will create a file to attach the project to the domain in below folder. And save with such name "blog.conf". cd /etc/apache2/sites-available/ <VirtualHost *:80> ServerAdmin admin@admin.com ServerName blog.local ServerAlias blog.local DocumentRoot /var/www/html/blog/public/ <Directory /var/www/html/blog/public/> Options FollowSymLinks AllowOverride All Order allow,deny ...
Steps for Basic configuration and Install MQTT. Open port TCP:1883 on firewall Step 1: Install Mosquitto Broker sudo apt-get update sudo apt-get install mosquitto Step 2: Install Mosqitto clients sudo apt-get install mosquitto-clients mosquitto_sub -t "test" Step 3: Test mosquitto_pub -m "message from mosquitto_pub client" -t "test" Step 4: Secure with a Password sudo mosquitto_passwd -c /etc/mosquitto/passwd Password: RetypePassword: sudo nano /etc/mosquitto/conf.d/default.conf Paste below lines allow_anonymous false password_file /etc/mosquitto/passwd Step 5: Restart server sudo systemctl restart mosquitto Step 6: Test mosquitto_sub -t "test" -u "testuser" -P "testpassword" Error mosquitto_pub -t "test" -m "message from mosquitto_pub client" Success mosquitto_pub -t "test" -m "message from mosquitto_pub client" -u "testuser" -P ...