LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [solved] 403 forbidden

Reply
 
Thread Tools Display Modes
  #11  
Old 09-18-2012, 12:57 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
paste .htaccess (located in docroot) in here.
Reply With Quote
  #12  
Old 09-18-2012, 11:30 PM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
institutfrancais.dk # cat .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

RedirectPermanent /fr/frankofoni2012 http://www.institutfrancais.dk/fr/in...ncophonie2012/

RedirectPermanent /frankofoni2012 http://www.institutfrancais.dk/insti...ncophonie2012/

RedirectPermanent /campusfrance https://docs.google.com/spreadsheet/...lsWnc6MQ#gid=0
Reply With Quote
  #13  
Old 09-24-2012, 08:11 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
for static file access, it is up to web server default running user. If the user is not in the account user's group, world readable permission is required.
Reply With Quote
  #14  
Old 09-24-2012, 11:44 PM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
yes,
but why Wp suddnly decide to upload files with 0640 permissions? it was not like this with apache+fcgid. means it was all 0644, umask was set to 022 in php wrapper. now permissions is screwed up! do you know how to fix it?
Reply With Quote
  #15  
Old 09-25-2012, 02:31 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Found the source of the problem - if permissions to the upload folder is 0751, smarty WP do this

$stat = stat( dirname( $new_file ));
$perms = $stat['mode'] & 0000666;
@ chmod( $new_file, $perms );

means chmod 0640... Set permissions 0755 to upload folder and you are fine with 0644 for files!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:16 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.