After installing the Windows 10 April update on my laptop I couldn’t print to the shared printer attached to my Mac any more.
I didn’t remember how I originally got the printer working but I already had Bonjour installed. Bonjour is the recommended way of remote printing between Windows and MacOS (download Bonjour from Apple here https://support.apple.com/kb/DL999)
When I tried to find and connect to the remote printer this time I got the message: “Error 1796 You do not have sufficient access to your computer to connect to the printer”.
My account has Admin rights so that shouldn’t have been a problem. I located where the Bonjour executable was found and right clicked to ‘Run as administrator’ but that gave the same message.
Continue reading “Windows 10 April Update and problems printing to shared printer on a Mac”
To enable Message History in Pagespeed on a server managed with ServerPilot – useful if you need to diagnose if there are any problems. You need to create a global level config file – adding it for a particular vhost isn’t good enough.
Create a file
pagespeed MessageBufferSize 100000;
pagespeed FileCachePath /var/cache/pagespeed;
pagespeed Statistics on;
pagespeed StatisticsLogging on;
pagespeed LogDir /var/log/pagespeed;
Create the folder to hold the logs at:
chmod 755 /var/log/pagespeed;
chown www-data /var/log/pagespeed
This enables Pagespeed for all the sites on the server so if there are any that shouldn’t be using it, you’ll need to add
pagespeed off; to a config file in that particular vhost folder.
WordPress WooCommerce SagePay Form extension https://woocommerce.com/products/sage-pay-form/ requires the PHP mcrypt extension to operate.
If your site uses this extension and one day stops going through the full checkout process be aware of the following:
mcrypt has been deprecated as of PHP 7.1.0 and will be moved to PECL as of PHP 7.2.0 – this is because it relies upon libmcrypt which is dead and unmaintained since 2007 http://php.net/manual/en/intro.mcrypt.php.
Your host may have disabled the mcrypt extension.
I’ve heard that the WooCommerce SagePay Form extension is currently being updated to use openssl_encrypt so there may be an update soon to rectify this.
Ubuntu provides phpMyAdmin as a package so it is very easy to get this installed on a server. The config file is stored in /etc/apache2/conf-enabled/phpmyadmin.conf.
If you are running Ubuntu 16 with PHP 7 then the PHP directives contained in this config file may not be working. This is a known bug: https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/1637911.
Continue reading “Ubuntu 16.04 phpMyAdmin config bug”
MailCatcher is a Ruby gem that acts as a sendmail/postfix replacement and displays outgoing emails in a friendly web GUI. It is useful if you want to run someone else’s code and be sure of what emails are being sent.
Here’s how to use it with PHP and Laravel Homestead.
Continue reading “Installing MailCatcher in Laravel Homestead”