Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a problem for my website.

The homepage lists articles (external links) that are put in categories and that also mention the article source (website where the article is published). These sources are custom fields that I fill on the wordpress post editor.

The problem is that every article shows now the same source, while I have mentionned a different source for each article.

Weird stuff have been happening since I changed my PHP handler to DSO. The problem happened after I changed the handler, so I have high doubts that this might be related.

Do you see a workaround to this please ?

Thanks

share|improve this question

closed as too localized by Brian Fegter, Wyck, kaiser, Stephen Harris, mrwweb Sep 24 '12 at 18:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Take a look at http://halfelf.org/2011/wordpress-dso-and-permissions/ so see if it helps you out.

Basically you need to do the following changes:

On wp-config.php:

define('FS_CHMOD_DIR', (0755 & ~ umask()));
define('FS_CHMOD_FILE', (0644 & ~ umask()));

To override file permissions.

Then if you got your files with 777 permissions you can change them back easily by doing in console:

find /home/foobar/public_html/wp-content/uploads -type d -perm 777 -print -exec chmod 755 {} \;

find /home/foobar/public_html/wp-content/themes -type d -perm 777 -print -exec chmod 755 {} \;

find /home/foobar/public_html/wp-content/plugins -type d -perm 777 -print -exec chmod 755 {} \;

Change foobar with your user

Same for files:

find /home/foobar/public_html/wp-content/uploads -type f -perm 777 -print -exec chmod 644 {} \;

And the last thing to do is change the owner to nobody:nobody (user:group) on the folders uploads and upgrade. You can do it like this:

chown -R nobody:nobody /home/foobar/public_html/wp-content/uploads/
share|improve this answer
    
Thanks for your answer chifliiiii. –  Garry Sep 2 '12 at 15:38
    
No problem. Please marks answer as correct if it helped you out –  chifliiiii Sep 2 '12 at 19:41
    
@chifliiiii Link only answers are not a good format for the community. If the link becomes unavailable, then future users are not able to identify the solution. Would you mind updating your answer to tell everyone specifically how this link answers the question? –  Brian Fegter Sep 4 '12 at 14:28
    
@BrianFegter fair enough :D –  chifliiiii Sep 4 '12 at 18:12
    
@chifliiiii Nice work :) –  Brian Fegter Sep 4 '12 at 18:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.