jjwdesign / JJWDesign-Google-Maps

SugarCRM Google Maps Integration: Accounts, Contacts, Leads, Opportunities, Cases and Projects (records) can be mapped. Multiple records can be mapped, instead of just one record at a time. Records can be mapped from a module's listing or by distance.
http://www.sugarforge.org/projects/jjwgooglemaps
GNU Affero General Public License v3.0
20 stars 22 forks source link

Admin links not showing (SugarCRM 6.5.15) #5

Closed danielneal closed 10 years ago

danielneal commented 10 years ago

I'm running SugarCRM 6.5.15 on a rackspace server, and just installed the most recent version of your excellent google maps plugin.

Unfortunately the admin links do not appear in the admin page.

I'm very new to SugarCRM so at a loss how to debug it. I noticed you had a couple of commit messages relating to admin links recently, so I wondered if this was a known issue/something you're working on?

Strangely, the links seem to work on my local machine (running SugarCRM 6.5.14). Will try upgrading my local instance to 6.5.15 to see if that makes them disappear.

Anyways, hope you can help - the module (which I've got running locally) is a fantastic piece of work!

Danisan commented 10 years ago

Try to chmod your rackspace sugar instance to 777. Most of problems in Sugar come from this. If you can't get it working, uninstall jjwg, chmod -R 777 . and install it again

danielneal commented 10 years ago

Wow - thanks for your quick response, Danisan! I'm pretty new to SugarCRM - aren't there security risks to setting the whole thing to 777? I did originally follow the guide to permissions; but obviously I've got something wrong somewhere... Are there specific additional folders that I should set to 777 to get jjwg working?

Danisan commented 10 years ago

May be this is not the best practice, but when sugar itself installs modules, it uses the apache user to modify files. Sometimes depending on hosting configuration your user not always is the same as (for example www-data). This is the reason to solve this using this aproach. This is the guide about permissions ( I assumed your instance is under Linux) : http://support.sugarcrm.com/04_Find_Answers/02KB/02Administration/100Install/Required_File_System_Permissions_on_Linux

And this: http://support.sugarcrm.com/02_Documentation/01_Sugar_Editions/05_Sugar_Community_Edition/Sugar_Community_Edition_6.5/Administration_Guide/14_Advanced_Configuration_Options#Configuring_Default_Permissions_for_Sugar_Files_on_Linux

Also, there is SuiteCRM, a forked SugarCRM CE developement that is being released in a few days more, where jjwg maps is being included from scratch: www.suitecrm.com

danielneal commented 10 years ago

Boom, it works!! Thanks a million.

This was the key, from the link you provided.

However, some hosting providers don't, by default, set the file group membership to the group to which the apache user belongs. In such cases, you will need to either request your hosting provider to change the group ownership of your Sugar installation files to a group that the Apache web server is a member of, or set the file permissions to:

  • 777 for the directories listed above
  • 666 for the config.php file and all files in the directories listed above

I just had to:

chmod 666 config.php
chmod -R 777 cache custom data modules

On Thu, Oct 10, 2013 at 12:34 PM, Daniel Blanco notifications@github.comwrote:

May be this is not the best practice, but when sugar itself installs modules, it uses the apache user to modify files. Sometimes depending on hosting configuration your user not always is the same as (for example www-data). This is the reason to solve this using this aproach. This is the guide about permissions ( I assumed your instance is under Linux) : http://support.sugarcrm.com/04_Find_Answers/02KB/02Administration/100Install/Required_File_System_Permissions_on_Linux

And this: http://support.sugarcrm.com/02_Documentation/01_Sugar_Editions/05_Sugar_Community_Edition/Sugar_Community_Edition_6.5/Administration_Guide/14_Advanced_Configuration_Options#Configuring_Default_Permissions_for_Sugar_Files_on_Linux

Also, there is SuiteCRM, a forked SugarCRM CE developement that is being released in a few days more, where jjwg maps is being included from scratch: www.suitecrm.com

— Reply to this email directly or view it on GitHubhttps://github.com/jjwdesign/JJWDesign-Google-Maps/issues/5#issuecomment-26046127 .

Danisan commented 9 years ago

The best practice with this is the following: for SugarCRM:

chown -R : find <sugarpath -type d -exec chmod 755 {} \; find <sugarpath -type f -exec chmod 644 {} \;

You should also check in config.php the following values:

array ( 'dir_mode' => 1517, 'file_mode' => 420, 'user' => '', 'group' => '', ),

where and should be the group and user under which apache is running. (in ubuntu for example, www-data for both). and <..path> is the path in the file system where crm is running (for example /var/www/crm, or /opt/sugar/public_html).

In SuiteCRM is easier: chown -R : chmod -R 755 cd chmod -R 775 cache custom modules themes data upload config_override.php

and in config:

array ( 'dir_mode' => 1517, 'file_mode' => 493, 'user' => '', 'group' => '', ),