Clarification needed on where to setup files

Having trouble installing serendipity?
Post Reply
Alechiko

Clarification needed on where to setup files

Post by Alechiko »

Hey, at present ive got the domain: http://foo.bar

I downloaded the nightly snapshot and unzipped it to my webroot so it looks something like this: /var/www/localhost/htdocs/serendipity-nightly

I then moved the contents of serendipity-nightly/ to htdocs/ because i want the webblogging system to appear when at http://foo.bar instead of http://foo.bar/serendipity-nightly

I have a few questions.

When i browse to the installation script, i arrive at http://foo.bar//serendipity_admin.php

Is the double // normal? If not, how should i go about fixing it?

Secondly, at present, the install check is complaining that it doesnt have the correct permissions to be able to go ahead and install and that i can change these using the chmod command.
Permissions
/var/www/localhost/htdocs/ Not writable
/var/www/localhost/htdocs/templates_c Not writable
/var/www/localhost/htdocs/uploads/ Not writable
Execute Imagemagick binary Not found
Permissions can be set by running shell command: `chmod 1777` on the failed directory, or by setting this using an FTP program
Do i need to just change those permissions for the install, and can they be changed back immediately after? Because im guessing that having 777 on /var/www/localhost/htdocs is not a good idea.

Thanks very much, hope someone can help.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Clarification needed on where to setup files

Post by garvinhicking »

First, the "//" at installing might happen when you are not using a subdirectory, yes. But you don't need to mind that. :)

You need to assign the permissions to the base directory to 777 only during installation. Uploads and templates_c always need to be writable for the webserver. So this must not be 777, but depends on your webserver configuration; 775 sometimes is sufficient already.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply