Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have set up (actually migrated) wordpress on ubuntu 10.04 with apache2 and everything works great. However, I'm getting the following error when using a plugin to upload files to the server:

[Wed Jun 06 13:12:29 2012] [error] [client xx.xxx.xxx.xxx] PHP Warning: fopen(/home/user/public/website.com/public/wp-content/plugins/cforms/abspath.php): failed to open stream: Permission denied in /home/user/public/website.com/public/wp-content/plugins/cforms/lib_functions.php on line 164, referer: http://website.com/wp-admin/plugins.php?deactivate=true&plugin_status=all&paged=1&s=

I've taken a bit too much on I think. I'm not a developer at all, but I thought it would be fun to try and set myself up with a Linode VPS.

I suspect that there is some sort of permissions problem. www-data is my php user. Could it be that www-data is lacking permissions? And how do I go about troubleshooting this?

Any help is greatly appreciated.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Give 755 permissions to the /home/user/public/website.com/public/ folder, subfolders and all files.

share|improve this answer
    
I thought I had. Is there a command that I can use to check this? –  Rob Jun 6 '12 at 14:27
    
I typed this just now: sudo chmod -R 755 /home/user/public/website.com/public/ Of course changing user and website.com with my own. Still getting error. –  Rob Jun 6 '12 at 14:32
    
Reapply with sudo chmod -R 755 /home/user/public/website.com/public/ –  jasmines Jun 6 '12 at 14:34
    
Thanks jasmines. I'm not sure what you mean "Reapply"? Shouldn't typing the command once be sufficient? Please be patient with me because I'm new to linux. –  Rob Jun 6 '12 at 14:48
    
Yes, type it in a terminal. –  jasmines Jun 6 '12 at 14:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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