# Campaign preperatin
✓ Bandwidth has been increased to 302.73 Gig
✓ PHP-FPM configured with the following values 90 Max Requests, 120 Process Idle Timeout and 90 Max Children
✓ Moved sessions saving to the database to reduce stress on App server, modifying <session_save>db</session_save> in local.xml
✓ Disabling both users and errors logs , under (System -> Configuration -> Advanced -> System -> Log & System -> Configuration -> Advanced -> Developer -> Log Settings )
✓ Changed cache and session directory attributes (chattr -R +A var/session/ && chattr -R +A var/cache/)
✓ Clean old logs from the following tables (log_customer, log_visitor, log_visitor_info,log_visitor_online,log_summary, log_url, log_url_info, log_quote, index_event, report_viewed_product_index, report_event, Log Settings,catalog_compare_item,
report_event), a backup has been taken of these tables in case we needed them in the future
✓ Running log cleaning shell for newer logs (php -f shell/log.php clean)
✓ Change cronjob from 5 minutes to 15
1- Kindly note that the current bandwidth usage is 37%, and with the amount of expected traffic we should at least add 50G - Require feedback
2- I recommand disabling unused extentions - Require feedback
3- PHP-FPM configured with the following values 90 Max Requests, 120 Process Idle Timeout and 90 Max Children
4- Moved sessions saving to the database to reduce stress on App server, modifying <session_save>db</session_save> in local.xml
5- Disabling both users and errors logs , under (System -> Configuration -> Advanced -> System -> Log & System -> Configuration -> Advanced -> Developer -> Log Settings )
6- Changed cache directory attributes (chattr -R +A var/cache/)
7- Clean old logs from the following tables (log_customer, log_visitor, log_visitor_info,log_visitor_online,log_summary, log_url, log_url_info, log_quote, index_event, report_viewed_product_index, report_event, Log Settings,catalog_compare_item, report_event)
8- Running log cleaning shell for newer logs (php -f shell/log.php clean)
9- Checked running Cronjobs under cron_schedule table
10- Checked Latest errors log
11- Change cronjob from 5 minutes to 15
12- Flushed Images, JavaScript and CSS cache
13- Reindexed all stores urls
14- Check deadlinks
15- add loading = "lazy"
1) Disabling both users and errors logs , under (System -> Configuration -> Advanced -> System -> Log & System -> Configuration -> Advanced -> Developer -> Log Settings )
2) Clean old sessions, cache and logs
3) Enable Gzip compression
4) Force HTTPS Redirect (C-panel / Magento)
5) Adding loading="lazy" to behind the fold images/iframes
6) Merge JavaScript/CSS Files
7) PHP-FPM configured with the following values 90 Max Requests, 120 Process Idle Timeout and 90 Max Children
8) Checked running Cronjobs under cron_schedule table
9 Flushed Images, JavaScript and CSS cache
Recommendations:
For both stores, we can disable unused extensions/modules
Mashii can achieve better performance by using CDN (Imagekit.io)
Theperfectgift can achieve better performance by using FPC (Full Page Cache) & CDN (Imagekit.io)
https://www.webpagetest.org/
chinafy.com
https://developers.google.com/speed/pagespeed/insights/
https://gtmetrix.com/
Lighthouse (https://developers.google.com/web/tools/lighthouse/),
Whitelisting Countries in cPHulk?
keycdn.com/blog/web-performance-advice
Check if magento is in production or development mode.
Building 20, Yazan Aranki Street, Khalda, Near Citymall
Check if profiler is enabled
https://www.mgt-commerce.com/blog/the-right-magento-cache-strategy-for-best-performance/
https://www.giftofspeed.com/
/**
* Increasing memory limit and execution time
* By: Ahmad Rasmi
**/
ini_set('memory_limit', '500M');
ini_set('max_execution_time', 300);
ini_set('max_input_vars',1500);
I also recommend the following:
1) Using CDN (Imagekit.io)
2) Using FPC (Full Page Cache Extention)
3) Disable unused extensions/modules
1) Enable Gzip compression
2) Force HTTPS Redirect (C-panel / Magento)
3) Check broken links
4) Increasing memory limit and execution time
5) Disabling both users and errors logs , under (System -> Configuration -> Advanced -> System -> Log & System -> Configuration -> Advanced -> Developer -> Log Settings )
6) Adding loading="lazy" to behind the fold images/iframes
7) Merge JavaScript/CSS Files
8) PHP-FPM configured with the following values 90 Max Requests, 120 Process Idle Timeout and 90 Max Children
9) Checked running Cronjobs under cron_schedule table
10) Flushed Images, JavaScript and CSS cache
11) Truncate core_url_rewrite and reindex
12) Fixed menu loading issue
13) Enabled apptrian image optimizer extension
14) Checked Latest errors log (system.log / exception.log) & (var/report)
15) Changed cache and session directory attributes (chattr -R +A var/session/ && chattr -R +A var/cache/)
16) Memcache
17) Minify HTML and CSS
18) Full Page Cache
19) Disable menu indexing and caching:
File:
vendor/magestore-shopgo/mega-menu/app/code/local/Magestore/Megamenu/Helper/Data.php
function:
"saveCacheHtml"
lines:
#Mage::getModel('core/config')->saveConfig('megamenu/general/reindex', 0);
#Mage::app()->getCacheInstance()->cleanType('config');
#Mage::app()->getCacheInstance()->cleanType('block_html');
I also recommend the following:
1) Using CDN (Imagekit.io)
2) Using FPC (Full Page Cache Extention)
3) Disable unused extensions/modules
Optimze CSS
https://jigsaw.w3.org/css-validator/
<link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin>
<link rel="dns-prefetch" href="https://fonts.googleapis.com/">
Leverage Browser Caching for Images, CSS and JS
```
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##
```
https://developer.yahoo.com/performance/rules.html
https://suyati.com/blog/speed-up-magento-admin-backend
https://www.goivvy.com/blog/speed-up-magento
https://forums.centos.org/viewtopic.php?t=48198
https://github.com/HewlettPackard/LinuxKI/wiki/Power-vs-Performance
https://www.multimediaxp.com/post/31/whm-tweak-settings-to-improve-performance-cpanel
https://www.quora.com/How-do-I-decrease-page-load-time-on-Magento-1-9-store
https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/timeline-tool
# Remove Extentions
1) app/etc/modules/Glace_Booking.xml
2) app/etc/modules/Shopgo_PackgeListener.xml
3) app/etc/modules/Fetchr_Shipping.xml
4) app/etc/modules/Gate2play_Paymentgateway.xml
5) app/etc/modules/Shopgo_SkynetShipping.xml
6) app/etc/modules/Shopgo_ZainIraq.xml
7) app/etc/modules/Cashu_Prepaid.xml
http://techmythsworld.blogspot.com/2011/11/solving-httpd-maxclients-and-modstatus.html
https://serverfault.com/questions/551697/apache-stability-on-a-very-high-traffic-server
app - db
https://www.percona.com/blog/2014/01/28/10-mysql-performance-tuning-settings-after-installation/
https://magento.stackexchange.com/questions/186059/how-to-optimize-magento-1-9-x-website
https://www.liquidweb.com/kb/apache-performance-tuning-configuring-mpm-directives/
https://www.webtrickshome.com/forum/how-to-fix-phpmyadmin-error-incorrect-format-parameter-that-appeared-while-importing-a-database
https://serverfault.com/questions/686665/mysql-showing-100-cpu-usage
1) Installed, configured, and tested Full Page Cache
2) Bandwidth has been increased to 195.31 Gig
3) PHP-FPM configured with the following values 90 Max Requests, 120 Process Idle Timeout, and 90 Max Children
4) PHP INI configured with the following values 300 Max Execution Time, 60 Max Input Time, 1500 Max Input Vars, 500M Memory Limit
5) Disabling both users and errors logs , under (System -> Configuration -> Advanced -> System -> Log & System -> Configuration -> Advanced -> Developer -> Log Settings )
6) Change cronjob from 5 minutes to 15
7) Force HTTPS Redirect (C-panel / Magento)
8) Upgrade/Update system packages
9) Review server development leftovers & Remove publicly visible .git directories