server_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
server_configuration [2021/01/13 19:06] davidserver_configuration [2021/02/27 09:52] – [Detail Pages] david
Line 15: Line 15:
 See: See:
  
-  * [[server_configuration:apache]] +  * [[server configuration:apache]] 
-  * [[server_configuration:firewall]] +  * [[server configuration:firewall]] 
-  * [[server_configuration:email]] +  * [[server configuration:email]] 
-  * [[server_configuration:cron]] +  * [[server configuration:cron]] 
-  * [[server_configuration:wiki]]+  * [[server configuration:wiki]] 
 +  * [[server configuration:sftp]] 
 +  * [[server configuration:postgres]] 
 + 
 +Also (for me): 
 +  * [[server configuration:video notes]]
  
 ====== Server Migration ====== ====== Server Migration ======
Line 94: Line 99:
 As root As root
 <code bash> <code bash>
 +# create a user for me
 +adduser david
 +
 # Add my user to sudo # Add my user to sudo
 groupadd david sudo groupadd david sudo
Line 105: Line 113:
 ==== SFTP ==== ==== SFTP ====
  
-Basic SFTP was already available/configured in the box. I did have fun as my configuration in my client application was set to point to an IP rather than the hostname. +Basic SFTP was already available/configured in the box. 
- +
-Some related notes: +
-SFTP: https://linuxconfig.org/how-to-setup-sftp-server-on-ubuntu-20-04-focal-fossa-linux +
-https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/ +
-https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server +
-https://wordpress.org/support/topic/the-session-allows-sftp-connections-only/ +
- +
-Note, I'd added the user account to the group "sftp" which then made it specifically an ''sftp'' account and blocked it for ''ssh'' using the basic configuration. I got the error "the session allows sftp connections only" when trying to ''ssh''. Removing the account from the group fixed things. +
- +
-<code bash> +
-# Create sftp group and add user +
-groupadd sftp +
-usermod -a -G sftp david +
- +
-# Restart SSH - 2 methods +
-systemctl restart ssh +
-service ssh reload +
- +
-# Remove user from group +
-gpasswd -d david sftp +
- +
-# View groups +
-groups david +
-</code> +
 ==== Firewall ==== ==== Firewall ====
  
Line 160: Line 143:
   * https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/   * https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/
  
-The two values need to be larger than the file size ''post_max_size'' and ''upload_max_filesize''. In the inteface, the value which is shown as the "Maximum upload" is (for some reason) ''post_max_size''.+The two values need to be larger than the file size ''post_max_size'' and ''upload_max_filesize''. 
 + 
 +In the interface, the value which is shown as the "Maximum upload" is (for some reason) ''post_max_size''. 
 + 
 +Edit the ''.htaccess'' file, under: ''/var/www/roman-halliday.com/datablog''
  
-Under: ''/var/www/roman-halliday.com/datablog'' +<file txt .htaccess>
-<file .htaccess>+
 php_value upload_max_filesize 256M php_value upload_max_filesize 256M
 php_value post_max_size 200M php_value post_max_size 200M
  • server_configuration.txt
  • Last modified: 2021/04/14 08:59
  • by david