Unable to add new theme to website hosted on my ubuntu (8 posts)

  1. dennyabrain
    Posted 2 years ago #


    I installed wordpress on my Ubuntu 12.10. The website loads perfectly on localhost/wordpress.

    I cant install new themes through the dashboard->Appearance->Themes->Install New themes way. I understand it is because of the permission issues.

    In the past I remember overcoming this by problem a few years ago on some other maching by manually copying the theme folder in wp-content/themes folder.

    I did the same this time but even after copying the files. I dont see the theme listed in the installed themes page.

    Any suggestions?

  2. Kshitij
    Posted 2 years ago #


    after placing theme under themes folder setup permissions like
    755 Should be for all folders and 644 for all files.
    For more details

  3. dennyabrain
    Posted 2 years ago #

    hi quick question. so i had thought the problem was with the file permission but here is my doubt- how do i set file permissions FOR the wordpress site ?
    i am assuming when i do a chmod from my terminal, it would only be for the linux user profile i am in, right?

    can you tell me the command which will change the user permission AND specify that its for the wordpress site?

  4. Kshitij
    Posted 2 years ago #

    yes, you can use the following commands in order:

    $ sudo -s OR $ sudo su
    $ sudo chmod 755 PATH/TO/THEME


  5. dennyabrain
    Posted 2 years ago #

    did that.
    still cant see the theme :|

  6. dennyabrain
    Posted 2 years ago #

    oh wait. this is interesting.
    I can edit the code of my pre-installed themes NOW! after i ran the chmod command that is. Which means the permissions are all fine. maybe i should try installing a different theme :/

  7. dennyabrain
    Posted 2 years ago #

    got over the problem by manually copy pasting the theme in the folder

  8. Kshitij
    Posted 2 years ago #

    good to know denny, while going through my answer I have noticed a mistake out of my ignorance,
    the terminal command I mentioned should be

    $ sudo chmod 755 -R PATH/TO/THEME

    -R will do it recursively.
    You can use it for your future reference, and I apologize for my mistake =)

Topic Closed

This topic has been closed to new replies.

About this Topic