Hi Laurent...
The main problem is, that the htdocs folder is with rights vu***:www-data, and if you upload a file with ftp you will upload with vu***:vu***. ...
I don't think that a simple user should fight with file permissions! This have to work out of the box and it doesn't work out of the box.
Use a software like joomla or wordpress and activate the htaccess.. Then the problem should be appear
Hello ;
Again, I'm unable to reproduce that bug with last master.
I use fcgid and I've tried the following:
1. Created new database (wp) via test.com account
2. Created new SQL user via test.com account
3. Uploaded wordpress files to the htdocs folders of the domain test.com
4. Installed wordpress via wordpress web installer
5. Activated rewrite rules via wordpress admin interface (Permalink Settings --> Month and name --> http://test.com/2012/12/sample-post/)
6. Tried access to a rewritten URL such as http://test.com/2012/12/hello-world/
And all goes fine for me (OUT OF THE BOX :P). I do not get any 403 error.
- root@imscp:/var/www/virtual/test.com/htdocs# ls -la
- total 176
- drwxr-x--- 5 vu2006 www-data 4096 14 déc. 08:43 .
- drwx--x--- 9 vu2006 www-data 4096 14 déc. 06:36 ..
- -rw-r--r-- 1 vu2006 vu2006 236 14 déc. 08:43 .htaccess
- -rw-r--r-- 1 vu2006 vu2006 395 14 déc. 08:36 index.php
- -rw-r--r-- 1 vu2006 vu2006 19544 14 déc. 08:36 license.txt
- -rw-r--r-- 1 vu2006 vu2006 9175 14 déc. 08:36 readme.html
- -rw-r--r-- 1 vu2006 vu2006 4663 14 déc. 08:36 wp-activate.php
- drwxr-xr-x 9 vu2006 vu2006 4096 14 déc. 08:36 wp-admin
- -rw-r--r-- 1 vu2006 vu2006 271 14 déc. 08:36 wp-blog-header.php
- -rw-r--r-- 1 vu2006 vu2006 3522 14 déc. 08:36 wp-comments-post.php
- -rw-rw-rw- 1 vu2006 vu2006 3372 14 déc. 08:40 wp-config.php
- -rw-r--r-- 1 vu2006 vu2006 3087 14 déc. 08:36 wp-config-sample.php
- drwxr-xr-x 5 vu2006 vu2006 4096 14 déc. 08:42 wp-content
- -rw-r--r-- 1 vu2006 vu2006 2718 14 déc. 08:36 wp-cron.php
- drwxr-xr-x 9 vu2006 vu2006 4096 14 déc. 08:37 wp-includes
- -rw-r--r-- 1 vu2006 vu2006 1997 14 déc. 08:36 wp-links-opml.php
- -rw-r--r-- 1 vu2006 vu2006 2408 14 déc. 08:36 wp-load.php
- -rw-r--r-- 1 vu2006 vu2006 29310 14 déc. 08:36 wp-login.php
- -rw-r--r-- 1 vu2006 vu2006 7723 14 déc. 08:36 wp-mail.php
- -rw-r--r-- 1 vu2006 vu2006 9899 14 déc. 08:36 wp-settings.php
- -rw-r--r-- 1 vu2006 vu2006 18219 14 déc. 08:36 wp-signup.php
- -rw-r--r-- 1 vu2006 vu2006 3700 14 déc. 08:36 wp-trackback.php
- -rw-r--r-- 1 vu2006 vu2006 2719 14 déc. 08:36 xmlrpc.php
Display More
Please, can you test with last master?
BTW: Setting both, the user and the group to vuxxxx is ok as long the permissions are set as 0644 (world readable). That can be a problem only if the .htaccess file permissions are set to 0640. In such case, yes, I get an error 403. But in my case, the default permissions when I upload the files (including the .htaccess file) via the FTP client (here filezillla) are 0644, not 0640. The .htaccess file as any static file should be readable by the apache user (www-data). For now, all files uploaded via ftp are readable by everyone (0644) and I don't see any problem with that.
Thanks