Editing WordPress Optimization

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 291: Line 291:
 
==cPanel PHP 5.5 Configuration for Wordpress==
 
==cPanel PHP 5.5 Configuration for Wordpress==
  
Other than making sure EasyApache is using at least PHP 5.5.x as the main version there is not a lot of configuration needed to optimize '''[http://wiki.mikejung.biz/Category:PHP PHP]'''. PHP 5.5 has a built in '''[http://wiki.mikejung.biz/PHP_OPcache OPcache]''', previously this was known as the Zend Optimizer, but now that is open source and built into PHP. All you need to do is modify the global php.ini file and include the opcache.so module, which should already exist on the server. By using opcode '''[http://wiki.mikejung.biz/Category:Caching caching]''', we allow already compiled PHP code to get cached in RAM. The next time the server needs to perform a cached PHP operation it can simply run it instead of having to interpret it and compile it again. This saves a ton of CPU usage and also reduces latency between requests, which means your site loads faster and uses less resources.  
+
Other than making sure EasyApache is using at least PHP 5.5.x as the main version there is not a lot of configuration needed to optimize PHP. PHP 5.5 has a built in '''[http://wiki.mikejung.biz/PHP_OPcache OPcache]''', previously this was known as the Zend Optimizer, but now that is open source and built into PHP. All you need to do is modify the global php.ini file and include the opcache.so module, which should already exist on the server. By using opcode caching, we allow already compiled PHP code to get cached in RAM. The next time the server needs to perform a cached PHP operation it can simply run it instead of having to interpret it and compile it again. This saves a ton of CPU usage and also reduces latency between requests, which means your site loads faster and uses less resources.  
  
To use opcache correctly you must make sure that you are using either '''[[Fcgid|FCGI]]''' or '''[[Php-fpm|PHP-FPM]]''' as the '''[[PHP Handlers]]'''. If you are using DSO or SuPHP then opcaching will not work and your server will be low and waste memory.  
+
To use opcache correctly you must make sure that you are using either FCGI or PHP-FPM as the PHP handler. If you are using DSO or SuPHP then opcaching will not work and your server will be low and waste memory.  
  
 
===Zend OPcache Configuration===
 
===Zend OPcache Configuration===

Please note that all contributions to wiki.mikejung.biz may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see wiki.mikejung.biz:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)