• 11-07-2018, 19:53:22
    #1
    Yöntem 1 ( SSH Bilgisi ve Sunucu bilgisi olan arkadaşlar değerlendirebilir. Bilginiz yoksa denemeyiniz.)
    Cpanel ve WHM kurulu sistemlerde işe yararlığı tarafımdan test edilmiştir.SSH ile tüm işlemleri Gerçekleştirebilirsiniz.Site adı veya dosya yolu yazan yerlere dikkat ediniz.Bu işlemlerden sonra Super page Cache modülünü kurmanızı öneririm.
    Bu verdiğim yöntemleri Alıp Para ile satmaya çalışsan veya paralı işlem yapmaya kalkışanlara hakkımı helal etmiyorum.

    myisamchk --check /var/lib/mysql//.MYI
    mysqlcheck --all-databases -r #repair
    mysqlcheck --all-databases -o #optimize
    cd /; rm -f engintron.sh; wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh; bash engintron.sh install
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd configtest
    service ipaliases restart
    
    mysql
      SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=MyISAM;')
      FROM information_schema.tables
      WHERE engine = 'InnoDB';
     
    umount -l /tmp
    umount -l /var/tmp
    rm -fv /usr/tmpDSK
    /scripts/securetmp
    
    yum install jpegoptim
    yum install pngoptim
    yum install pngopti
    yum install optipng
    cd /home/dosyayolu/public_html/image/cache
    find -type f -name "*.jpg" -exec jpegoptim --strip-all {} ;
    
    yum install rpm-build cpio ea-apache24-mod_version
    wget https://github.com/Prajithp/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-1.9-32.11.src.rpm
    /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /tmp/pagespeed/
    cd /tmp/pagespeed/Easy
    tar -zcvf Speed.pm.tar.gz pagespeed
    mkdir -p /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy
    mv Speed.pm Speed.pm.tar.gz -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/
    cd && rm -rf /tmp/pagespeed
    cd /home/dosyayolu/public_html/image/cache
    find . -name '*.jpg' | xargs jpegoptim --strip-all
    wget https://github.com/Prajithp/cPanel_Mod_PageSpeed/blob/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
    rm -rf /root/rpmbuild/RPMS/x86_64/
    cd
    wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
    rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
    rpm -Uvh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm
    /etc/rpm/macros.apache2
    rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
    rpm -Uvh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm
    /etc/init.d/httpd restart
    /etc/init.d/nginx restart
    
    cd
    rm -rf /var/mod_pagespeed/cache
    mkdir /var/mod_pagespeed/cache
    chown nobody:nobody /var/mod_pagespeed/cache
    service httpd restart
    service enginx restart
    service nginx restart
    
    curl -I http://www.siteadı.com
    cd /home/dosyayolu/public_html/image/cache/dosya
    find -type f -name "*.jpg" -exec jpegoptim --strip-all {} ;
    find -type f -name "*.png" -exec optipng -nc -nb -o7 {} ;
    find -type f -name "*.jpg" -exec jpegoptim --strip-all {} ;
    find -type f -name "*.png" -exec optipng -nc -nb -o7 {} ;
    Yöntem 2 (Biraz manuel ve kolay bir yöntemdir bu şekilde sitenizi hızlandırabilir ve pageinsight değerinizi arttırabilirsiniz.)
    Gerekli Modüller : Super page cache modülü ve İmage crusher(Bu modül yerine farklı bir modülde kullanılabilir)
    JS veya css sıkıştırmak içinde google da js compressor veya css compressor yazıp arattığınızda online siteler mevcuttur.
    .htaccess dosyanızı açıp en alta inin
    # Expires Headers - 2678400s = 31 days
    <ifmodule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 2678400 seconds"
      ExpiresByType text/html "access plus 7200 seconds"
      ExpiresByType image/gif "access plus 2678400 seconds"
      ExpiresByType image/jpeg "access plus 2678400 seconds"
      ExpiresByType image/png "access plus 2678400 seconds"
      ExpiresByType text/css "access plus 750000 seconds"
      ExpiresByType text/javascript "access plus 2678400 seconds"
      ExpiresByType application/x-javascript "access plus 2678400 seconds"
    </ifmodule>
     
    # Cache Headers
    <ifmodule mod_headers.c>
      # Cache specified files for 31 days
      <filesmatch ".(ico|flv|jpg|jpeg|png|gif|css|swf)$">
      Header set Cache-Control "max-age=2678400, public"
      </filesmatch>
      # Cache HTML files for a couple hours
      <filesmatch ".(html|htm)$">
      Header set Cache-Control "max-age=7200, private, must-revalidate"
      </filesmatch>
      # Cache PDFs for a day
      <filesmatch ".(pdf)$">
      Header set Cache-Control "max-age=86400, public"
      </filesmatch>
      # Cache Javascripts for 31 days
      <filesmatch ".(js)$">
      Header set Cache-Control "max-age=2678400, private"
      </filesmatch>
    </ifmodule>  
    <ifmodule mod_expires.c>
    <filesmatch ".(jpg|gif|png|css|js)$">
    ExpiresActive on
    ExpiresDefault "access plus 1 year"
    </filesmatch>
    </ifmodule>
    
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 month"
    ExpiresByType image/jpeg "access 1 month"
    ExpiresByType image/gif "access 1 month"
    ExpiresByType image/png "access 1 month"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 week"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 month"
    ExpiresDefault "access 1 month"
    </IfModule>
    ## EXPIRES CACHING ##
    
    # gzip #
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/text text/html text/javascript text/plain text/xml application/xml text/css application/x-javascript application/javascript
    # remove browser bugs
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    </IfModule>
    # gzip end #
    Ekleyin.

    SQL e girip SQL kodu çalıştırma kısmından aşşağıdaki kodu çalıştırınız..(oc_ öneki eğer yoksa onu silebilirsiniz.
    ALTER TABLE `oc_category` ADD INDEX ( `parent_id` ) ;
    ALTER TABLE `oc_category` ADD INDEX ( `top` ) ;
    ALTER TABLE `oc_category` ADD INDEX ( `sort_order` ) ;
    ALTER TABLE `oc_category` ADD INDEX ( `status` ) ;
    ALTER TABLE `oc_option` ADD INDEX ( `sort_order` ) ;
    ALTER TABLE `oc_option_description` ADD INDEX ( `name` ) ;
    ALTER TABLE `oc_option_value` ADD INDEX ( `option_id` ) ;
    ALTER TABLE `oc_option_value_description` ADD INDEX ( `option_id` ) ;
    ALTER TABLE `oc_order` ADD INDEX ( `customer_id` ) ;
    ALTER TABLE `oc_product` ADD INDEX ( `model` ) ;
    ALTER TABLE `oc_product` ADD INDEX ( `sku` ) ;
    ALTER TABLE `oc_product` ADD INDEX ( `upc` ) ;
    ALTER TABLE `oc_product` ADD INDEX ( `manufacturer_id` ) ;
    ALTER TABLE `oc_product` ADD INDEX ( `sort_order` ) ;
    ALTER TABLE `oc_product` ADD INDEX ( `status` ) ;
    ALTER TABLE `oc_product_option` ADD INDEX ( `option_id` ) ;
    ALTER TABLE `oc_product_option_value` ADD INDEX ( `product_option_id` ) ;
    ALTER TABLE `oc_product_option_value` ADD INDEX ( `product_id` ) ;
    ALTER TABLE `oc_product_option_value` ADD INDEX ( `option_id` ) ;
    ALTER TABLE `oc_product_option_value` ADD INDEX ( `option_value_id` ) ;
    ALTER TABLE `oc_url_alias` ADD INDEX ( `query` ) ;
    ALTER TABLE `oc_url_alias` ADD INDEX ( `keyword` ) ;
    ALTER TABLE `oc_user` ADD INDEX ( `username` ) ;
    ALTER TABLE `oc_user` ADD INDEX ( `password` ) ;
    ALTER TABLE `oc_user` ADD INDEX ( `email` ) ;
    Superpage cache modülünü neden öneriyoruz yanıtına gelince ; Nitro cache modülünün bir süre sonraki sıkıntıları veya bozulmaları bu modülde bulunmamakta ve basic kullanım la çok daha etkili olmaktadır.
    Her 2 yöntemde tarafımdan denenmiştir.yanlışlığım varsa düzeltebilirsiniz veya eklenmesini istediğiniz birşey varsa..Herkese hayırlı olmasını dilerim.
    • SemihGlnr
    • Maybell
    • KilitX
    SemihGlnr, Maybell, KilitX ve 3 kişi bunu beğendi.
    6 kişi bunu beğendi.
  • 12-07-2018, 01:32:51
    #2
    engintron kurulumunu yapamadım hocam, ücreti mukabilinde yardımcı olabilir misin?
  • 15-07-2018, 23:26:19
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Eyvallah kardeşim emeğine sağlık.
  • 17-07-2018, 03:30:22
    #4
    webfikir adlı üyeden alıntı: mesajı görüntüle
    Eyvallah kardeşim emeğine sağlık.
    ne demek paylaşıyoruz fakat giripte bir yorum atmaya üşenen insanlar mevcut..sağlık olsun..
    • webfikir
    • halilesen
    webfikir ve halilesen bunu beğendi.
    2 kişi bunu beğendi.
  • 17-07-2018, 13:11:00
    #5
    ilk bölüm için bir düzeltme
    myisamchk --check /var/lib/mysql/mysql/*.MYI
    mysqlcheck --all-databases -r #repair
    mysqlcheck --all-databases -o #optimize
    
    cd /
    rm -f engintron.sh;
    wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh;
    bash engintron.sh install
    
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd configtest
    service ipaliases restart
     
    mysql
      SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=MyISAM;') FROM information_schema.tables WHERE engine = 'InnoDB';
      exit
     
    umount -l /tmp
    umount -l /var/tmp
    rm -fv /usr/tmpDSK
    /scripts/securetmp
     
    yum install epel-release
    yum install jpegoptim
    yum install optipng
    
    cd /home/dosyayolu/public_html/image/cache
    find -type f -name "*.jpg" -exec jpegoptim --strip-all {}
    find -type f -name "*.png" -exec optipng -nc -nb -o7 {}
    find -type f -name "*.jpg" -exec jpegoptim --strip-all {}
    find -type f -name "*.png" -exec optipng -nc -nb -o7 {}
    supercache için de ek bilgi, opencart 2.2 sonrası versiyonlarda çalışmaz.
  • 29-07-2018, 14:54:22
    #6
    KilitX adlı üyeden alıntı: mesajı görüntüle
    ilk bölüm için bir düzeltme
    myisamchk --check /var/lib/mysql/mysql/*.MYI
    mysqlcheck --all-databases -r #repair
    mysqlcheck --all-databases -o #optimize
    
    cd /
    rm -f engintron.sh;
    wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh;
    bash engintron.sh install
    
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd configtest
    service ipaliases restart
     
    mysql
      SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=MyISAM;') FROM information_schema.tables WHERE engine = 'InnoDB';
      exit
     
    umount -l /tmp
    umount -l /var/tmp
    rm -fv /usr/tmpDSK
    /scripts/securetmp
     
    yum install epel-release
    yum install jpegoptim
    yum install optipng
    
    cd /home/dosyayolu/public_html/image/cache
    find -type f -name "*.jpg" -exec jpegoptim --strip-all {}
    find -type f -name "*.png" -exec optipng -nc -nb -o7 {}
    find -type f -name "*.jpg" -exec jpegoptim --strip-all {}
    find -type f -name "*.png" -exec optipng -nc -nb -o7 {}
    supercache için de ek bilgi, opencart 2.2 sonrası versiyonlarda çalışmaz.
    aynen dogru duzeltme. supercache 2.2 den sonrasındada calisiyor bu arada.