Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-12-06 20:14:51

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Configure PHP on OS 10.7.5 to allow TXP to write files and images?

This isn’t strictly Textpattern-related, but I thought a kindly PHP wizard in the neighborhood might be able to point me toward a solution.

When I upgraded my MacBook to OS 10.7 Lion a while back, I decided to do without MAMP and use the native Apache and PHP setup, mostly following the instructions I found here.

Since then, I’ve only had one problem that I never experienced with MAMP: Textpattern doesn’t recognize that my files and images directories are writable, even though their permissions are set to drwxr-xr-x, and the same directories are writable when I deploy them on the Web. Since most of my local development doesn’t require Textpattern to write to the file system, I’ve done without. But lately, I’ve wanted to test some design patterns using Textpattern’s file download tags, and not being able to upload new files has become a burden.

I’m wondering if there is a simple way to configure my PHP setup to recognize these directories as writable. I figure I can probably just open a text file somewhere and and change a setting, but I want to do it in a way that won’t melt my computer and I’ll be able to easily copy when I get a new machine.

Thanks in advance!

[Edit: Add punctuation.]

Last edited by johnstephens (2012-12-06 20:15:42)

Offline

#2 2012-12-06 21:12:19

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,121
Website Mastodon

Re: Configure PHP on OS 10.7.5 to allow TXP to write files and images?

are you logged in as administrator?
Your main ID should have full access to all files/directories

more:
http://support.apple.com/kb/HT2963?viewlocale=en_US&locale=en_US

Last edited by bici (2012-12-06 21:14:55)


…. texted postive

Offline

#3 2012-12-06 22:18:33

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: Configure PHP on OS 10.7.5 to allow TXP to write files and images?

@bici: Yes, I am. I have no problem accessing or editing files or directories using the OS or Terminal. It’s PHP that doesn’t recognize those directories as writable, not my (super-)user account.

Offline

#4 2012-12-06 22:42:35

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,121
Website Mastodon

Re: Configure PHP on OS 10.7.5 to allow TXP to write files and images?

johnstephens wrote:

@bici: Yes, I am. I have no problem accessing or editing files or directories using the OS or Terminal. It’s PHP that doesn’t recognize those directories as writable, not my (super-)user account.

well that is odd. file path is clear?

check with these guys:
http://akrabat.com/computing/setting-up-php-mysql-on-os-x-10-8-mountain-lion/


…. texted postive

Offline

#5 2012-12-07 06:34:58

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Configure PHP on OS 10.7.5 to allow TXP to write files and images?

I think you need to set Others/Everyone to read & write – i.e. drwxr-xrwx

Offline

Board footer

Powered by FluxBB