Run the following MySql query to generate the new download limit of 100 for all Woocommerce products in WordPress. UPDATE wp_postmeta SET meta_value = “100” WHERE meta_key = “_download_limit”
Author: contrib
Using WordPress With LEMP
Issues If you get the error ‘http error’ while uploading media: 1.Edit nginx.conf nano /etc/nginx/nginx.conf and add to the http block client_max_body_size 100m; 2.Edit PHP config nano /etc/php5/fpm/php.ini and increase upload sizes post_max_size = 100M upload_max_filesize = 100M
Teamviewer and RDP
Using Teamviewer with RDP in Windows you may receive the following error when an RDP session is closed or minimised. The screen cannot be captured at the moment. This is probably due to fast user switching or a disconnected/minimized remote desktop session To get around this make sure Teamviewer is installed then: 1. Get the […]
Import SQL File into MYSQL Database Using Command Line
To import sql file into existing database use the code below mysql -u[username] -p[password] [database_name] < [file.sql]
Beanstalkd and Multiple Laravel Websites
If you have multiple websites on the same server using Beanstalkd for queues you can set unique queue tubes for each site to prevent jobs on the queue being triggered by the other sites. In Laravel, edit the queue config file and change default to something unique like the website name. ‘beanstalkd’ => [ ‘driver’ […]
Issues Running Powershell Scripts in Task Scheduler
If a script is not running or hanging when running task scheduler may indicate a 0x1 or 0x41301. Try to change the -ExecutionPolicy parameter powershell.exe -ExecutionPolicy Unrestricted -NonInteractive -NoProfile -File c:\scripts\script.ps1
Allow PHP Hook Script to Run for Git
Suppose we have a deploy.php script at /var/www/html/deploy.php that is called by a hook from a service such as Github or Bitbucket. We need to configure our web-server user, in this case it’s www-data, who’s default home directory is /var/www. Create .ssh directory and set permissions mkdir /var/www/.ssh chmod 0700 /var/www/.ssh chown -R www-data:www-data /var/www/.ssh […]