PDA

View Full Version : linux file permission problem


stax76
4th July 2009, 13:11
I'm trying to setup a simple CMS at staxmedia.sourceforge.net (http://staxmedia.sourceforge.net/), I've connected via sftp using FileZilla, uploaded the CMS and changed the file permissions with FileZilla as described on the help page of the CMS:

http://www.cmsimple.com/?Installer%27s_Manual:File_permissions

After this the CMS is still not able to write to a file even though I gave this file 777 permission with FileZilla, IIRC the problem is FileZilla is a different user then PHP, if this is correct then how do I change the permission the right way?

edit: I don't think it's easy or fun to run a CMS at SourceForge so I've gave up the idea, I rather go swimming instead of messing with such things...

froggy1
5th July 2009, 00:24
you also need to set correct permissions on the folder itself where the file(s) is/are in, not just on the file :)

stax76
5th July 2009, 00:49
It can't be done however with a FTP client since it changes only the ftp user and php uses another user. Most CMS install instructions don't bother to mention this assuming everybody is a super skilled web developer. At SourceForge you have to mess with all kind of crazy tools, shell, protocols etc. and there is hardly good documentation. I'll use just the svn and file release feature at SourceForge and built a little website at bplaced.net which is a free hoster, I'll use razorCMS which uses flat files instead of a database, it writes the files as ftp user, very easy to use, maintain, secure, fast and lightweight.

stax76
22nd July 2009, 18:42
What is cpanel? I guess command panel or command shell or console how I know it. How would I do this? My site is now at the free hoster bplaced on razorCMS, I didn't need anything but FileZilla.

www.stax76.bplaced.net (http://www.stax76.bplaced.net/)

LoRd_MuldeR
22nd July 2009, 20:18
What is cpanel?

cPanel is a web-interface that let's you do all the administrative tasks on a web-server. Web-hosters usually (but not necessarily) provide cPanel access to their customers.

http://www.tech2oo.com/s_images/cpanel.PNG

stax76
22nd July 2009, 22:44
Good to know, thanks. I'm not sure if my hoster supports this, how would I start cpanel?

smok3
22nd July 2009, 23:14
for the end user: with clicking on the correct url (thats like web panel/interface for installing web software with few/one clicks, example: install wordpress - would install wordpress, setup the mysql and send the user some spam about what just happened and maybe with a link to the new incarnation of wordpress..),

nothing really to cry about, users best friend is still putty (if you are on win) and shell access to the server (and usually permissions are NOT a problem with virtual hosting).

LoRd_MuldeR
23rd July 2009, 00:15
Good to know, thanks. I'm not sure if my hoster supports this, how would I start cpanel?

It depends on the web-hoster, I think. With one server I have access to, cPanel is accessed via http://www.example.com:9999/ ;)