WordPress 4.1.1 installation on Ubuntu 14.04: Difference between revisions

 
Line 138: Line 138:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
chown -R www-data:www-data *  # Change ownership to web server
$ chown -R www-data:www-data *  # Change ownership to web server
find . -type d -exec chmod 755 {} \;  # directory permissions = rwxr-xr-x
$ find . -type d -exec chmod 755 {} \;  # directory permissions = rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # file permissions = rw-r--r--
$ find . -type f -exec chmod 644 {} \;  # file permissions = rw-r--r--
</syntaxhighlight>
</syntaxhighlight>


Line 146: Line 146:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
chown -R mhan:mhan *
$ chown -R mhan:mhan *
chown -R www-data:www-data wp-content
$ chown -R www-data:www-data wp-content
</syntaxhighlight>
</syntaxhighlight>