Title: Permissions
Last modified: August 22, 2016

---

# Permissions

 *  Resolved [brirare](https://wordpress.org/support/users/brirare/)
 * (@brirare)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/)
 * Hi,
 * I love the plugin!
 * I’ve had success setting it up on our live server, but when I try to set it up
   on my local dev environment (MAMP) I run into issues. The plugin doesn’t seem
   to be saving to the .get/config file. I’ve followed the steps to reset permissions
   outlined here: [https://wordpress.org/support/topic/failed-to-backup-the-database](https://wordpress.org/support/topic/failed-to-backup-the-database)
   but still no luck. I initally had my MAMP Apache port set to 8888, and thinking
   that could be the problem changed it to 80. Still nothing. I’ve also tried manually
   setting the config file to mysql-path = /Applications/MAMP/Library/bin/mysql (
   since saving through wordpress doesn’t save the settings). Also, git is installed
   and works to commit, push, and pull using both the command line and Coda. Any
   help at all would be greatly appreciated!
 * Thanks!
 * [https://wordpress.org/plugins/revisr/](https://wordpress.org/plugins/revisr/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5664808)
 * Hi,
 * It sounds like Apache is using the wrong environment path to git. Are you able
   to do commits, etc, from the plugin? Or is it just not saving the git/config?
 * Let me know, thanks!
 *  Thread Starter [brirare](https://wordpress.org/support/users/brirare/)
 * (@brirare)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5664816)
 * I can’t do commits or backups from the plugin. I get “Failed to initialize a 
   new repository. Please make sure that Git is installed on the server and that
   Revisr has write permissons to the WordPress install” and “Error backing up the
   database.” It also is unable to write to the config file.
 * I can, however, commit and push and pull from my code editor and command prompt,
   but not from the plugin…
 * When I run ‘which git’ in command line, I get: /usr/local/git/bin/git
 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5664823)
 * Could you create a test php file with the below:
 * <?php echo exec( ‘which git’ ); ?>
 * Let me know what it says. Thank you.
 *  Thread Starter [brirare](https://wordpress.org/support/users/brirare/)
 * (@brirare)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5664827)
 * Hmm… it returns a blank page.
 *  Thread Starter [brirare](https://wordpress.org/support/users/brirare/)
 * (@brirare)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5664934)
 * Would it matter where the main installation of git is on my mac? I had some path
   trouble when installing and now lives at /usr/local/git/bin/git. A lot of people
   I’ve seen seem to have it installed at /usr/local/bin/git.
 * Like I said earlier though, git works faultlessly through command line and my
   code editor (although I had to define the correct path for the editor to work
   with git). Let me know if you think revisr might be looking to a default path
   that isn’t correct on my machine, or something along those lines
 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5664939)
 * Hello,
 * Since that code isn’t returning anything, it seems that Git is accessible by 
   command line, but not from the browser. Do you have the default install of Git
   that is included with ‘Command Line Tools’, or did you install myself?
 * I have no issues on Mac, and the path used in Apache is /usr/bin/git. Revisr 
   doesn’t check for a default path (simply because there are so many possibilities)
   but it’s becoming clear that this needs to be a user-configurable option like
   the MySQL path.
 * Just for testing, you could try hardcoding the path to git into class-revisr-
   git.php on line 448 and see if that works for you.
 *  Thread Starter [brirare](https://wordpress.org/support/users/brirare/)
 * (@brirare)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5664977)
 * This is resolved!
 * I previously had installed git myself but hadn’t run the included script for 
   setting the path for non-terminal programs. After your help narrowing down the
   issue I ran the script, rebooted, and all is well!
 * Thanks for your prompt help and great work with the plugin!
 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/permissions-47/#post-5665049)
 * Glad you got it figured out and thanks for the review!
 *  Let me know if you have any feedback after using the plugin further.
 *  [pyramusnl](https://wordpress.org/support/users/pyramusnl/)
 * (@pyramusnl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/permissions-47/#post-5665202)
 * I had the same trouble after installing git on my mac from the installer from
   their website. I found out that you can also fix this by adding
    `define( 'REVISR_GIT_PATH','/
   usr/local/git/bin/git' );` to your** wp-config.php** file
 * I’m reporting this here because it took me a long time to figure out how to resolve
   it and I hope this will help someone else.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Permissions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/revisr_ecf0f1.svg)
 * [Revisr](https://wordpress.org/plugins/revisr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisr/)
 * [Active Topics](https://wordpress.org/support/plugin/revisr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisr/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [pyramusnl](https://wordpress.org/support/users/pyramusnl/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/permissions-47/#post-5665202)
 * Status: resolved