WordPress.org

Ready to get started?Download WordPress

Forums

CHMOD 666 (5 posts)

  1. jadensmommy24
    Member
    Posted 9 years ago #

    Hi, I am new to WordPress and I am having problems tinkering with the template. I am aware that I have to add CHMOD 666 to all the files that I want to change. Is this done in my CPanel database? Is this where I want to add it?
    <?php
    require('../wp-config.php');
    require_once('auth.php');

    get_currentuserinfo();

    if (0 == $user_level) {
    $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';
    } else {
    $redirect_to = get_settings('siteurl') . '/wp-admin/post.php';
    }
    header ("Location: $redirect_to");
    ?>
    Where do I put it?

    Sorry I am such a tool. I would appreciate any help!

  2. NuclearMoose
    Member
    Posted 9 years ago #

    CHMOD is an attribute of a folder/directory or file. It is not something that you actually have to add into a file. In cPanel, if you go to your File Manager, you navigate to the specific files you wish to CHMOD. CHMOD is a way of giving permission for various levels of users to access files or folders.

    Simply click on the file name, and look for Change Permissions and click on that. Then you can enter 666 and you're done.

  3. n0xyl
    Member
    Posted 9 years ago #

    I made chmod 666 templates.php file, but nothing occurs. It's still doesn't allowing me to edit template.

  4. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    You don't want to mess with templates.php. That file is something which helps you with editing other files. It is not to be edited itself.

    You want to edit things like index.php, and wp-layout.css. Use chmod to set those files to 666. Then you should be able to do what you want.

  5. Rob Poitras
    Member
    Posted 9 years ago #

    i use smart ftp for changing the chmod properties for all my files and its main function is a file uploader...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.