composer update: mmap() failed: [12] Cannot allocate memory PHP Fatal error: Out of memory

proc_open(): fork failed errors# If composer shows proc_open() fork failed on some commands: PHP Fatal error: Uncaught exception ‘ErrorException’ with message ‘proc_open(): fork failed – Cannot allocate memory’ in phar This could be happening because the VPS runs out of memory and has no Swap space enabled. To enable the swap you can use for […]

npm to add sb-admin-2 to laravel

First of all make sure you have node.js installed. If you haven’t so, install it: https://nodejs.org/en/ Change directory to your laravel project and use npm to install sb-admin-2 like this: npm install –global startbootstrap-sb-admin-2 If it compains for popper or other packages, use npm again to install them, like this: npm install –global popper Now, […]

existing code to bitbucket

Let’s assume you ‘ve got setup a small project locally and it’s time to add it to bitbucket. All you need to know is: https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html There are a couple of details though that could make your life difficult if you don’t pay the proper attention: Locally: Bitbucket: create a repo (but pay attention!) without adding […]

How to merge two zimbra mailboxes

SSH into your zimbra server. Change to zimbra server: su – zimbra Now type: /opt/zimbra/bin/zmmailbox -z -m old@example.tld getRestURL “//?fmt=tgz” > /tmp/temp.tgz && /opt/zimbra/bin/zmmailbox -z -m new@example.tld postRestURL “//?fmt=tgz&resolve=modify” /tmp/temp.tgz Make sure you replace old@example.tld and new@example.tld with proper addresses. If the old mailbox is big you may encounter the following error: ERROR: zclient.IO_ERROR (Read […]

xampp + php + curl + ssl = fatal_error

If you use xampp with php and curl you might encounter an error like this: Fatal error: Uncaught exception ‘HttpClientException’ with message ‘cURL Error: SSL certificate problem: unable to get local issuer certificate’ in HttpClient.php If this is the case the solution is easy: Download cacert.pem from official curl page https://curl.haxx.se/docs/caextract.html Copy cacert.pem to c:\xampp\cacert.pem […]

zimbra: multiple letsencrypt certificates and Unable to start TLS error

The following guide is tested against zimbra 8.8: Installing a Let’s Encrypt SSL Certificate If this error occurs: ‘Unable to start TLS: hostname verification failed when connecting to ldap master.‘ make sure you have included your hostname in your letsencrypt signing domains and follow the guide once again. For instance, if your hostname is mail5.example.com, […]