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

Problems while installation


Go to End
Reply

11 Posts   3166 Views

Avatar
stuntmax

29 June 2008 at 8:30am (Last edited: 29 June 2008 8:33am), Community Member, 21 Posts

There was 2 problems that appeared during the installation:

• On File permissions:
" Is the .htaccess file writeable?   User '*****' needs to be able to write to this file:
/..../www/users/......./.htaccess "

•On File permissions:
" mod_rewrite enabled   I can't tell whether mod_rewrite is running. You may need to configure a rewriting rule yourself. "

Avatar
Willr

29 June 2008 at 10:38am Forum Moderator, 5511 Posts

This on windows, mac or linux?

Avatar
stuntmax

29 June 2008 at 10:57am (Last edited: 29 June 2008 11:00am), Community Member, 21 Posts

Mac, but not with Mamp, it's on an real server.

Shell I upload everything that I post in the Mamp htdocs file on my server?

Avatar
Willr

29 June 2008 at 11:01am Forum Moderator, 5511 Posts

I dont know about mod_rewrite - Is that enabled?

With the file permissions Im pretty sure all you need to do is to open up terminal and go something like

chown youruser .htaccess

Avatar
stuntmax

29 June 2008 at 11:13am (Last edited: 29 June 2008 11:14am), Community Member, 21 Posts

I don't know what you mean...

I got this problem when I installed the cms on my server (not local server).

Maybe this code cold help me:

var.usualUrlCharClasses = "[\w\d\%\&\/\\\-\_\+\=\@\.\,\>\<\~]"

server.error-handler-404 = "/sapphire/main.php"

url.rewrite-once = (
   "^([^\?\ ]*\.pdf)$" => "$1",
   "^([^\?\ ]*\.swf)$" => "$1",
   "^([^\?\ ]*\.gif)$" => "$1",
   "^([^\?\ ]*\.jpg)$" => "$1",
   "^([^\?\ ]*\.jpeg)$" => "$1",
   "^([^\?\ ]*\.png)$" => "$1",
   "^([^\?\ ]*\.xbm)$" => "$1",
   "^([^\?\ ]*\.xpm)$" => "$1",
   "^([^\?\ ]*\.css)$" => "$1",
   "^([^\?\ ]*\.html)$" => "$1",
   "^([^\?\ ]*\.htm)$" => "$1",
   "^([^\?\ ]*\.js)$" => "$1",
   "^([^\?\ ]*\.text)$" => "$1",
   "^([^\?\ ]*\.txt)$" => "$1",
   "^([^\?\ ]*\.dtd)$" => "$1",
   "^([^\?\ ]*\.xml)$" => "$1",
   "^/assets/(.*)$" => "/assets/$1",
   "^/("+usualUrlCharClasses+"*)\??(.*)" => "/sapphire/main.php?url=$1&$2",
   )

but I don't know in wich file and line I should post it

Avatar
Willr

29 June 2008 at 11:24am Forum Moderator, 5511 Posts

Where did you find that code? That would have some information on where to put it?.

I don't know what you mean...

You have a permissions error - User '*****' needs to be able to write to this file. So to fix this you need to use a command called chown (if your server is Unix based..) so if you have SSH access to your server login to it and go to wherever your SS files are and run that command. If you dont have SSH access I dont know if you can do it via FTP..

Avatar
stuntmax

29 June 2008 at 11:24am Community Member, 21 Posts

that's was the result with Terminal:

-chown: youruser: Invalid argument

[Prozess beendet]

Avatar
Willr

29 June 2008 at 11:27am (Last edited: 29 June 2008 11:28am), Forum Moderator, 5511 Posts

are you in the folder where you installed silverstripe??

youruser - refers to the user you posted as ******

Go to Top