×
Clear all filters including search bar
Valeri Tandilashvili's Linux Notes
du -h --max-depth=1
sudo apt install certbot python3-certbot-nginx
Verifies the syntax of your configuration edits:sudo nginx -t
Reload Nginx to load the new configuration:sudo systemctl reload nginx
To see the current setting of firewall:sudo ufw status
Allows the Nginx Full profile and delete the redundant Nginx HTTP profile allowance:sudo ufw allow 'Nginx Full'
sudo ufw delete allow 'Nginx HTTP'
Obtaining an SSL Certificatesudo certbot --nginx -d example.com
Verifying Certbot Auto-Renewal:sudo systemctl status certbot.timer
To test the renewal process, you can do a dry run with certbot
:sudo certbot renew --dry-run
fopen(/var/www/test.sdtokens.com/storage/app/public/images/mesk.webp): failed to open stream: Permission denied
Solution to the problem is running these commands to get the permissionssudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
php artisan storage:link
crontab -l
command
Cronjobs will be displayed without edit modecrontab -e
command
Then we activate edit mode by clicking i
letter
After editing we need to exit from edit mode by clicking Esc
button
Then we click :wq
to save the changes00 21 * * * php /var/www/html/services_cron/job_payments/index.php >> /var/log/job_payments.log 2>&1
By adding the line above, we tell cronjob
to run the following file every day at 21:00
/var/www/html/services_cron/job_payments/index.php
And write output to the log file/var/log/job_payments.log
sudo -i
Note: after running the above command, we need to enter the user's password.env
file with edit mode using command line interfacesudo nano .env
We can specify the file with full addresssudo nano /var/www/csmp.ge/.env
sudo unlink /etc/nginx/sites-enabled/csmp.use.ge
.env.example
file, names it .env
and places it in the same directory sudo cp .env.example .env
Git
on the server, we can clone remote repositorysudo git clone https://tandilashvili@bitbucket.org/tandilashvili/csmp.git
The command clones the remote repository of csmp
project