...
Setup WordPress
Install WordPress
Using the target application a staff account, in our case we will use serveradmin, download and install WordPress,
Code Block | ||
---|---|---|
| ||
su - serveradmin cd ~/opt/www.krypton.com/www/ wget http://wordpress.org/latest.tar.gz tar -xvpf latest.tar.gz mv ./wordpress/ ./blog/ # We do not need to make the technology obvious. mv blog /home/www.krypton.com/www/ |
Setup File Permissions
Following along the lines of allow a specific user, in this case only serveradmin with help from a root enabled user can manage WordPress.
Code Block | ||
---|---|---|
| ||
cd /opt/www.krypton.com/www/
sudo chown -R serveradmin:www-data ./cms/ # Only svradm can manage this site and we ensure the Apache www-data user can access the site
sudo chmod -R o-rwx ./cms/ # No users except nobody and those belong to the group wgkrypton will be granted access.
|
...I may need to setup masking to maintain these permissions...There is no need to setup file permissions if you have followed the Bonsai Framework Apache Virtual Hosting with ACLs article. Extracting the tar while within the directories already setup with ACLs will result in the permissions being inherited.
Configure WordPress
- Create config file for database access
- Set URL
- ...
...