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   2485 Views

Avatar
CC

Community Member, 4 Posts

17 January 2008 at 7:30am

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

Forum Moderator, 474 Posts

17 January 2008 at 7:46am

.htaccess is an invisible file.

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

Avatar
CC

Community Member, 4 Posts

17 January 2008 at 8:01am

Edited: 17/01/2008 8:01am

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

Avatar
simon_w

Forum Moderator, 474 Posts

17 January 2008 at 8:34am

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

Community Member, 4 Posts

17 January 2008 at 9:03am

Many thanks for your help :)

Avatar
darkowl

Community Member, 12 Posts

17 January 2008 at 11:29am

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.