Hi,

I used standard configuration script from
/usr/share/doc/wordpress/examples/setup-mysql.gz.

This section is interesting:

echo Trying to create wp-content directory: $CONTENT
mkdir -p $CONTENT
ln -sf /var/lib/wordpress/wp-content/themes $CONTENT/themes
ln -sf /var/lib/wordpress/wp-content/plugins $CONTENT/plugins
ln -sf /var/lib/wordpress/wp-content/languages $CONTENT/languages
echo Setting up permissions
mkdir -p $CONTENT/blogs.dir $CONTENT/uploads
chown -R root:www-data $CONTENT/blogs.dir $CONTENT/uploads
chmod -R 0774 $CONTENT/blogs.dir $CONTENT/uploads

I do not understand, why themes, plugins and languages dirs are
symlinks, and for uploads and blogs.dir is created a directory.

If I have a look into wordpress_3.6.1+dfsg-1~deb7u3_all.deb package,
all five dirs are there with appropriate privilegies:

/var/lib/wordpress/wp-content/plugins
/var/lib/wordpress/wp-content/languages
/var/lib/wordpress/wp-content/themes
/var/lib/wordpress/wp-content/blogs.dir
/var/lib/wordpress/wp-content/uploads

So I would expect to make a symlinks to all these dirs from
/srv/www/wp-content/<example.com>/.


This is my working configuration:

$ ls -l /srv/www/wp-content/dracula/
total 0
lrwxrwxrwx 1 root root 39 Jul 21 21:10 blogs.dir ->
/var/lib/wordpress/wp-content/blogs.dir
lrwxrwxrwx 1 root root 39 Mar  1 14:47 languages ->
/var/lib/wordpress/wp-content/languages
lrwxrwxrwx 1 root root 37 Mar  1 14:47 plugins ->
/var/lib/wordpress/wp-content/plugins
lrwxrwxrwx 1 root root 36 Mar  1 14:47 themes ->
/var/lib/wordpress/wp-content/themes
lrwxrwxrwx 1 root root 37 Jul 21 21:10 uploads ->
/var/lib/wordpress/wp-content/uploads
$ ls -l /var/lib/wordpress/wp-content/
total 20
drwxr-xr-x  2 www-data www-data 4096 Sep 14  2013 blogs.dir
drwxr-xr-x  2 root     root     4096 Mar  1 18:46 languages
drwxr-xr-x  3 root     root     4096 Jul 16 22:10 plugins
drwxr-xr-x 33 root     root     4096 Jul 20 16:43 themes
drwxr-xr-x  2 www-data www-data 4096 Jul 22 19:16 uploads


Regards,
Zbynek


On Tue, Jul 22, 2014 at 2:32 PM, Craig Small <[email protected]> wrote:
> On Mon, Jul 21, 2014 at 09:45:11PM +0200, Zbynek Michl wrote:
>> It is impossible to correctly upload an image into Media Library and use it
>> afterwards.
> Strangely enough, for a lot of people including myself its very
> possible.
>
>> If we setup symlink to /var/lib/wordpress/wp-content/uploads directory, then
>> the picture is uploaded and showed correctly, i. e. "ln -s /var/lib/wordpress
>> /wp-content/uploads /srv/www/wp-content/<example.com>/uploads".
> That sounds like your configuration file is wrong.
> Other than installing the package, what else did you do?
> If it was your configuration, then that's not the package's fault but
> if you ran some script supplied by the package, then it could be.
>
>  - Craig
> --
> Craig Small (@smallsees)   http://enc.com.au/       csmall at : enc.com.au
> Debian GNU/Linux           http://www.debian.org/   csmall at : debian.org
> GPG fingerprint:        5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to