WordPress is loading Slow!

#1
Hello guys.
since we have a high traffic WP website we suggested to move it to a DEDICATED server with LSWS!
we got a server and a LSWS license.
here is our server configuration:
CPU: 2 x E5-2620v2
RAM:32GB
HDD:1 x 300GB SAS for OS, 1 x 300GB SAS for /home, 1 x 120GB SSD for /var/lib
Control Panel: DirectAdmin
LSWS Ver and License Type: 5.0.1, 2-CPU License Owned

So after moving our website to this server everything is good , load is around 2 and etc!
LSWS is running with default configurations!
PHP is running as suPHP however i am geting this warn:
/etc/httpd/conf/extra/httpd-suphp.conf:7: Directive 'suPHP_ConfigPath' is not allowed in current context.

as i said everything is good because WP is using W3 Total Cache so, users will open the website with lithening speed! but if you are logged in as ADMIN so you wont see cached files, there the annoying problem comes!
IF YOU ARE LOGGED INTO ADMIN AND WANT TO OPEN WEBSITE OR IF YOU ARE A VISITOR AND WANT TO USE SOME DYNAMIC FEATURES, WEBSITE LOADING IS AWFULLY SLOW!
this SLOWNESS is ALOT! if i decrease server CONNECTION TIMEOUT from 120sec to 30sec it will not LOAD and will get me an internal server error!
unfortunately im not getting any erros in LSWS error log or anything!
is there a problem with LSWS confguration?!
 

Pong

Administrator
Staff member
#2
For your warning message, you can refer this wiki: https://www.litespeedtech.com/suppo...bleshooting:suphp_usergroup-not-allowed-error
You don't need SuEXEC unless it is a shared hosting server. Make sure you turn this off.

How many cores the server has? 6 Cores X 2CPU, so altogether 6x2 cores, right?

If so, server load 2 comparing to 12 cores is quite good.

What's your configuration for your lsphp?
Any information on your real time stats?
IO wait?

Do you have opcode cache installed? ( which will speed up the PHP load time).
 
#3
For your warning message, you can refer this wiki: https://www.litespeedtech.com/suppo...bleshooting:suphp_usergroup-not-allowed-error
You don't need SuEXEC unless it is a shared hosting server. Make sure you turn this off.

How many cores the server has? 6 Cores X 2CPU, so altogether 6x2 cores, right?

If so, server load 2 comparing to 12 cores is quite good.

What's your configuration for your lsphp?
Any information on your real time stats?
IO wait?

Do you have opcode cache installed? ( which will speed up the PHP load time).
it has 6 Cores + 6 Threads X 2
How can i see and change LSPHP configuration?
Realtime Stats screenshot is uploaded
IO wait ? from TOP or ?
No i dont have opcode cache!
 

Attachments

Pong

Administrator
Staff member
#4
https://www.litespeedtech.com/docs/webserver/config/general#phpSuExec should be set to "No" if you don't use SuEXEC. Of course you apache SuPHP or other SuEXEC mode need to be turn off as well. ( you are not running hosting services, right?)

LSPHP configuration: LSWS Web Console -> Configuration -> Server -> External App -> Your lsphp external app( may be a few, clieck the right one)

Top can check IO wait.

You should get your opcode cache such as Xcache installed.

If you experienceed slow for wordpress admin page, test the same page with Apache to see how it is going.
 
#5
Hey,
im not hosting but im a bit concered of security :( that is why im using suPHP!

however i have uploaded the LSAPI config page please let me know if i should change anything!
should i enable mod_ruid2?
in DirectAdmin there is an option named opcache!
should i enable that?!
 

Attachments

#6
And, you KNOW WORDPRESS admin is not my prblem, MAIN PAGE OF THE SITE when im logged it is the problem which is SLOW!
it is faster when on Apache though!
So here are options, since im afraid if i compile PHP using LSWS Web COnsole it will be broken next time DA updates, i shall go with CB 2.0
in CB we have Zend OPCACHE and MOD_RUID2 which both can be enabled!
I can enable that, will that make a lot difference?

another thing is that i shall give some tune ups to lsws itink since Apache is loading WORDPRESS (only wordpress) much faster!
how do u guys think about that tuning?
 

NiteWave

Administrator
#8
the issue looks complicated and not easy to answer it.
and at least I've no experience for such issue:
it's fast in both front end and backend (/wp-admin/..), but only slow when logged in to preview the main page.

have to try and try to narrow down the scope. 1st idea came up in my mind is, can you disable Zend Opcache temporarily and see if this issue still exist ?

also can you provide the wordpress account and steps, so we can reproduce the issue ?
 
#9
As such, WordPress is already a neat and lightweight platform, which rarely causes issues like slow loading. However, usually people place so many graphic on their website that in turn makes it heavy to load. Apart from this, integrating unnecessary plugins to website also leads to make your website slow. Therefore, graphics and WordPress plugins must be used up to a certain extent.

I am quoting some points that one can consider in order to Speed Up his WordPress site:

  • Choose a good host
  • Begin with a solid theme/framework
  • Use an efficient caching plugin
  • Disable leeching & hotlinking of your content
  • Use a CDN (content delivery network)
  • Optimize images
  • Optimize homepage graphics
  • Optimize WordPress database
 

Pong

Administrator
Staff member
#10
PHP SuEXEC is good for hosting services for many users to share resources while protecting the files to be accessed by other users. Your dedicated server doesn't has such issue hence SuEXEC has no security benefit for you.

You should also disable MOD_RUID2 since it is not compatible with LiteSpeed.

If you still want SuEXEC, you might need to consider SuEXEC Daemon mode or SuEXEC Process Group mode to use opcode cache. https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:which_php_setup_am_i_using

Also check the real time stats, if the WaitQ is constantly greater than 0, you should adjust PHP SuEXEC Max_connection.

https://www.litespeedtech.com/docs/webserver/config/general#phpSuExecMaxConn

You may also try setting without SuEXEC ( recommended for your situation) to see how it going.
 
Last edited:
Top