auto restart Redis server:
- Edit 
/etc/systemd/system/multi-user.target.wants/redis.serviceand add this in the[Service]section, at the bottom:Restart=always
RestartSec=10s
 - Run 
sudo systemctl daemon-reload - Run 
sudo systemctl restart redis 
It will now restart after 10 seconds every time it crashes.
                    Comments
                                    
            how to set up custom error pages in #laravel?
easy, execute:
                    php artisan vendor:publish --tag=laravel-errors
                  
                all of the error pages will be extracted to view/errors/... folder.
You can modify them as you need 
                    Comments
                                    
            problems with permissions in #cpanel for the newly installed #laravel app?execute this:😱
                    find /path/to/your/laravel/app -type d -exec chmod 755 {} \;
find /path/to/your/laravel/app -type f -exec chmod 644 {} \;
                  
                
                    Comments
                                    
            Problems with youtube-dl ? 
When runing youtube-dl command you get the ouptut:
                Error: Unable to extract uploader id
            
            
    
        
                
                solution:
                    python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
// and then run it with
yt-dlp -- youtube_ID
                  
                more details here!
                    Comments
                                    
            #laravel 9 how to add prefix to #jetstream routes? 
open config/jetsream.php and add:
                    'prefix' => 'app', // app will be prefix for all jetstream routes
                  
                
                    Comments