...
Code Block |
---|
|
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 |
---|
|
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 |
---|
|
sudo chmod -R g+w /opt/web/php/dailyplanet.com/blog/wp-content/ |
Configure MySQL
Secure MySQL
...