Forum Moderators: phranque

Message Too Old, No Replies

How to change Apache permissions from read only?

change Apache permissions

         

bucknasty

1:49 am on Mar 13, 2011 (gmt 0)

10+ Year Member



I am on windows xp. I am developing a website, on localhost. My wordpress warning says, "Your style.css in not writeable, please change your permissions." When I "right-click" my apache folder, it's already set as "read only." I uncheck the read-only option, but it does not go away. Can anyone help?

wheel

4:31 am on Mar 13, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When I "right-click" my apache folder, it's already set as "read only." I uncheck the read-only option, but it does not go away.

What are you doing this right click in? Wordpress? Your ftp program? Something else? I'm a bit puzzled by the read-only part - it's not that simple in Linux hosting at least. You have to make it read-right by the apache user.

The easiest may be to do what you're trying to do (change permissions) in your FTP program - the program you use to upload files to your webserver.

And make sure you change it back when you're done.

wheel

4:33 am on Mar 13, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nevermind. I actually read your post this time and in doing so realized my previous post is nonsense. You're doing this on an XP box. In which case I'm not sure what your problem is, but it's clearly permissions.

I think you need to change the permissions on the file, not just the folder.

bucknasty

4:45 am on Mar 13, 2011 (gmt 0)

10+ Year Member



Thanks. I'm not sure on how to change my file permissions. Do you have any tips about what permissions to use?

bucknasty

3:19 pm on Mar 13, 2011 (gmt 0)

10+ Year Member



Update:

I created a virtual host and installed wordpress in the root. This also went well.

<VirtualHost *:80>
ServerName myservername.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/myserverfolder"
<Directory "C:/Program Files/Apache Group/Apache/htdocs/myserverfolder">
Options FollowSymLinks Indexes
Allow from all
Order allow,deny
AllowOverride All
</Directory>
</VirtualHost>

Wordpress created a .htaccess file in the root of my virtual host:

# 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



The problem is when I change a setting through my wordpress theme panel, I get "Your stylesheet is not writable." My question is how do I make my style.css file writable? Can someone explain to me whats going on?

wheel

3:36 pm on Mar 13, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Someone else may have a real answer, I'm not an XP or windows person. But there's two things I would note:
- it's almost certainly not got to do with your htaccess file.
- it's almost certainly the permissions on the specific file itself, not the folder. I would open up the folder in windows file explorer then right click on the file and select properties. See what that tells you, you may have the file as read only even though the folder is not.

bucknasty

7:22 pm on Mar 13, 2011 (gmt 0)

10+ Year Member



Thanks. When I click on my style.css file, it's not "read-only," both boxes are empty.

jdMorgan

12:28 am on Mar 18, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Let's be clear: All folders from the apache install folder down to the style.css file's directory, and the style.css file itself should be checked for permissions and set to writable -- at least initially.

Once this error is fixed, you will probably want to write-protect as many of the higher-level directory levels as possible. Do one at a time, then test thoroughly.

I'm alos not sure about the meaning/definition of "your stylesheet." Does this refer to a stylesheet that you created, or might it be some other stylesheet buried in one of WP's template directories?

Your may do better in our Content Management forum, since your problem is apparently WordPress specific, and there are very likely more WP users reading threads there.

Jim

bucknasty

11:31 pm on Mar 23, 2011 (gmt 0)

10+ Year Member



Thank you. I'll post there.