Results 1 to 6 of 6

Thread: s Sub-Directories anWritable Moduled Files

  1. #1
    guylevi is offline Member
    Join Date
    Nov 2006
    Posts
    6

    Default s Sub-Directories anWritable Moduled Files

    Technical details
    Operating system linux
    suger suite version 4.5.0
    php version 4.4.2
    my thread:
    During installation I have to change attributes on hundreds of file in modules directory.
    How do I do them all at once?
    thanks a lot
    guy

  2. #2
    chrisky is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Trondheim, Norway
    Posts
    293

    Default Re: s Sub-Directories anWritable Moduled Files

    #chown -R linuxusername.linuxusername /var/www/html/sugardirectoryname

    You want to change the ownership, don't bother messing with permissions, UNLESS for some reason the files are open to the world [with write permissions for example] when they should not be.

    No matter what the permissions are, so long as the same user [as your webserver daemon] owns them, the webserver will have all access and permissions neccessary.

    You should go google up some sites containing guides/manuals/tutorials of linux cli commands and their usage.

    And if you don't know what username your webserver runs under...
    Just go list the files in a directory or two of which is under your webserver root;
    what you're really looking for is files of which were created/written by the webserver.
    It usually stands out like a sore thumb, as most if not all of the files will be owned by the same person. For illustration purposes, I cur and pasted an example below.

    Also, you might take a look at the new module I'm releasing [and posting here on the forum in the Downloads section.]

    [root@VoIP7 web]# chown -R asterisk.asterisk /var/www/html/crm450
    [root@VoIP7 web]# cd /web
    [root@VoIP7 web]# ls -l
    ------rmvd
    drwxr-xr-x 16 asterisk asterisk 4096 Nov 8 00:34 crm420a
    drwxr-xr-x 17 asterisk asterisk 4096 Sep 11 09:19 crm420dtst
    drwxrwxrwx 17 asterisk asterisk 4096 Sep 20 13:14 crm45
    drwxr-xr-x 23 asterisk asterisk 4096 Nov 11 01:23 crm450
    drwxr-xr-x 17 asterisk asterisk 4096 Oct 11 01:29 crm450--
    drwxr-xr-x 23 asterisk asterisk 4096 Oct 14 14:13 crm450-101306-newlyRevisedCustomFieldsFiles
    drwxr-xr-x 18 asterisk asterisk 4096 Sep 30 02:21 crm450-92706-1pm
    drwxr-xr-x 18 asterisk asterisk 4096 Oct 14 14:13 crm450-93006-9pm
    drwxr-xr-x 18 asterisk asterisk 4096 Oct 14 14:13 crm450-backup-oct06
    drwxr-xr-x 2 asterisk asterisk 4096 Nov 11 01:22 crm450backups
    drwxr-xr-x 18 asterisk asterisk 4096 Oct 14 14:13 crm450-broken-100306-1230am
    drwxr-xr-x 18 asterisk asterisk 4096 Oct 14 14:13 crm450-broken-100306-3am
    drwxrwxrwx 16 asterisk asterisk 4096 Oct 17 17:09 crm450d
    drwxr-xr-x 18 asterisk asterisk 4096 Oct 14 14:13 crm450-del-notworking-100506-11pm
    drwxrwxr-x 16 asterisk asterisk 4096 Oct 24 16:47 crm450e
    drwxr-xr-x 2 asterisk asterisk 4096 Oct 24 16:44 crm450ef
    drwxr-xr-x 18 asterisk asterisk 4096 Nov 9 16:27 crm450f
    drwxrwxrwx 18 asterisk asterisk 4096 Oct 14 14:13 crm450-from-100506
    drwxr-xr-x 17 asterisk asterisk 4096 Oct 5 23:24 crm450-f***-100506
    drwxr-xr-x 23 asterisk asterisk 4096 Oct 15 17:11 crm450-f***-101506
    drwxr-xr-x 18 asterisk asterisk 4096 Oct 12 04:09 crm450-menusarebroken-aso
    Last edited by chrisky; 2006-11-11 at 04:40 PM.

  3. #3
    guylevi is offline Member
    Join Date
    Nov 2006
    Posts
    6

    Default Re: s Sub-Directories anWritable Moduled Files

    The hosting is virtual hosting,
    my only access is through ftp connect and not through ssh
    my ftp version is 220 ProFTPD 1.3.0 Server (Main FTP Server) [192.114.71.150]
    How do i change permission to folder (and sub folders and files) to www.mysite.co.il/modules

  4. #4
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: s Sub-Directories anWritable Moduled Files

    You will need an FTP client that can recursively set file permissions. I suggest SmartFTP or the new FileZilla 3.0.

    See this Wiki article for more details.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  5. #5
    guylevi is offline Member
    Join Date
    Nov 2006
    Posts
    6

    Default step 3: Database configuration problems

    the file permission went good after installing filezilla 3 beta, thanks
    I set the database in my hosting account.
    and then went to step 3 in the installation.
    when i wrote the hostname i get error message.
    Error 2005 unknown MYSQL server host.
    Last edited by guylevi; 2006-11-17 at 12:25 PM.

  6. #6
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: step 3: Database configuration problems

    Quote Originally Posted by guylevi
    the file permission went good after installing filezilla 3 beta, thanks
    I set the database in my hosting account.
    and then went to step 3 in the installation.
    when i wrote the hostname i get error message.
    Error 2005 unknown MYSQL server host.
    Are you sure you set the MySQL server host value properly? The default value in the Sugar Installer is "localhost", but many hosting providers have the MySQL database on a different machine.

    For instance on my account at OLM.net, the web server is on one machine and the database is on another machine. I had to go into the OLM.net control panel and look at the MySQL database manager to get the name of the database server.

    Clint
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •