# For Laravel Storage Permission error 

- sudo chown -R www-data:www-data /application/storage/logs
- sudo chmod -R 775 /application/storage/logs
- sudo chown -R www-data:www-data /application/storage
- sudo chmod -R 775 /application/storage
- sudo chcon -R -t httpd_sys_rw_content_t /application/storage/logs


# For Server permission issue
sudo chown -R ubuntu:ubuntu /path-to-project

# For Build if we have a issuse for import { Interaction as SchedulerInteraction } from 'scheduler/tracing'

- npm install react react-dom scheduler
- npm install @types/react @types/react-dom

# if you face build issuse wilth permission in public/assets/

- sudo chown -R $USER:$USER /application/public/build/assets/
- sudo chmod -R 755 /application/public/build/assets/

# if required RUN CMD

- rm -rf node_modules
- rm package-lock.json
- npm install


# To remove the file form the ubuntu server(Remove all the files and folder with hidden)

- sudo rm -rf ./* ./.*

# Send Mail form the Gmail
- Follow the setps from the below link
- https://support.google.com/a/answer/176600?hl=en&sjid=10851836256081330703-NC

# For CronJob
- crontab -e // To edit the cronjop file (root user)
- crontab -l // To view the cronjop file

    sudo crontab -u www-data -e
    * * * * * cd /var/www/DATA/akashdms-tenant && /usr/bin/php artisan schedule:run >> /dev/null 2>&1

# Check the cronjob
    sudo grep -r "akashdms-tenant" /etc/cron* /var/spool/cron/crontabs

# Any error for the job storage permission
- sudo chown -R ubuntu:www-data /var/www/DATA/akashdms-tenant/storage
- sudo chmod -R 775 /var/www/DATA/akashdms-tenant/storage

# Check the cron job error
- tail -n 50 /var/log/laravel_cron.log

# Check the DB Connection and Sleep connections
    SELECT 
        @@GLOBAL.wait_timeout AS wait_timeout,
        @@GLOBAL.interactive_timeout AS interactive_timeout,
        (SELECT VARIABLE_VALUE 
        FROM performance_schema.global_status 
        WHERE VARIABLE_NAME = 'Threads_connected') AS Threads_connected,
        (SELECT VARIABLE_VALUE 
        FROM performance_schema.global_status 
        WHERE VARIABLE_NAME = 'Max_used_connections') AS Max_used_connections;

# Update the Global Value of DB 
    SET GLOBAL wait_timeout = 300;
    SET GLOBAL interactive_timeout = 300;