Forums / Templates, Stylesheets, Page Layout / Make files on Server Writebale?

Make files on Server Writebale?

Locked
Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Feb 2010, 14:59
#1
site avatar

site

New Zenner

Join Date:
Oct 2009
Posts:
60
Plugin Contributions:
0

Make files on Server Writebale?

Error Error: I can not write to this file. Please set the right user permissions on: ...define_main_page.php

How can I do this?

Thanks.
17 Feb 2010, 15:31
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Make files on Server Writebale?

via ftp
then set file permissions/ch mod to 777
17 Feb 2010, 16:29
#3
site avatar

site

New Zenner

Join Date:
Oct 2009
Posts:
60
Plugin Contributions:
0

Re: Make files on Server Writebale?

Should I do that for the whole store directory?
17 Feb 2010, 16:49
#4
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Make files on Server Writebale?

site:

Should I do that for the whole store directory?


NO!

If fact you should immediately;y return the permissions to un-writable after making your changes or you leave a big security hole in your shop.
17 Feb 2010, 16:54
#5
site avatar

site

New Zenner

Join Date:
Oct 2009
Posts:
60
Plugin Contributions:
0

Re: Make files on Server Writebale?

Kim:

NO!

If fact you should immediately;y return the permissions to un-writable after making your changes or you leave a big security hole in your shop.


Oh, so I should always change it. Better for me to just edit it from my admin cpanel instead of zencart then. Easier, unless I need to keep some as 777 or 755 for other things.
17 Feb 2010, 16:58
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Make files on Server Writebale?

site:

Oh, so I should always change it. Better for me to just edit it from my admin cpanel instead of zencart then. Easier, unless I need to keep some as 777 or 755 for other things.


NEVER edit php files with the editor in cpanel! Either use the facility in Zen Cart or download the file to your local computer, make your changes with a good text editor and then upload the changed file back to your site. In order for that to work, you'll have to change the permission and then change it back for security reasons. 755 will probably do the trick.

php files should be edited with a good text editor like Notepad++ or Crimson Editor which are both available free on the net. Filezilla is a good, free FTP client.
17 Feb 2010, 17:03
#7
site avatar

site

New Zenner

Join Date:
Oct 2009
Posts:
60
Plugin Contributions:
0

Re: Make files on Server Writebale?

afo:

NEVER edit php files with the editor in cpanel! Either use the facility in Zen Cart or download the file to your local computer, make your changes with a good text editor and then upload the changed file back to your site. In order for that to work, you'll have to change the permission and then change it back for security reasons. 755 will probably do the trick.

php files should be edited with a good text editor like Notepad++ or Crimson Editor which are both available free on the net. Filezilla is a good, free FTP client.


Oh, why is that not a good idea? I have always been doing that. Oops.
17 Feb 2010, 20:38
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Make files on Server Writebale?

site:

Oh, why is that not a good idea? I have always been doing that. Oops.


The Cpanel editor can add extra "white space" to php files which can cause all sorts of problems with the website (such as blank screens).