...
Each website will have it's own root folder under /opt/web/php/,
Code Block | ||
---|---|---|
| ||
cdsudo mkdir /opt/web/php sudo mkdir /dailyplanet.com sudo chown -R serveradmin:www-data ./opt/web/php/dailyplanet.com/ sudo chmod -R u+rwX,g+r-w+X,o-rwX ./opt/web/php/dailyplanet.com/ |
Note | |||||
---|---|---|---|---|---|
Keep in mind that you can not go into the /opt/web/php directory as a normal staff user. At the same time, if you use serveradmin you do not have access sudo. One workaround is to also make your staff user part of the serveradmin and www-data group,
|
Setup WordPress
Make sure you are logged in a sudo enabled user. Setup WordPress as follows,
...