Recently I was forced to move a wordpress site to a different webserver. By moving to a new server due to different hosting policies I also had to change the physical directory in which the wordpress files were stored. Before it was something like /var/www/wordpress afterwards it became /home/domainname/www/ . So after moving the data base and moving the wordpress installation and changing the DNS entry for the domain and some minor downtime in the middle of the night I figured out that some plugins on the new server would not work.
Especially those that needed to access uploaded files did have problems.
What happened?
After some debugging I did a fulltext search on the database for %/var/www/wordpress/ and i found one entry in wp_options table having: option_name =”upload_path” option_value=”/var/www/wordpress/wp-content/uploads” so obviously on installation time wordpress is saving the path of the upload folder in its option table to the data base. Still not sure weather this is a bug or a feature but I don’t have time to further investigate. Anyone some ideas?