Configure Permissions in Mamp [closed]

Your local site is on a Mac, which uses a different users and groups system than a production (linux) environment. I would recommend that you change the permissions to what they should be on the local dev environment to what they should be before you upload them to a production/QA environment. Please refer to this … Read more

Changing host permissions for MySQL users

If you’ve got access to the mysql database, you can change the grant tables directly: UPDATE mysql.user SET Host=”%” WHERE Host=”localhost” AND User=”username”; …and an analogous UPDATE-statement to change it back. Also you might need to make changes to the mysql.db table as well: UPDATE mysql.db SET Host=”%” WHERE Host=”localhost” AND User=”username”; and then flush … Read more

Can i exclude certain page templates for a specific role?

If you need to change the template used, you can use the template_include filter (change “itermediate-template.php” and “page.php” with correct file names of your template files): add_filter( ‘template_include’, ‘cyb_exclude_template_for_editors’, 99 ); function cyb_exclude_template_for_editors( $template ) { $user = wp_get_current_user(); if( in_array( “editor”, (array) $user->roles ) && is_page_template( “itermediate-template.php” ) ) { $new_template = locate_template( array( … Read more

Permissions error

This is more server config question than WordPress. Make sure the www-data group has write permissions in the directory you’re running WordPress from. Assuming it’s in /var/www/ then sudo chmod -R g+rwxs /var/www/ should do the trick.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)