pagespeed – Slow ReadFile operation on file

[Sat May 27 07:17:27.539747 2017] [pagespeed:error] [pid 19961] [mod_pagespeed 1.11.33.5-0 @19961] Slow ReadFile operation on file /var/cache/mod_pagespeed/rname/ic_QOs6thfRpiBUn09lB5Du/http,3A/,2Fdomain.com/assets/slideshow/slide_02.jpg,40x,40._,: 59.944ms; configure SlowFileLatencyUs to change threshold\n

 

Some disk stats….

sudo hdparm -Tt /dev/root

/dev/root:
 Timing cached reads: 26330 MB in 2.00 seconds = 13178.47 MB/sec
 Timing buffered disk reads: 540 MB in 3.00 seconds = 179.73 MB/sec

I’v added the following lines to my pagespeed configuration file (/etc/apache2/mods-enabled/pagespeed.conf)

ModPagespeedSlowFileLatencyUs 100

 

getcomposer – memory-limit-errors

 

root@server [/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.
root@server [/home/domain.tld/www]#

To check the current memory_limit try

root@server [/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