X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Edit templates from admin side (https://forum.x-cart.com/showthread.php?t=23781)

mmoskva 08-02-2006 10:48 AM

Edit templates from admin side
 
I uploaded my cart onto another server, and I am trying to "edit templates"; however everytime I save my changes are refresh the webpage I see no change to the file that I was editing? What do I do to fix that?

I do have chmod 777 to the skin1 folder so I dont understand what is wronge.

balinor 08-02-2006 12:23 PM

The templates themselves need to be writable. Did you get a 'file saved' message at the top of the editing screen when you saved it?

mmoskva 08-02-2006 12:54 PM

I change the chmod to 777 for the entire skin1 directory main folder, files and subfolders and it works.

thank you

balinor 08-02-2006 12:55 PM

Just remember to change it back when you are done or the hackers will have a field day with your site.

jdiehl 08-02-2006 01:43 PM

You may want to research how your webserver works as well. For example on some servers the owner of all the files is the same as the user that controls apache. So basically any commands run by a web interface such as editing these template files will only need writable permissions for that same user, not globally. Which means 777 might not be necessary.

I know that on our servers setting it to a chmod of 744 for the files or a 755 for the directory would be adequate since the first number sets permissions for the user, the second for the group, and the third for global. This way general population would not have access to those files. Then you wouldn't have to worry about changing things back and forth.

P.S. If you ever have the caching of files turned on, you may notice that changes take awhile to show up, as the cached template has to expire before the new one is loaded. But that only affects the customers view and not the view of the file itself from the edit console.


All times are GMT -8. The time now is 03:25 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.