How adding a volume and expand the primary disk?
How adding a volume and expand the primary disk?
I added a 10GB volume, how can I add it to the main disk?
A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Hello, I have been trying to fix issues with Reverse Dns. I'm running VirtualMin on CentOS 7. I have renamed my droplet to hostname.com (soundstroke.ng) i don't know what else to do i have followed so many tutorials on this but doesn't work. Please what should i do?
Hi everyone, I could use a little advise regarding running multiple Wordpress sites on a single server, as multiple users, and making sure the webserver has the proper permissions to make changes while making sure security is in order. *What I like to achieve...* A configuration in which I can use a user per website, and where the webserver can make changes (i.e. uploading media, plugins, etc), without relying on chmod (not having to use chmod at all feels better). Where the user can make changes to it's directory (e.g. a git working directory for automatic deployments). When the users can't change each other files. *I wonder...* Is the configuration described below a proper one? Should I do something differently? Are there better solutions? *Some backstory...* For a while now I have been setting up servers for websites and web apps. Most of the time I run multiple websites from the same server. Could be a staging and production environment, but also different (client) websites. Sometimes I add CI to the mix using CircleCI. Basically CircleCI pushes to a repository on the server, this repo then updates the working directory which could be a web app or Wordpress theme. Everything currently works okay, although I think security, and how things are set up, could be improved. Currently my configuration often looks like... **Users** ``` somewebsite # User on the server with the directory `/var/www/somewebsite` someotherwebsite # Another user on the server with the directory `/var/www/someotherwebsite` ``` When needed I use these users to make changes to the contents. **Directories** ``` /var/www/somewebsite/html # Wordpress website /var/www/somewebsite/somewebsite.git # Git repo with a working dir set to `/var/www/somewebsite/html/wp-content/themes/sometheme` /var/www/someotherwebsite/html # Some other website /var/www/yetanotherwebsite/html # Yet another Wordpress website ``` **Permissions** The contents of `/var/www/somewebsite/html`, `/var/www/someotherwebsite/html`, and `/var/www/yetanotherwebsite/html` belong to the user and group `www-data`. Although, when I would upload something manually later, this upload (logically) belongs to the user I am using for access (not `www-data`). The users `somewebsite`, `someotherwebsite`, and `yetanotherwebsite` have been added to the `www-data` group. I believe this means `someotherwebsite` could make changes to `somewebsite` (and vice versa). Which would be better if it couldn't. **Trivia** * Depending on the requirements I use Apache or nginx. * SSH keys are used for authentication, Password Authentication is disabled. I understand my current configuration isn't the most straightforward one. I do hope I clarified the most of it. I read a lot of information regarding the subject. But It's hard to find something which is applicable to my situation. This tutorial was very useful https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-wordpress-sites-on-a-single-ubuntu-vps. Any tips, feedback and insights are welcome!
Trying to setup uwsgi with systemctl getting this issue ``` ubuntu@ip-172-31-16-133:~$ sudo systemctl status emperor.uwsgi.service ● emperor.uwsgi.service - uWSGI Emperor Loaded: loaded (/etc/systemd/system/emperor.uwsgi.service; disabled; vendor preset: enabled) Active: inactive (dead) Jan 30 11:16:05 ip-172-31-16-133 systemd: Stopped uWSGI Emperor. Jan 30 11:16:05 ip-172-31-16-133 systemd: Starting uWSGI Emperor... Jan 30 11:16:05 ip-172-31-16-133 systemd: emperor.uwsgi.service: Main process exited, code=exited Jan 30 11:16:05 ip-172-31-16-133 systemd: Failed to start uWSGI Emperor. Jan 30 11:16:05 ip-172-31-16-133 systemd: emperor.uwsgi.service: Unit entered failed state. Jan 30 11:16:05 ip-172-31-16-133 systemd: emperor.uwsgi.service: Failed with result 'exit-code'. Jan 30 11:16:05 ip-172-31-16-133 systemd: emperor.uwsgi.service: Service hold-off time over, sche Jan 30 11:16:05 ip-172-31-16-133 systemd: Stopped uWSGI Emperor. Jan 30 11:16:05 ip-172-31-16-133 systemd: emperor.uwsgi.service: Start request repeated too quick Jan 30 11:16:05 ip-172-31-16-133 systemd: Failed to start uWSGI Emperor. ``` I've Setup uwsgi service as `/etc/systemd/system/emperor.uwsgi.service` ``` [Unit] Description=uWSGI Emperor After=syslog.target [Service] ExecStart=/root/uwsgi/uwsgi --ini /etc/uwsgi/emperor.ini # Requires systemd version 211 or newer RuntimeDirectory=uwsgi Restart=always KillSignal=SIGQUIT Type=notify StandardError=syslog NotifyAccess=all [Install] WantedBy=multi-user.target ```