Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Is the .htaccess file writeable? error


Reply

6 Posts   2423 Views

Avatar
CC

17 January 2008 at 7:30am Community Member, 4 Posts

Hi,

I get the following error when trying to install SS.

User 'apache' needs to write be able to write to this file:
/var/www/vhosts/fuzetesting.co.uk/subdomains/silverstripe/httpdocs/.htaccess

When I check the uploaded files .htaccess is not there.
If I try to upload again nothing happens.
Also the .htaccess file appears to be empty at only 0KB

Can anyone help?

Thanks.

Avatar
simon_w

17 January 2008 at 7:46am Forum Moderator, 474 Posts

.htaccess is an invisible file.

The file size doesn't matter, the server just needs write access to it.

Avatar
CC

17 January 2008 at 8:01am (Last edited: 17 January 2008 8:01am), Community Member, 4 Posts

How can I change the write access on a file I can not see?

Avatar
simon_w

17 January 2008 at 8:34am Forum Moderator, 474 Posts

If you have SSH access, you can use chmod on the file.

Otherwise, your upload programme probably has an option to view invisible files.

Avatar
CC

17 January 2008 at 9:03am Community Member, 4 Posts

Many thanks for your help :)

Avatar
darkowl

17 January 2008 at 11:29am Community Member, 12 Posts

If you have an FTP client, get it to pass the global command -al on the end of its LIST commands, that shows "hidden" files.