Website on Plesk server and sudden 500 error

After Apache got updated on our Ubuntu distro, we suddenly started have Error 500 of Plesk shown on all our sites.

AH10292: Invalid proxy UDS filename (proxy:unix:///var/www/vhosts/system/example.com/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/vhosts/example.com/httpdocs/public/index.php)

Then handling of UDS URIs to proxy connections from Apache to PHP-FPM seems to have been modified and that resulted with Error on Plesk.

Continue reading »

Best WordPress Hosting Companies

  • WpEngine is a very special hosting company that focuses only on WordPress hosting, where the support is provided by WordPress experts.
  • Shared Hosting – HostGator to clients who are getting started or have growing sites.

So you acquired a domain name, and are now looking at web hosting providers for your WordPress sites. With all the different choices and providers out there, where should you start your search for the best web hosting? In this article, we explain the various types of hosting, features to consider, and provide a few recommendations.

Continue reading »

Remove Woocommerce Menu for Shop Manager Role

Let’s assume that you’d like to hide the WooCommerce menu for a certain user role, shop manager to be exact, and looking for a way to do it.

Using the capability together with the remove_menu() function, we can disable WooCommerce menu for any user roles. The function below is going to hide WooCommerce menu items for everyone except for admin.

add_action( 'admin_menu', 'remove_woocommerce_menu' );
function remove_woocommerce_menu(){
    if ( !current_user_can('manage_options') ) {
        remove_menu_page( 'woocommerce' ); // Menu slug for WooCommerce
    }
}
1 2 3 12