Apache Ownership

Discussion in 'General' started by cybereatl, Mar 25, 2008.

  1. cybereatl

    cybereatl Member

    Hi Folks,

    Am installing SugarCRM on the ISPConfig server and installation went ok, as soon as I finish up install I got this:

    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86

    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86

    Then I've tried to log in and this error still maintain:

    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86
    Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web1/web/crm/include/dir_inc.php on line 86

    Fatal error: Smarty error: the $compile_dir 'cache/smarty/templates_c' does not exist, or is not a directory. in /home/www/web1/web/crm/include/Smarty/Smarty.class.php on line 1095

    I've checked with SugarCRM people and they talked about apache ownership and they tells me that cd to root folder were sugar is installed and then run:

    chown -R www-data:www-data

    Which I've did and I got this:

    [admin@www crm]$ chown -R apache:apache
    chown: missing operand after `apache:apache'
    Try `chown --help' for more information.

    I've looked over groups, but I got ISPConfig Group adn Admin, but there is no apache group!! :eek: :eek:

    Any ideas ?? :confused:

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The command is:

    chown -R apache:apache /home/www/web1/web

    But the user and group may vary, depending on your linux distribution. Other common names for the apache user and group are www-data and wwwrun.
     
  3. cybereatl

    cybereatl Member

    Hi Till,

    Am using Fedora and works like a charm, just type that in and error has gone!! :D

    Thank you
     

Share This Page