| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-15-2009, 10:11 AM
|
#1
|
|
LQ Newbie
Registered: May 2009
Posts: 10
Rep:
|
Permission problem with Wordpress
Hi!
Code:
sudo chmod -R 755 /data/nissadalen
This will make the whole directory writable for the user, i think. But when im trying to run the WordPress installation i got this error message
Code:
Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually.
Why?
|
|
|
|
06-15-2009, 12:52 PM
|
#2
|
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
Quote:
Originally Posted by Datakraft
Hi!
Code:
sudo chmod -R 755 /data/nissadalen
This will make the whole directory writable for the user, i think. But when im trying to run the WordPress installation i got this error message
Code:
Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually.
Why?
|
Depends on the owner and if you're using the correct location.
755 is read, write, execute for owner, read and execute for group and everyone. So unless the webserver is running as the owner of the files it won't be able to write.
Really files shouldn't be 755, they should be 644 for the same effective permissions.
|
|
|
|
06-16-2009, 01:08 AM
|
#3
|
|
LQ Newbie
Registered: May 2009
Posts: 10
Original Poster
Rep:
|
Hello again!
How do I do if there are virtual users?
The point is that this server will act web host, and that users should not need to fuss with a lot of rights when they are uploading files via FTP and run problem-free PHP in the browser, such as WordPress.
How do I do for the user to the full rights to
?
|
|
|
|
06-16-2009, 02:42 PM
|
#4
|
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
Quote:
Originally Posted by Datakraft
Hello again!
How do I do if there are virtual users?
The point is that this server will act web host, and that users should not need to fuss with a lot of rights when they are uploading files via FTP and run problem-free PHP in the browser, such as WordPress.
How do I do for the user to the full rights to
?
|
Virtual users can mean a lot of things, what do you mean in particular?
|
|
|
|
06-17-2009, 03:00 AM
|
#5
|
|
LQ Newbie
Registered: May 2009
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by rweaver
Virtual users can mean a lot of things, what do you mean in particular?
|
vsftpd with MySQL authenticate.
|
|
|
|
06-17-2009, 03:24 AM
|
#6
|
|
Member
Registered: Mar 2008
Location: Where ever I am.
Distribution: Various
Posts: 170
Rep:
|
Quote:
Originally Posted by Datakraft
vsftpd with MySQL authenticate.
|
When setting up a web directory you usually have to do both a chown and a chmod recursively.
|
|
|
|
06-17-2009, 03:38 AM
|
#7
|
|
Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,796
|
Hi there,
I'm using WordPress also in our company and you should check to see if the webuser is the owner of that directory. All work in WordPress gets done using that particular webuser.
Directory rights on my system are set to 755 and owned by the webuser:webgroup profile.
File rights are set to 644 and also owned by the webuser:webgroup profile.
And everything works like a charm.
|
|
|
|
06-24-2009, 04:06 AM
|
#8
|
|
LQ Newbie
Registered: May 2009
Posts: 10
Original Poster
Rep:
|
Hi again!
I have discover how i can solve this. I need these users www-data and vsftpd to access the directory /data/nissadalen but i dont know how to do this.
How do i do this?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|