• 13-03-2021, 05:47:06
    #10
    Mofthem adlı üyeden alıntı: mesajı görüntüle
    Merhaba,
    Kurmuş olduğum opencart sitesinde maalesef yavaş çalışıyor. Tema olarak Journal Temasını kullanıyorum. Sunucu olarak 4gb ram 2core bir paylaşımsız bir sunucuya sahibim. internetten ve forumdan araştırdığım kadarı ile htaccess üzerinde bir kaç düzenleme yaptım ancak yeterli olmadı. Speed test yaptığımda" İlk sunucu yanıt süresini azaltın " önerisini alıyorum. Bu sunucu yanıt süresini nasıl azaltabilirim ve ya azaltmayı bilen arkadaşlar varsa benimle iletişime geçebilirler mi?
    Merhaba Mofthem,

    Siteniz eğer kaynak sorunları nedeniyle yavaşlıyor ise en basitinden htop ile sunucu tarafında kontroller yapılarak mysql mi yoksa php tarafında mı kaynak tükettiği bulunabilir. Buna göre memcache, redis gibi çözümler denenebilir. Bu konuda sunucu kiraladığınız yerden destek talep etmenizi öneririz.

    İyi çalışmalar.
  • 13-03-2021, 05:55:36
    #11
    ana dizinde bulunan config.php ve admin/config.php dosyası
    define('HTTP_SERVER', 'http://www.domain.com/admin/');
    define('HTTP_CATALOG', 'http://www.domain.com/');
    define('HTTP_IMAGE', 'http://www.domain.com/image/');
    inceleyin https ile değiştirin




    RewriteRule ^index.php$ http://%{HTTP_HOST}? [R=301,L]
    bunu silin.
  • 13-03-2021, 06:16:41
    #12
    # 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
    # 2. In your opencart directory rename htaccess.txt to .htaccess.
    # For any support issues please visit: http://www.opencart.com
    Options +FollowSymlinks
    # Prevent Directoy listing Options -Indexes
    # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> Require all denied ## For apache 2.2 and older, replace "Require all denied" with these two lines : # Order deny,allow # Deny from all </FilesMatch>
    # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
    RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
    ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
    # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off
    # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off
    # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M
    # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M
    # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200
    # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200
    # 7. disable open_basedir limitations # php_admin_value open_basedir none
    
     [b]<IfModule mod_deflate.c>  # Compress HTML, CSS, JavaScript, Text, XML and fonts  AddOutputFilterByType DEFLATE application/javascript  AddOutputFilterByType DEFLATE application/rss+xml  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject  AddOutputFilterByType DEFLATE application/x-font  AddOutputFilterByType DEFLATE application/x-font-opentype  AddOutputFilterByType DEFLATE application/x-font-otf  AddOutputFilterByType DEFLATE application/x-font-truetype  AddOutputFilterByType DEFLATE application/x-font-ttf  AddOutputFilterByType DEFLATE application/x-javascript  AddOutputFilterByType DEFLATE application/xhtml+xml  AddOutputFilterByType DEFLATE application/xml  AddOutputFilterByType DEFLATE font/opentype  AddOutputFilterByType DEFLATE font/otf  AddOutputFilterByType DEFLATE font/ttf  AddOutputFilterByType DEFLATE image/svg+xml  AddOutputFilterByType DEFLATE image/x-icon  AddOutputFilterByType DEFLATE text/css  AddOutputFilterByType DEFLATE text/html  AddOutputFilterByType DEFLATE text/javascript  AddOutputFilterByType DEFLATE text/plain  AddOutputFilterByType DEFLATE text/xml[/b]   # Remove browser bugs (only needed for really old browsers)  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>
  • 13-03-2021, 09:44:38
    #13
    Kurumsal Üye
    @Mofthem; Sunucu alt yapısını ve siteyi bilmeden yorum yapmak pek sağlıklı olmaz maalesef.

    Site adresini pm den iletirseniz inceler ve neyin sebep olduğunu söyleyebilirim isterseniz.
  • 14-03-2021, 02:40:17
    #14
    Mofthem adlı üyeden alıntı: mesajı görüntüle
    Merhaba,
    Kurmuş olduğum opencart sitesinde maalesef yavaş çalışıyor. Tema olarak Journal Temasını kullanıyorum. Sunucu olarak 4gb ram 2core bir paylaşımsız bir sunucuya sahibim. internetten ve forumdan araştırdığım kadarı ile htaccess üzerinde bir kaç düzenleme yaptım ancak yeterli olmadı. Speed test yaptığımda" İlk sunucu yanıt süresini azaltın " önerisini alıyorum. Bu sunucu yanıt süresini nasıl azaltabilirim ve ya azaltmayı bilen arkadaşlar varsa benimle iletişime geçebilirler mi?
    Vqmod kullanıyorsanız ana dizinde vqmod klasörü ne girin checked. Cache dosyasını yedek alın silin, yada adını değiştirin yeni oluşturur zaten, boyutu çok büyüdüğünde site çok yavaşlıyor, ben çözümü modul yazıp düzenli sildirerek çözdüm aşırı fark ediyor hız
  • 14-03-2021, 02:47:28
    #15
    suleymankocabas adlı üyeden alıntı: mesajı görüntüle
    Vqmod kullanıyorsanız ana dizinde vqmod klasörü ne girin checked. Cache dosyasını yedek alın silin, yada adını değiştirin yeni oluşturur zaten, boyutu çok büyüdüğünde site çok yavaşlıyor, ben çözümü modul yazıp düzenli sildirerek çözdüm aşırı fark ediyor hız
    modülü paylaşman mümkün mü hocam ? bende düzenli silyiorum ama otomatik olsa iyi olur
  • 14-03-2021, 03:17:33
    #16
    U_uR adlı üyeden alıntı: mesajı görüntüle
    modülü paylaşman mümkün mü hocam ? bende düzenli silyiorum ama otomatik olsa iyi olur
    Olur tabi, imzadaki whatsapp dan yazın yardımcı olayım
  • 14-03-2021, 04:21:33
    #17
    Sorun sitenizde değil sunucuda, iyi çalışmalar.
  • 14-03-2021, 09:11:55
    #18
    Merhaba hocam, admin panel için ve site tarafı için controller startup ->startup php içinde ilk açılışlarda tablo sütun kontrolleri yapan sql kodları oluyor onları temizleyebilirsin. 0.1 sn ile 0.6 sn araasında bir fark oluşturuyor. Denemeni tavsiye ederim.