Permissions Issue with WordPress
I removed the sticky permission with using the – instead of the + and the website works. sudo chmod -R g-s
I removed the sticky permission with using the – instead of the + and the website works. sudo chmod -R g-s
Sometimes hosting providers will implement mod_security (and not mention anything). Or else, mod_security was already on but a recent installation of a plugin or theme may have exposed this new problem for you. You can try these four things… Add the following to your .htaccess file (add to .htaccess, don’t replace the other stuff already … Read more
Hmmm sometimes FTP clients will show that you are the owner of the file but it doesn’t explain to you that other users don’t have read / write permissions. So even if you changed something in the your footer.php another user (WordPress in this case) will not see it. Did you change permissions or CHMOD … Read more
yes, of course i just figured it out. chown = username chgrp = www-data in other words: chown -R username:www-data dir_containing_all_wordpress/
Changing the db prefix on a WordPress installation requires more than simply changing the prefix on the tables. There are also options that use the db prefix in the options tables. You’ll need to update them as well. Specifically the wp_user_capabilties and the wp_user_level keys in the {db_prefix}_options table. See the following tutorial for further … Read more
I’m too working on Ubuntu, personally I’m setting things up like this: sudo chown -R nasser /path/to/your/wordpress/root/ sudo chgrp -R www-data /path/to/your/wordpress/root/ sudo chmod -R 775 /path/to/your/wordpress/root/ I only do this on my local development machine for convenience and a smoother work-flow. One more thing to note, I’ve moved the www directory into the home … Read more
WordPress debug.log is not updating
That’s an interesting question. You could probably Create Custom Roles and use Roles and Capabilities ( codex.wordpress[dot]org/Roles_and_Capabilities ) to your advantage. You might also be able to add Custom Fields To each User ( wpengineer[dot]com/2173/custom-fields-wordpress-user-profile ) that could help you achieve this goal. This bit of code below might be helpful as you research. Entering … Read more
I think setting a cron job to automatically turn permissions on and off might be a bit of an extreme workround 🙂 I think it is probably worth spending the time to set up working permissions on your server, rather than a cron job which could introduce other problems. This has been a good resource … Read more
Imho that’s one of the most important things regarding users: /** * Deny access to ‘administrator’ for other roles * Else anyone, with the edit_users capability, can edit others * to be administrators – even if they are only editors or authors * * @since 0.1 * @param (array) $all_roles * @return (array) $all_roles */ … Read more