wordpress permissions / updates?

Bug #1600528 reported by Charles Wright
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
New
Undecided
Unassigned

Bug Description

followed the instructions in the server guide to install wordpress
(https://help.ubuntu.com/lts/serverguide/wordpress.html)

When I try to upload a header image I get:

"Unable to create directory wp-content/uploads/2016/07. Is its parent directory writable by the server?"

It seems the wp-content should be owned by www-data for this to work.

It is unclear to me if I change permissions and then apt dist-upgrade what will happen.

Should the wordpress package set the permissions differently on installation?

Also there are theme updates available but its not clear how I'd update and if the wp-content folder would be reset by dpkg so a section on that in the manual would be great.

Thanks.

Revision history for this message
Charles Wright (wrighrc) wrote :

This works better...

root@www:/etc/apache2/sites-available# cat wordpress.conf
Alias /blog/wp-content /var/lib/wordpress/wp-content
Alias /blog /usr/share/wordpress
<Directory /usr/share/wordpress>
 Options FollowSymLinks
 AllowOverride Limit Options FileInfo
 DirectoryIndex index.php
 Order allow,deny
 Allow from all
</Directory>
<Directory /var/lib/wordpress/wp-content>
 Options FollowSymLinks
 Require all granted
</Directory>

These are useful:
/usr/share/doc/wordpress/README.Debian
https://wiki.debian.org/WordPress

Revision history for this message
Charles Wright (wrighrc) wrote :

also I'd name config-default.php as it looks for that always...

root@www:/etc/apache2/sites-available# cat /etc/wordpress/config-default.php
<?php
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'redacted');
define('DB_HOST', 'localhost');
define('WP_CONTENT_DIR', '/var/lib/wordpress/wp-content');
define( 'FS_METHOD', 'direct' );
?>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.