Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrections to directory creation.

...

Code Block
languagebash
sudo su - serveradmin
cd ~
wget http://wordpress.org/latest.tar.gz
tar -xvpf latest.tar.gz
mv ./wordpress/ ./blog/ # Rename as we not need to make the technology obvious.

# We MUST give group read, execute and write access. We want, using ACLs, to grant respective client's group full access to modify files. Because ACLs are limited by the mask, the group mask needs to be open.
chmod -R u+rwX,g+rwX,o-rwx ./blog

Finally move WordPress to the proper directory,

Code Block
languagebash
cd /opt/web/php/dailyplanet.com/
cp -R /home/serveradmin/blog/ ./
exit # To go back to your staff account.
sudo chown -R serveradmin:www-data /opt/web/php/dailyplanet.com/blog/
sudo chmod -R u+rwX,g+r-w+X,o-rwX ./blog/
cd .opt/web/php/dailyplanet.com/blog/

This step is essential to allowing WordPress to be able to install plugins through the web admin interface,

Code Block
langbash
sudo chmod -R g+w /opt/web/php/dailyplanet.com/blog/wp-content/

 

Configure MySQL

Secure MySQL

...