WordPress 4.1.1 installation on Ubuntu 14.04: Difference between revisions

Jump to navigation Jump to search
Line 135: Line 135:
== Correct the permissions ==
== Correct the permissions ==


<span class="shell">wp-content</span> folder needs to be writable by the web server.
Before the set up:


<div class="cli">
<syntaxhighlight lang="bash">
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">/srv/www/blog</span><span style="color:#cccccc;">
chown -R www-data:www-data *  # Change ownership to web server
$ <b class="color:white;">chmod -R 777 wp-content</b>
find . -type d -exec chmod 755 {} \; # directory permissions = rwxr-xr-x
</span></div>
find . -type f -exec chmod 644 {} \; # file permissions = rw-r--r--
</syntaxhighlight>
 
<span class="shell">wp-content</span> folder needs to be writable by the web server after the setup.
 
<syntaxhighlight lang="bash">
chown -R mhan:mhan *
chown -R www-data:www-data wp-content
</syntaxhighlight>


== Complete the installation ==
== Complete the installation ==


This is the final step which doesn't involve any CLI commands. Go to the site URL and it should take you through the rest of the installation process. In the example I used above, it would be <nowiki>http://michael.blog.com</nowiki>. Enjoy.
This is the final step which doesn't involve any CLI commands. Go to the site URL and it should take you through the rest of the installation process. In the example I used above, it would be <nowiki>http://michael.blog.com</nowiki>. Enjoy.

Navigation menu