village/idiot.org
Go Orange Go Blue Go Green feed image
↓ Bottom

Happy Birthday to you

In the time i was gone you had 2 birthdays. Happy Birthday!! Happy Birthday!! :mrgreen:

suphp wordpress and umask

Have you ever gotten an error like this in your web site's error log:

(13)Permission denied: /www/sites/asdasdasd/asdasdasd.biz/wp-content/uploads/2013/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://dev.asdasdasd.biz/wp-admin/upload.php

See this post:

http://wordpress.org/support/topic/file-uploads-permissions-using-suphp

Hi,

I have a web server with Apache + suPHP. WordPress is working fine, except that when I upload a new file (i.e. an image), the uploaded file is created with 0600 permissions, instead of 0644 which is what I would need. This is a problem because since PHP is running via suPHP all files belong to the user who owns the blog, but Apache runs as apache… and if an image belongs to the blogger's user and has 0600 permissions, Apache can't read it.

I think this should be a common issue, but I haven't been able to find the solution online. Could you give me a hand?

BTW, I read somewhere that the problem was with suPHP's umask setting. I have set umask to 0022, so that shouldn't be a problem.

The umask change inside the server's suphp.conf is the solution The trick is that once you have seen the error, the parent directory has already been created with the wrong perms, so uploads can't be chmod properly.

umask=022

The trick is to delete the uploads that you have already uploaded, and then, using your ftp client, or cpanel's directory browser, or whatever you can use, you need to delete the parent directory.

So .. if you are using date-based dirs for wordpress, you will have wp-content/uploads/2013/12/, for instance — delete the 12 directory, and let wordpress re-create it AFTER changing the default umask.

Y

Yesterday, I found out that a friend of mine in the U.K. passed away unexpectedly. His name was Paul, but he preferred to be called ¥àßßà.

¥àßßà was brilliant, and he was immensely generous with me over the years. Because of that, his marks are all over this web site. The badges I provide — he helped with. The various plugins and scripts I've put together — he more than helped with. Along the same lines, references to me, exist in public, and private places on his site. He also had a wonderful sense of humor (scroll to the bottom of the preceding page).

I have no doubt I drove him nuts with questions, but he was such a great man that he would have never have said anything, and instead, tolerated my lesser keeness with the patience only a saint could muster.

It didn't just end with code though. On a more personal side, he was one of the many people that helped me when I was sued. Also, Paul and I both lost our moms while we were friends, and we shared each others grief.

He even has his own category on v-i.

Yes, we spoke on the phone, but ¥àßßà and I never met. We wanted to, and we spoke about it often. It was one of those things, though, where there never seemed to be enough money, or time to make it happen.

Some folks might be inclined to say that because we never met, we weren't ever "real" friends. To you I say - you couldn't be more wrong, and I hope that you are lucky enough to find your own ¥àßßà, and moreover, I hope yours is not taken away from you prematurely.

Hug the people you love and care for. Hug your friends, even your virtual ones (if you must refer to them like that). Behind every screen, there is a person, and the life they live is as fragile as yours. Lest you be left with this:

I'm not renowned for missing people (even family) but even you're normally more communicative than this ….not that I miss you :|
Ok, so I miss you
/me heads for bed, good to see yer still alive ;)
¥

I miss you too ¥àßßà, and I will surely miss you forever.

PS: Oh, and he detested facebook and everything it stands for :)

PSS: Someone must need a web site in heaven for him to be taken like this.

Pages (345):1 2 3 4 5 6 ... 345
↑ Top

Elsewhere

Singles

Multiples

© village-idiot.org, 2004 - 2011. if i promise not 2 laugh will u talk 2 me?