[Xerte] webtools installation
Patrick Lockley
Patrick.Lockley at nottingham.ac.uk
Fri Apr 17 09:48:03 BST 2009
Hello,
Try pasting this php into a file on the server.
<?
$fp = fopen("helloworld.txt","w+");
fwrite($fp, "Hello world");
fclose($fp);
?>
Then look at who owns this file - this should be the account your web
server is running as. This is the owner you should switch to. Your FTP
client should tell you who the owner is.
http://en.wikipedia.org/wiki/Chown Is the wikipedia page on chown. Turns
out it might have restrictions on who can use the command.
Looks like the command would be
chown -r whatevernameyourserveraccountis fullpathtoyourtoolkitsfolder
hope this helps
Pat
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Becky Kinney
Sent: 17 April 2009 02:08
To: Xerte discussion list
Subject: Re: [Xerte] webtools installation
Well, I followed the instructions for the full install, which included
setting a lot of folders to 777 in advance, which I did. Trouble seems
to be that the server is setting them back. I can send you a copy paste
of the errors the next time.
It actually does make sense to me that there might have been ownership
issues. I remember seeing some odd usernames in the error page. I'm
pretty sure I can get shell access, but I'm not sure how to change
owners once I'm in. I only know a handful of unix commands. Also, which
owner should I switch to? There seems to be a default name that was
assigned to my account behind the scenes, as well as the name I use to
log in to the control panel. If the server is treating me as the wrong
one when I'm in the xerte setup folder, what should I do?
Becky
----- Original Message -----
From: Patrick Lockley <mailto:Patrick.Lockley at nottingham.ac.uk>
To: Xerte discussion list <mailto:xerte at lists.nottingham.ac.uk>
Sent: Thursday, April 16, 2009 6:52 PM
Subject: RE: [Xerte] webtools installation
Hello,
Thanks for the interest.
The installer sets no folder or file permissions - I wouldn't do
that as it strikes me as bad practice.
Are you getting write errors, or errors setting permissions
before you install?
If you're doing the full install, which hopefully you are if you
are using a server then it lists the folder permissions you should set
before starting. I don't know enough Unix sysadmin to be precise, but
based on the theory it is only the web account that needs to use the
user-files and import folders you might be ok just setting the rights
for the account the webserver runs as (usually apache if its 0777).
0700 should work if thats better - but you may find that your
logging in account is a different account to that of the web server -
you might be able to use the change owner command if you are using a
server and can get shell access.
I use 777 as its easier to rectify any problems and makes making
changes easier. There is scope for improving the chmod values i've used,
but I am not sure how reliable the PHP chmod command is on windows
servers so have been reluctant to use it.
If any one can shed any light on what happens with chmod on PHP
/ IIS please let me know.
________________________________
From: xerte-bounces at lists.nottingham.ac.uk on behalf of Becky
Kinney
Sent: Thu 16/04/2009 21:09
To: Xerte Listserv
Subject: [Xerte] webtools installation
Hi,
I'm brand new to Xerte, and am having trouble installing Web
Tools. I have a
hosting account at BlueHost, and I get a page full of php errors
when I try
to follow the installation instructions. One hint may be that
BlueHost seems
pretty aggressive about re-setting folder permissions. It really
doesn't
like 0777! When I tried to view phpinfo.php I saw a message
saying that
dangerous write permissions had been fixed!
Is there a not too overwhelming manual installation procedure I
might try?
Becky
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
________________________________
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090417/fc0d223e/attachment.html
More information about the Xerte
mailing list