All posts by pjrfigueiredo

Cert not yet due for renewal – force renew

 

[[email protected]]# /usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert not yet due for renewal
Cert not yet due for renewal
Cert not yet due for renewal
Cert not yet due for renewal
[[email protected] pjrf]#
[[email protected] pjrf]# /usr/local/sbin/certbot-auto renew --force-renew

getcomposer – memory-limit-errors

 

[email protected] [/home/domain.tld/www]# php ./bin/magento module:enable Infortis_Cgen Infortis_Dataporter Infortis_Infortis Infortis_Ultimo Infortis_UltraMegamenu Infor

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
[email protected] [/home/domain.tld/www]#

To check the current memory_limit try

[email protected] [/home/domain.tlm/www]# php -r "echo ini_get('memory_limit').PHP_EOL;"

On WHM

Let’s increase it to 2G, for example.

 

magento – 500 Internal Server Error error

[11-May-2017 15:43:19 UTC] PHP Fatal error: Uncaught exception ‘Zend_Cache_Exception’ with message ‘cache_dir “/home/domain.tld/public_html/var/cache/” is not writable’ in /home/domain.tld/public_html/vendor/magento/zendframework1/library/Zend/Cache.php:209
Stack trace:

Let’s set up the right file permissions!

cd/home/domain.tld/public_html/
sudo find . -type d -exec chmod 755 {} \; && sudo find . -type f -exec chmod 644 {} \; && sudo chmod u+x bin/magento

magento – Caught race condition abuser. attacker: 536, victim: 0 open file owner: 0, open file:

 

[Thu May 11 20:33:56.932792 2017] [core:error] [pid 3690] [client 94.63.XXX.XXX:40273] Caught race condition abuser. attacker: 536, victim: 0 open file owner: 0, open file: /home/domain.tld/public_html/pub/static/frontend/Magento/luma/en_US/images/logo.svg, referer: http://www.domain.tld/

Bad permission or ownership can trigger this error. Try to:

chown user: /home/domain.tld/public_html/pub/ -R