WordPress.org

Ready to get started?Download WordPress

Forums

CHMOD for localhost (13 posts)

  1. thefastcook
    Member
    Posted 8 years ago #

    Sorry if this has been posted before but I haven't been able to make sense of a lot of this stuff.

    I've installed WP locally and am trying to use a template that requires me to CHMOD certain files. I've read about doing it in filezilla but since I'm localhost how do I go about doing that? I'm an absolute newbie to this.

    Would appreciate any suggestions. Thanks.

  2. yosemite
    Member
    Posted 8 years ago #

    Assuming it's linux, one way is to open a shell (command line interface), and cd to the directory, then chmod [flags] [filename].

    Example (assumes you're in the wordpress installed directory):
    cd wp-content/themes/default
    chmod 666 header.php

    Would change header.php to 666 (-rw-rw-rw-).

  3. witakr
    Member
    Posted 8 years ago #

    If you have FileZilla(I use that..) The after you have uploaded your files to your web directory then right click the file that needs to be CHMODed and select "File attributes..." and it will give a box with checkboxes.. Easiest thing is to type the 3 digit number(eg 777, or 666) in the field towards the bottom.

    -witakr

  4. thefastcook
    Member
    Posted 8 years ago #

    Thanks for the replies. I'm using Windows not Linux sorry.
    I've got FileZilla but I've got WordPress installed locally so I don't actually need to upload files. I can't work out if there is a way to CHMOD through Filezilla locally but when I right click on a file it doesn't come up with anything like "file attributes".

    Any other ideas? I'm sure it's something fairly simple but up until yesterday I didn't even know what CHMOD was about. Thanks guys.

  5. thefastcook
    Member
    Posted 8 years ago #

    Thought I should add that I'm using XAMPP - not sure if it's relevant.

  6. vkaryl
    Member
    Posted 8 years ago #

    First you need to access the /xampp/apache/conf/ folder, backup the httpd.conf file, then open it in notepad2 (from http://www.flos-freeware.ch) or another vanilla editor (NOT WINDOWS ANYTHING!), and make sure that mod_rewrite is uncommented.

    Once that's done, you shouldn't need to do any actual chmod on files. I've run xampp since its VERY early days (like maybe 0.8?), and all I've ever had to do is make sure mod_rewrite is enabled. That way, if you have an .htaccess file in your local folders, it won't bork the process.

  7. thefastcook
    Member
    Posted 8 years ago #

    Thanks they were very clear instructions. My case may or may not be different though. I'm able to run WP no problems - I'm just trying to get a template called "choices" running which requires me to CHMOD certain files. I've tried contacting the author but also thought that the issue would be broad enough to ask here on the forums. Apparently all I need to do is CHMOD the files to 777. Now I have no idea what that even means let alone how to do it! Appreciate the help!

  8. spencerp
    Member
    Posted 8 years ago #

    thefastcook, you're referring to a "plain jane" HTML, table, div or whatever based "template" right? If so, I had added my "old" main site template, for use on the localhost before. And didn't need to CHMOD anything.

    You'd just open up that folder it resides in, open up that specific file.. change it however.. and then save it. Refresh it in the brower.. =) I hope this is what you're referring to.. =/

    spencerp

  9. thefastcook
    Member
    Posted 8 years ago #

    Spencerp thanks for the help but I think my template is not the normal type. It says in the docs that it is a modifyable
    template(without coding) so the set up is different. In any case my admin panel says that the template is currently incomplete - so perhaps it will be when I CHMOD those files.

  10. spencerp
    Member
    Posted 8 years ago #

    Ah ok.. =) Hmm, I was actually wondering about chmodding files myself when first starting out with Xammp Lite. I tried Googling around for answers, but didn't seem to find anything right off the bat.. just figured "scew it" and did what vkaryl said above.. I'm all happy with it now. =)

    Wish ya luck though anyways, and if anyone has a solution for this, I'd also love to hear them. ;)

    spencerp

  11. vkaryl
    Member
    Posted 8 years ago #

    Generally the solution is that if you're using an xampp server install under windows, chmod is not needed. A template that insists you chmod files is either 1: referring only to linux servers online; or 2: done by someone without a clue.

  12. spencerp
    Member
    Posted 8 years ago #

    Generally the solution is that if you're using an xampp server install under windows, chmod is not needed.

    Ah yeah..I think I had seen that same response mentioned from a Google find before..just forgot about it. =p Thanks for reminder vkaryl. ;)

    spencerp

  13. thefastcook
    Member
    Posted 8 years ago #

    Thanks for the information guys - some stuff to chew on - my best bet at this stage is to wait for the author to reply to me. Thanks for help all the same.

Topic Closed

This topic has been closed to new replies.

About this Topic