Portal Home > Knowledgebase > Articles Database > sites are slow in cpanel;


sites are slow in cpanel;




Posted by waptoplist, 09-16-2014, 11:58 PM
hello friends, i have a 32GB ram server, iam using cpanel in that; some sites are taking about 20-30 secs to openning. what to do ?? how to boost cpanel performence and site speed ? [sorry for my bad english ]

Posted by securedhost, 09-17-2014, 12:18 AM
If you are using php based application then you can install PHP accelerators in your server.

Posted by waptoplist, 09-17-2014, 12:28 AM
What about nginx..?? Its better to use nginx as front or in back of apache..?

Posted by AdroitSSD LLC, 09-17-2014, 12:38 AM
Nginx can't optimize dynamic content

Posted by waptoplist, 09-17-2014, 12:50 AM
so what to do now ?

Posted by irfan-EyHost, 09-17-2014, 02:19 AM
you should optimized mysql,apache. hope it will give better performances.

Posted by Kailash12, 09-17-2014, 02:35 AM
you haven't provide enough information to help you. What is your server load? What is the memory usage? Is your source code well optimized?

Posted by waptoplist, 09-17-2014, 02:42 AM
how to optimize apache ??

Posted by waptoplist, 09-17-2014, 02:46 AM
Server load 0.16 (8 CPUs) Memory Used 3.85% (1,263,328 of 32,841,012) Swap Used 1.57% (193,168 of 12,287,992) and yes, i think source code is optimized well..

Posted by Hidemyidentity, 09-17-2014, 02:56 AM
There are few things which you need to consider while troubleshooting on sluggishness issues in websites. 1. Check the site speed on third party site like http://tools.pingdom.com/fpt/. Analyse the speed and check whether which page is causing the latency. Try to analyse any errors like internal server, Not found error while loading the site 2. Check the server load, Memory usage, Mysql Slow queries, etc., on the server load. Play with Linux commands to ananlyse these things. 3. You can use PHP accelerators like eacceleator, Xcache, APC to improve the performance. However, these mechanism will not help for dynamic case. 4. Incase there are multiple slow queries, enable and identify slow queries in mysql. Optimise the slow queries to improve the site performance.

Posted by waptoplist, 09-17-2014, 03:34 AM
thanks; i checked my sites, load time: 18.67s and the most amazing thing for me is : wait - 17.82s how to reduce this wait time ?? Last edited by waptoplist; 09-17-2014 at 03:35 AM. Reason: mistake;

Posted by Hidemyidentity, 09-17-2014, 03:54 AM
The wait time indicates the site seems to be taking long time to process the request on the server. As you mentioned earlier, there domains which exist in your server speed considerably good. So, what we felt it might be poorly written codes in the site. Did you checked the slow queries running on the server ?. We would like to provide some recommendation to improve the performance. 1. Make sure that there is no broken link in html, php codes. 2. Mention the absolute path(like images/1.jpg) for image files in the code instead of domain reference. 3. You may try for the recommendation given in the pingdom tool analyse report. 4. If you are using firefox, install yslow addon and try the recommendation which will given when we load the site on browser.

Posted by waptoplist, 09-17-2014, 07:32 AM
got the problem guys, this is taking a lot of time { require_once("ip.codehelper.io.php"); require_once("php_fast_cache.php"); $_ip = new ip_codehelper(); $real_client_ip_address = $_ip->getRealIP(); $visitor_location = $_ip->getLocation($real_client_ip_address); } i am using this code for getting the visitors location.. now total pageload time comes to: 5secs

Posted by Hidemyidentity, 09-17-2014, 07:47 AM
I am glad you found the root cause and fixed it. Keep Going.

Posted by waptoplist, 09-17-2014, 08:49 AM
a very big thanks to all of you guys, you all helped me a lot;

Posted by waptoplist, 09-17-2014, 10:44 AM
I wanna know these things also:- 1- if i install nginxcp or nginx (from source) in my server..?? What benifits i will get..?? 2- nginx is better to use as back or in front in apache..??

Posted by xlightwaverx, 09-21-2014, 09:30 PM
You can use nginx for static content and then reverse proxy it to apache. You can also use varnish cache to do the same thing. After that the rest goes to apache, so if you further want to speed up apache you can compile it with in event mode, and hand it off to php5-fpm. Basically you'll have the speed of nginx/php5-fpm with the easy readwrites and htaccess junk that the people love.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Burst.net VPS down (Views: 847)
Reselling (Views: 30310)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.