Problem with upload directory (v3.3.2)
-
Hi!
I’ve successfully (well almost) installed v3.3.2 of WordPress on a Debian6 (Squeeze) instance with apache2 and mysql. Everything looks great but when I try to upload media-files they get uploaded *but* when I try to address them from my WordPress-site they’re not found. Can it be related to my Apache2 virtual host configuration?
My VH config looks like this (httpd.conf)
<VirtualHost x.y.z.t:80> ServerName www.<domain>.com DocumentRoot /var/www/<domain>.com/wordpress/ DirectoryIndex index.php <Directory /var/www/<domain>.com/wordpress/> AllowOverride all Order deny,allow Allow from all </Directory> </VirtualHost>
and my upload-related stuff in config-www.<domain>.com.php looks like this:
$upload_path = "/srv/www/wp-uploads/www.<domain>.com/"; $upload_url_path = "http://www.<domain>.com/wp-uploads"; ?>
When I upload something to the media library they are correctly added to the upload path above properly organized under “yyyy/mm”. However, when I try to address them using the URL http://www.<domain>.com/wp-uploads/2012/10/<file>.<ext> I get a file not found error. Hmmmm, what am I doing wrong here?
For your info I’ve issued the following commands
a2enmod rewrite a2enmod vhost_alias /etc/init.d/apache2 restart
Cheers
- The topic ‘Problem with upload directory (v3.3.2)’ is closed to new replies.