Admin error - Could'nt change any HTML part due to permissions - Please help

Discussion in 'PHP' started by createrk, Jan 9, 2008.

  1. #1
    Hi all,

    I have started a new website with a new host. I installed all the files into the host using FTP. I login to the admin pannel for my website and started editing my settings but failed. The error i got is

    Warning: fopen(/home/articleg/public_html/templates/terms.tpl) [function.fopen]: failed to open stream: Permission denied in /home/articleg/public_html/admin/edittemplates.php on line 375

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/articleg/public_html/admin/edittemplates.php on line 377

    Warning: fclose(): supplied argument is not a valid stream resource in /home/articleg/public_html/admin/edittemplates.php on line 379


    Please advice what is this error what i need to do?

    Many thanks for your help.
     
    createrk, Jan 9, 2008 IP
  2. john_global

    john_global Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to enable write permissions on the edittemplates.php or the admin folder.
     
    john_global, Jan 9, 2008 IP
  3. createrk

    createrk Active Member

    Messages:
    847
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I have changed the Admin folder as well as edittemplate.php file permissions to 777. But still its not working :( Please help!

     
    createrk, Jan 9, 2008 IP
  4. HoagieKat

    HoagieKat Peon

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You also need to set 777 on your templates folder and any other folders and files that need write permission.
     
    HoagieKat, Jan 10, 2008 IP
  5. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #5
    Is that file within your homedir? why don't you fopen a relative path rather than an absolute path?
     
    Kaizoku, Jan 10, 2008 IP
  6. Kieran.in

    Kieran.in Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    No, someone just needs to instruct this person how to change the permissions.

    All depends on what FTP your using (for a easy method).


    Login to the FTP, right click the file and set the permissions to 0777.


    If you still fail, or can't find this just search CHMOD "ftp client name" in google.
     
    Kieran.in, Jan 10, 2008 IP
  7. createrk

    createrk Active Member

    Messages:
    847
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Guys, Got working now :).. Its just access permissions in the folder which has to be changed, Thanks for all your advice. :)
     
    createrk, Jan 13, 2008 IP