Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

'ICE_Export_Exception' error (unable to create directory) with localhost

Tagged: localhost, permission, solution

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 6 months ago by Drew H.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 13, 2013 at 11:51 pm #1675
    Daniel Jones
    Participant

    Hello CBox-ers!

    I’ve been messing around trying to get a Commons up and running on my local machine with LAMP, and everything was going fine (managed to get all the plugins installed, configured, etc.) until I actually installed the CBox theme. Then I started getting a blank page when I tried to load any wordpress page along with this error:

    “Fatal error: Uncaught exception ‘ICE_Export_Exception’ with message ‘Unable to create directory localhost/2013/01. Is its parent directory writable by the server?’ in /usr/share/wordpress/wp-content/themes/cbox-theme/engine/ICE/utils/export.php:190”

    I made sure that my apache user (www-data) was the owner on the directory where wordpress is installed (it’s in var/www/wordpress, with the wordpress folder being symlink-ed to /usr/share/wordpress), and even chmod-ed those folders to 777 to make double sure, but I’m still getting the error, which is weird because it seems like it’s just a permissions issue. My terminal is claiming that all of the wordpress-related files are owned by www-data, and are 777-ed for everyone. Again this only started happening once I installed the CBox theme, which I guess is using ICE to try and create directories for managing content? I’m running a LAMP installation with php5 and Ubuntu 12.04

    Any thoughts on what might be causing this? Could it just be a quirk of running it on my localhost instead of a “real” server?

    Any help would be greatly appreciated- I want a chance to mess around with CBox on my own machine before I start working on a live site.

    Thanks in advance!

    Dan Jones

     

    October 15, 2014 at 8:47 pm #5177
    Drew H
    Participant

    I’m having the same problem, was there any resolution to this?

    October 19, 2014 at 5:39 pm #5191
    Drew H
    Participant

    I’ve found the solution! This error is happening because the apache user group doesn’t have write privileges and thus can’t manipulate a file (I don’t know why it needs to, but I trust that it does)

    To solve this problem you simply need to change the file ownership. I suggest making apache own everything on your local install so that you can use the web site to update and download themes/plugins.

    I’m running Mac OSX, my apache user is _www while Linux systems typically use www-data.

    To change ownership navigate to the root wordpress folder on your command line (eg the folder with the wp-config.php) and use the command: sudo chown -R _www:_www .

    sudo runs the command as root.

    chown is the program we are running to Change Ownership of the file(s)

    -R is a flag that runs the chown command recursively, meaning that it applies the command to all sub folders and their files.

    _www:_www is for the user and group, the colon separates them, user on the left, group on the right

    . (period) this indicates which folder to effect, because you are currently in the WP root you want to target that folder which the period is a shorthand used to do this. It basically means “This Current Folder”.

    Next you’ll want to add your user to the apache group so you can update and execute files, on mac OSX you can copy and paste this command:

    sudo dseditgroup -o edit -a 'whoami' -t user _www

    ‘whoami’ will magically turn into your user name, please note those SHOULD BE back ticks (the ~ key to the left of the one key).

    You’ll need to lookup how to do it on linux on your own.

    Cheers!

    • This reply was modified 10 years, 6 months ago by Drew H.
    • This reply was modified 10 years, 6 months ago by Drew H.
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register