WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dennyabrain
    Member
    Posted 1 year ago #

    Hi

    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
    Member
    Posted 1 year ago #

    hello,

    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
    Member
    Posted 1 year 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?
    thanks

  4. Kshitij
    Member
    Posted 1 year ago #

    yes, you can use the following commands in order:

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

    HTH

  5. dennyabrain
    Member
    Posted 1 year ago #

    did that.
    still cant see the theme :|

  6. dennyabrain
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    got over the problem by manually copy pasting the theme in the folder
    /srv/www/wp-config/localhost/themes

  8. Kshitij
    Member
    Posted 1 year 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