CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Can't create directory on Macintosh; Joomla 1.5.7; civiCRM 2.1; XAMMP
Pages: [1]

Author Topic: Can't create directory on Macintosh; Joomla 1.5.7; civiCRM 2.1; XAMMP  (Read 3181 times)

gnlarsen

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Can't create directory on Macintosh; Joomla 1.5.7; civiCRM 2.1; XAMMP
October 08, 2008, 07:14:33 pm
Has anyone been successful installing civiCRM on localhost platform using XAMMP; civiCRM 2.1; Joomla 1.5.7 on a MacBook Pro? Following instructions from the install page do not work with an error attempting to create the directory. Following error message is displayed.

Component Install: Failed to create directory.: "/Applications/xampp/xamppfiles/htdocs/joomla15/components/com_civicrm"

Have read the php, xml, and other config files with no obvious detection of an error and no other items found in the form for this configuration.

Anybody?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can't create directory on Macintosh; Joomla 1.5.7; civiCRM 2.1; XAMMP
October 08, 2008, 08:25:21 pm

You will need to grant the webserver permission to write to:

/Applications/xampp/xamppfiles/htdocs/joomla15/components
/Applications/xampp/xamppfiles/htdocs/joomla15/administrator/components
/Applications/xampp/xamppfiles/htdocs/joomla15/media

A few of us are running on macbook pro's, but we use darwin ports to install/update php/apache

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

gnlarsen

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Re: Can't create directory on Macintosh; Joomla 1.5.7; civiCRM 2.1; XAMMP
October 09, 2008, 07:07:10 pm
Could you provide your best recommendation on what exactly to change to get the web server to grant write permissions. As best I can tell after editing and placing the htaccess file with a RewriteBase change and examining the prefix for the xampp control panel information I should have been able to install. However, either I don't understand the instructions in the htaccess.txt file or I've just managed to do something stupid that I can't seem to locate or have managed to overlook.

Joomla runs fine, its only trying to get civiCRM to install. I am running in admin mode with all privileges and I presume when starting up from the xampp control panel, after being asked to log in with admin rights that these right are preserved.

gnlarsen

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Re: Can't create directory on Macintosh; Joomla 1.5.7; civiCRM 2.1; XAMMP
October 12, 2008, 07:21:26 pm
Well finally found my error and it was "stupid" as I predicted. For whomever experiences the same problem in the future, be certain to modify your apache httpd.conf file in folder

/Applications/xampp/etc/httpd.conf

At about line 143 you will see the following:
<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch. 
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nobody
Group admin
</IfModule>

Change user nobody to appropriate user name with administrative rights to R,W,X.

Installing civiCRM installs with the credential of the USER but XAMPP installs with the user nobody.

This simple change was all it took. Sorry I missed it when looking through config files earlier.

This should probably be added to the civiCRM install instructions if using the XAMPP install for required versions of PHP, etc.

Everything worked as advertised after this minor config file change.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Can't create directory on Macintosh; Joomla 1.5.7; civiCRM 2.1; XAMMP

This forum was archived on 2017-11-26.