Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

First I will just tell you how my wordpress hierarchy looks like:

/var/www has all of the wordpress files, which is different from how it is normally set up as /var/www/wordpress (symlinked to /usr/share/wordpress). So var/www contains all of the files that /usr/share/wordpress would have, and /usr/share/wordpress is symlinked to /var/www, with an extra /var/www/wordpress symlinked to /var/www to prevent possible compatibility issues.

When uploading a file like a favicon or a .zip-ped theme, everything works fine, and when checking if the theme/favicon is uploaded, wordpress shows that it is, and points to a directory that it thinks that it had created, like http:/localhost/wp-content/uploads/2012/..., which it had not, because the uploads folder is empty!

And so there is a broken link on the internet and the theme is displayed but it has just plain text (because it had reverted to a plain theme I think)

Please help! I am sorry for such a long post but this is really quite a troublesome problem.

I have chowned /var/www and /usr/share/wordpress to www-data.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

SOLVED - Install using the lates.tar.gz package straight from wordpress, rather than the apt-get ubuntu packaged one.

It is probrably due to incorrect permissions.

http://www.youtube.com/watch?v=9Nk3770S4jk&noredirect=1

share|improve this answer

It looks like you need to tell Wordpress where to find its own directory. Check under Settings > General for "WordPress Address" and "Site Address".

Make sure the WordPress Address matches the domain name you are using to represent your www folder; localhost in this case, or your domain name if you put your server online.

Th other possibility is that you haven't given WordPress execute permissions on your /var/www folder. Check the owner of www, and make sure you allow WordPress to create files and folders.

share|improve this answer
    
like chmod 777 /var/www and chown -R wordpress /var/www? –  Marco Scannadinari Oct 25 '12 at 18:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.