Activity Stream
48,167 MEMBERS
61314 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 34

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    omin24.pl
    Disable :

    - online module counter (dle modile with avatars , if u have)
    - use gzip compression
    - turn off related post module
    - turn off archive
    - turn off TOP 10 articles
    Motor92 Reviewed by Motor92 on . DLE Heavy cpu load Hi, i am running a DLE portal. It have around 700K posts on it and its taking a lot of resources. I cannot even run it on a server with 12Gb Ram + quadcore processor. Is there a way to reduce these loads? When i do command "top" on ssh, it shows that mysql is using 300%+ of resources? Rating: 5
    DataLife Engine Developer - Cheap unique modules for DLE. || PHP designer

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by Motor92 View Post
    Disable :

    - online module counter (dle modile with avatars , if u have)
    - use gzip compression
    - turn off related post module
    - turn off archive
    - turn off TOP 10 articles
    I already tried that.

    But 1 thing is that if i use gzip compression then server load increases more because i heard it takes more cpu! However reduces page load time.
    But when server load will be high then the response will be slow like hell

  4.     
    #3
    Member
    Website's:
    downfreak.com
    Where are the owners of these BIG DLE WEBSITEs..

    Would be great if they can advise us..

  5.     
    #4
    Member
    As much optimisation as you want start from: hxxp: builtwith.cxm
    and you will see that the big ones are not using apache.
    i'm about to change to nginx as well final tweeking stage.

  6.     
    #5
    Member
    Website's:
    downfreak.com
    Quote Originally Posted by scriptzm View Post
    As much optimisation as you want start from: hxxp: builtwith.cxm
    and you will see that the big ones are not using apache.
    i'm about to change to nginx as well final tweeking stage.
    Is the sourceccode of DLE compatible with nginx? or there is mods to be done?
    cheers

  7.     
    #6
    Member
    I'm testing it at the moment and so far all you need is the htaccess with nginx has in its vhost. below what it should look like

    PHP Code: 
    server {
        
    listen      ip:80;
        
    server_name home;
        

        
    root /home/....;

        
    rewrite ^/page/(.*)$ /index.php?cstart=$1 last;

        
    location / {
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$" /index.php?year=$1&month=$2&day=$3 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)(/?)+$" /index.php?year=$1&month=$2&day=$3&cstart=$4 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})(/?)+$" /index.php?year=$1&month=$2 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$" /index.php?year=$1&month=$2&cstart=$3 last;
            
    rewrite "^/([0-9]{4})(/?)+$" /index.php?year=$1 last;
            
    rewrite "^/([0-9]{4})/page/([0-9]+)(/?)+$" /index.php?year=$1&cstart=$2 last;
            
    rewrite "^/([^.]+)(/?)+$" /index.php?do=cat&category=$1 last;
            
    rewrite "^/([^.]+)/page/([0-9]+)(/?)+$" /index.php?do=cat&category=$1&cstart=$2 last;
            
    index  index.php index.html index.htm;
        }

        
    location /tags/ {
            
    rewrite ^/tags/([^/]*)(/?)+$ /index.php?do=tags&tag=$1 last;
            
    rewrite ^/tags/([^/]*)/page/([0-9]+)(/?)+$ /index.php?do=tags&tag=$1&cstart=$2 last;
        }

        
    location /user/ {
            
    rewrite ^/user/([^/]*)/rss.xml$ /engine/rss.php?subaction=allnews&user=$1 last;
            
    rewrite ^/user/([^/]*)(/?)+$ /index.php?subaction=userinfo&user=$1 last;
            
    rewrite ^/user/([^/]*)/page/([0-9]+)(/?)+$ /index.php?subaction=userinfo&user=$1&cstart=$2 last;
            
    rewrite ^/user/([^/]*)/news(/?)+$ /index.php?subaction=allnews&user=$1 last;
            
    rewrite ^/user/([^/]*)/news/page/([0-9]+)(/?)+$ /index.php?subaction=allnews&user=$1&cstart=$2 last;
            
    rewrite ^/user/([^/]*)/news/rss.xml(/?)+$ /engine/rss.php?subaction=allnews&user=$1 last;
        }

        
    location /lastnews/ {
            
    rewrite ^/lastnews/(/?)+$ index.php?do=lastnews last;
            
    rewrite ^/lastnews/page/([0-9]+)(/?)+$ /index.php?do=lastnews&cstart=$1 last;
        }

        
    location /catalog/ {
            
    rewrite ^/catalog/([^/]*)/rss.xml$ /engine/rss.php?catalog=$1 last;
            
    rewrite ^/catalog/([^/]*)(/?)+$ /index.php?catalog=$1 last;
            
    rewrite ^/catalog/([^/]*)/page/([0-9]+)(/?)+$ /index.php?catalog=$1&cstart=$2 last;
        }

        
    location /newposts {
            
    rewrite ^/newposts(/?)+$ /index.php?subaction=newposts last;
            
    rewrite ^/newposts/page/([0-9]+)(/?)+$ /index.php?subaction=newposts&cstart=$1 last;
        }

        
    location /favorites {
            
    rewrite ^/favorites(/?)+$ /index.php?do=favorites last;
            
    rewrite ^/favorites/page/([0-9]+)(/?)+$ /index.php?do=favorites&cstart=$1 last;
        }

        
    location ~ \.(html|xml) {
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),([0-9]+),(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&cstart=$5&news_name=$6 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/print:page,([0-9]+),(.*).html(/?)+$" /engine/print.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_name=$4 last;
            
    rewrite "^/([^.]+)/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$4&news_page=$2&cstart=$3 last;
            
    rewrite "^/([^.]+)/page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$3&news_page=$2 last;
            
    rewrite "^/([^.]+)/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /engine/print.php?news_page=$2&newsid=$3 last;
            
    rewrite "^/([^.]+)/([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$2 last;
            
    rewrite "^/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$3&news_page=$1&cstart=$2 last;
            
    rewrite "^/page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$2&news_page=$1 last;
            
    rewrite "^/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /engine/print.php?news_page=$1&newsid=$2 last;
            
    rewrite "^/([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$1 last;
            
    rewrite "^/static/(.*).html(/?)+$" /index.php?do=static&page=$1 last;
            
    rewrite ^/rules.html$ /index.php?do=rules last;
            
    rewrite ^/statistics.html$ /index.php?do=stats last;
            
    rewrite ^/addnews.html$ /index.php?do=addnews last;
            
    rewrite ^/([^.]+)/rss.xml$ /engine/rss.php?do=cat&category=$1 last;
            
    rewrite ^/page,([0-9]+),([^/]+).html$ /index.php?do=static&page=$2&news_page=$1 last;
            
    rewrite ^/print:([^/]+).html$ /engine/print.php?do=static&page=$1 last;
            
    rewrite ^/rss.xml$ /engine/rss.php last;
            
    rewrite ^/sitemap.xml$ /uploads/sitemap.xml last;
        }

        
    location ~* \.(jpg|jpeg|gif|png|ico|swf|css|js)$ {
            
    expires             30d;
            
    add_header          Cache-Control public;
        }

    ## There is an additional password to admin
        
    location =/admin.php {
            
    auth_basic            "closed section";
            
    auth_basic_user_file  htpasswd;
            
    fastcgi_pass   unix:/tmp/fastcgi.sock;
            
    fastcgi_index  index.php;
            
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        
    fastcgi_params;
        }

        
    location ~ \.php$ {
            
    fastcgi_pass   unix:/tmp/fastcgi.sock;
            
    fastcgi_index  index.php;
            
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        
    fastcgi_params;
        }

        
    location ~ /\.ht {
            
    deny  all;
        }

    you can also port nginx to apache that should speed up things i i have read!
    All depends on your resources.
    Mine are limited so no apache.
    So far so good tring to get mysql optimized now to use less resouces.

  8.     
    #7
    Member
    Website's:
    downfreak.com
    Quote Originally Posted by scriptzm View Post
    I'm testing it at the moment and so far all you need is the htaccess with nginx has in its vhost. below what it should look like

    PHP Code: 
    server {
        
    listen      ip:80;
        
    server_name home;
        

        
    root /home/....;

        
    rewrite ^/page/(.*)$ /index.php?cstart=$1 last;

        
    location / {
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$" /index.php?year=$1&month=$2&day=$3 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)(/?)+$" /index.php?year=$1&month=$2&day=$3&cstart=$4 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})(/?)+$" /index.php?year=$1&month=$2 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$" /index.php?year=$1&month=$2&cstart=$3 last;
            
    rewrite "^/([0-9]{4})(/?)+$" /index.php?year=$1 last;
            
    rewrite "^/([0-9]{4})/page/([0-9]+)(/?)+$" /index.php?year=$1&cstart=$2 last;
            
    rewrite "^/([^.]+)(/?)+$" /index.php?do=cat&category=$1 last;
            
    rewrite "^/([^.]+)/page/([0-9]+)(/?)+$" /index.php?do=cat&category=$1&cstart=$2 last;
            
    index  index.php index.html index.htm;
        }

        
    location /tags/ {
            
    rewrite ^/tags/([^/]*)(/?)+$ /index.php?do=tags&tag=$1 last;
            
    rewrite ^/tags/([^/]*)/page/([0-9]+)(/?)+$ /index.php?do=tags&tag=$1&cstart=$2 last;
        }

        
    location /user/ {
            
    rewrite ^/user/([^/]*)/rss.xml$ /engine/rss.php?subaction=allnews&user=$1 last;
            
    rewrite ^/user/([^/]*)(/?)+$ /index.php?subaction=userinfo&user=$1 last;
            
    rewrite ^/user/([^/]*)/page/([0-9]+)(/?)+$ /index.php?subaction=userinfo&user=$1&cstart=$2 last;
            
    rewrite ^/user/([^/]*)/news(/?)+$ /index.php?subaction=allnews&user=$1 last;
            
    rewrite ^/user/([^/]*)/news/page/([0-9]+)(/?)+$ /index.php?subaction=allnews&user=$1&cstart=$2 last;
            
    rewrite ^/user/([^/]*)/news/rss.xml(/?)+$ /engine/rss.php?subaction=allnews&user=$1 last;
        }

        
    location /lastnews/ {
            
    rewrite ^/lastnews/(/?)+$ index.php?do=lastnews last;
            
    rewrite ^/lastnews/page/([0-9]+)(/?)+$ /index.php?do=lastnews&cstart=$1 last;
        }

        
    location /catalog/ {
            
    rewrite ^/catalog/([^/]*)/rss.xml$ /engine/rss.php?catalog=$1 last;
            
    rewrite ^/catalog/([^/]*)(/?)+$ /index.php?catalog=$1 last;
            
    rewrite ^/catalog/([^/]*)/page/([0-9]+)(/?)+$ /index.php?catalog=$1&cstart=$2 last;
        }

        
    location /newposts {
            
    rewrite ^/newposts(/?)+$ /index.php?subaction=newposts last;
            
    rewrite ^/newposts/page/([0-9]+)(/?)+$ /index.php?subaction=newposts&cstart=$1 last;
        }

        
    location /favorites {
            
    rewrite ^/favorites(/?)+$ /index.php?do=favorites last;
            
    rewrite ^/favorites/page/([0-9]+)(/?)+$ /index.php?do=favorites&cstart=$1 last;
        }

        
    location ~ \.(html|xml) {
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),([0-9]+),(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&cstart=$5&news_name=$6 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/print:page,([0-9]+),(.*).html(/?)+$" /engine/print.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 last;
            
    rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_name=$4 last;
            
    rewrite "^/([^.]+)/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$4&news_page=$2&cstart=$3 last;
            
    rewrite "^/([^.]+)/page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$3&news_page=$2 last;
            
    rewrite "^/([^.]+)/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /engine/print.php?news_page=$2&newsid=$3 last;
            
    rewrite "^/([^.]+)/([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$2 last;
            
    rewrite "^/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$3&news_page=$1&cstart=$2 last;
            
    rewrite "^/page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$2&news_page=$1 last;
            
    rewrite "^/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /engine/print.php?news_page=$1&newsid=$2 last;
            
    rewrite "^/([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$1 last;
            
    rewrite "^/static/(.*).html(/?)+$" /index.php?do=static&page=$1 last;
            
    rewrite ^/rules.html$ /index.php?do=rules last;
            
    rewrite ^/statistics.html$ /index.php?do=stats last;
            
    rewrite ^/addnews.html$ /index.php?do=addnews last;
            
    rewrite ^/([^.]+)/rss.xml$ /engine/rss.php?do=cat&category=$1 last;
            
    rewrite ^/page,([0-9]+),([^/]+).html$ /index.php?do=static&page=$2&news_page=$1 last;
            
    rewrite ^/print:([^/]+).html$ /engine/print.php?do=static&page=$1 last;
            
    rewrite ^/rss.xml$ /engine/rss.php last;
            
    rewrite ^/sitemap.xml$ /uploads/sitemap.xml last;
        }

        
    location ~* \.(jpg|jpeg|gif|png|ico|swf|css|js)$ {
            
    expires             30d;
            
    add_header          Cache-Control public;
        }

    ## There is an additional password to admin
        
    location =/admin.php {
            
    auth_basic            "closed section";
            
    auth_basic_user_file  htpasswd;
            
    fastcgi_pass   unix:/tmp/fastcgi.sock;
            
    fastcgi_index  index.php;
            
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        
    fastcgi_params;
        }

        
    location ~ \.php$ {
            
    fastcgi_pass   unix:/tmp/fastcgi.sock;
            
    fastcgi_index  index.php;
            
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        
    fastcgi_params;
        }

        
    location ~ /\.ht {
            
    deny  all;
        }

    you can also port nginx to apache that should speed up things i i have read!
    All depends on your resources.
    Mine are limited so no apache.
    So far so good tring to get mysql optimized now to use less resouces.

    Keep us update how you going with it.

    cheers mate

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My vacation in Natal, Brazil. (Heavy Thread)
    By aishamontreal in forum General Discussion
    Replies: 223
    Last Post: 10th Sep 2012, 01:52 PM
  2. My site will not load in Windows 7 will load on XP
    By DJboutit in forum Webmaster Discussion
    Replies: 2
    Last Post: 12th May 2012, 07:56 PM
  3. Google plans to penalize SEO heavy web sites
    By ShareShiz in forum News & Current Events
    Replies: 2
    Last Post: 17th Mar 2012, 08:38 PM
  4. Jobs With heavy Money I Am Working!
    By Royal Prince in forum Webmasters, Money Making
    Replies: 2
    Last Post: 7th Jul 2011, 09:33 AM
  5. To experience heavy uploaders
    By MrCube in forum File Host Discussion
    Replies: 6
    Last Post: 30th May 2011, 10:28 AM

Tags for this Thread

BE SOCIAL