Topics

work

Install Sphinx 2.0.4 on CentOS 6.2

– Make sure to check CentOS, PHP-FPM, Nginx, memcached and MYSQL posts.

– Get fresh RPM from sphinxsearch.com

– Install Sphinx

rpm -Uhv http://sphinxsearch.com/files/sphinx-2.0.4-1.rhel6.x86_64.rpm

– Create sample MySQL database

Get average server load

This function should work on Unix as on windows

Change WordPress page order

I am not sure why Page order is not working in WordPress, but this is a simple workaround to fix it

  • go to wordpress admin -write -write page -change ALL pages “Page Order” from the right down box.
  • open file “wp-includes\template-functions-post.php” in any text editor.
  • go to line 334 or search for “function wp_list_pages($args = ”) {“
  • insert this line after the searched line ” $args .= ‘&sort_column=menu_order’;”
  • save it and now your page should order fine.