[00:00] <chrisowen> I have just a cli on the server but I can do basic nano edits from there
[00:00] <chrisowen> no gui on the server
[00:00] <chrisowen> gui is for newbies
[00:00] <chrisowen> lol
[00:00] <TJ-> chrisowen: GUIs aren't needed; waste of bandwidth and space!
[00:00] <chrisowen> yeah the real power is in the cli
[00:01] <TJ-> but the point is, if as the www-data user you are able to read files that apache reports errors for, then the problem  might lie elsewhere
[00:02] <chrisowen> yes IC an see the files in putty and winscp and ftp and filemanager....  but the file transverse thing seems to be applicable
[00:03] <chrisowen> i manually have changed the apache to point to the shared mount
[00:03] <chrisowen> manually mounted
[00:03] <chrisowen> found that file-node is not a good command
[00:03] <chrisowen> so fixed that error
[00:03] <TJ-> chrisowen: I was trying to access your site but the hostname doesn't resolve in DNS
[00:04] <chrisowen> created a manual edit in the credentials file
[00:04] <chrisowen> So I are pretty sure I missed a step
[00:04] <chrisowen> hmmm
[00:05] <chrisowen> 76.183.85.163
[00:05] <chrisowen> I might need to go to godaddy and look at that
[00:06] <chrisowen> fail that and its the usg firewall
[00:06] <sarnold> chrisowen: hmm, just skimming through scrollback .. are you trying to make a web server that serves content that is stored on a *second* computer?
[00:06] <chrisowen> YES!!!!! have you done that before????
[00:07] <chrisowen> I have been googleing and not found much on how to do that most of it I just slapped together
[00:07] <chrisowen> the second is a Freenas server
[00:08] <sarnold> I have not; the usual approach is to copy the content to the webserver itself, to drastically reduce the chances of failure -- now your website depends upon *both* systems being up, functional, etc
[00:08] <chrisowen> I think i missed a step somewhere.... I am thinking that t is not common
[00:10] <sarnold> yeah it's pretty rare; simple websites are usually just files served from the one machine, more complicated sites are usually database-backed things with full CMS frameworks coordinating everything
[00:10] <chrisowen> yea the server has crashed hard 3 times due to hardware issues and I have had to reinstall each time so I want to use the shadow raid to protect everything that gets saved but not have extra hardware all over
[00:10] <chrisowen> Being a personal server there is not much traffic
[00:10] <sarnold> raid is good for availability, and letting you replace hard drives on your own schedule, but it shouldn't be considered a backup
[00:11] <chrisowen> install apache creates permissions and users and file locations autmatically
[00:11] <chrisowen> So I think the issue is the permissions
[00:11] <chrisowen> right
[00:11] <sarnold> I strongly dislike the debian policy (and thus ubuntu policy) of the web server running as user www-data *and* the default data directories being www-data
[00:11] <chrisowen> better then just a sole drive
[00:12] <chrisowen> last time it crapped was on a SSD
[00:12] <sarnold> the webservre process should not have write access to anything except its log files, database sockets, and if users are going t obe able to upload things, a directory to store those, too
[00:12] <chrisowen> before that was a mechanical 4T
[00:12] <sarnold> ouch
[00:12] <chrisowen> before that was an old small IDE
[00:12] <sarnold> drives do fail, but three drives in one system is suspicious
[00:13] <chrisowen> each time was total loss
[00:13] <chrisowen> oh it took them about 3 months on the ssd 6 to 8 on the 4T and 3 years on the old ide
[00:14] <chrisowen> I have a bald spot where I have been scratching my head
[00:14] <chrisowen> I did change the system between IDE and 4T
[00:15] <chrisowen> I have always had a 3000 APC backup
[00:15] <chrisowen> all rack mount
[00:15] <chrisowen> The Nas is a supermicro now used to be a Altos server
[00:16] <sarnold> I wonder if you lost some capacitors on the motherboard, or if the power supply is going... I'm accustomed to failures happening either within months, or after a decade..
[00:16] <chrisowen> I am looking at a hp 380g7 right now  just not looking at reloading
[00:17] <chrisowen> maybe the new server is the same one just setup for loading the system then hosting from the nas
[00:19] <chrisowen> I have windows 2012r2 with hyper that is running 3 virtual servers with each ubuntu server running.  I was using widows 2012r2 and windows variants the last time
[00:19] <chrisowen> I was setting up virual server but had not enough ram for it the first go
[00:20] <chrisowen> now I have enough.  Everything loads off the gig nic and each virtual ahs its own dedicated server 4 port gig nic
[00:20] <chrisowen> I have 6 nics in the system
[00:21] <chrisowen> the nas is dedicated role as a nas with a gig nic and the switch is a gig port all set to full duplex
[00:22] <chrisowen> bandwidth internally has not been a issue and as I mentioned it is a personal so not hosting anyhing
[00:22] <chrisowen> The idea is if a Shadow start to fail I can replace it before a loss
[00:23] <chrisowen> I like that idea better then the total loss that I have had
[00:25] <chrisowen> sudo find my_directory -type d -exec chmod 2750 {} \;  So I am thinking this is the start and my_directory is the shared mount???
[00:26] <sarnold> it really depends what you want to do
[00:28] <chrisowen> awwwww I am thinking to attach the permissions that I broke that apache probably setups for /srv/www....
[00:28] <chrisowen> sudo find /media/winshare1/owentechnologysolutions.com -type d -exec chmod 2750 {} \; took a few seconds but no errors...
[00:30] <chrisowen> sudo find /media/winshare1/owentechnologysolutions.com -type f -exec chmod 0640 {} \;  Now  am running this
[00:30] <sarnold> apache doesn't do anything in /srv/www; the debian config will do things in /var/www -- https://sources.debian.org/src/apache2/2.4.46-1/debian/apache2.postinst/
[00:31] <chrisowen> ok the default html folder..... LOL
[00:33] <chrisowen> and that one looks like it completed no error
[00:33] <chrisowen> ugh still the same result
[00:56] <WobblyBob> can anyone help me with an ubuntu server 18.04 kvm virt manager setup. im struggling connecting to running vms. do you setup the rdp direct on vm using the windows os
[00:59] <RoyK> that's the usual, yes
[01:00] <WobblyBob> ok thanks ive bridged the connection the vm has internet access however the connection does not work even when rdp has been setup on vm instance
[01:00] <WobblyBob> any ideas?
[01:01] <RoyK> rdp isn't related to bridging - that's just the common way to connect the VMs to the local network
[01:01] <WobblyBob> ok but aslong as it has internet access on the vm the connection should be avaliable?
[01:01] <RoyK> rdp is just an application level protocol running over tcp, so if networking works and it has an ip address similar to that of the bridge, it should work
[01:02] <WobblyBob> hmmm baffled, which is the best client on ubuntu 20 desktop to connect to a windows 10 rdp
[01:02] <RoyK> what does 'ipconfig' tell you on the windows side?
[01:02] <WobblyBob> i will look now.
[01:02] <RoyK> !pastebin
[01:23] <WobblyBob> sorry cant connect currently :/
[04:11] <chrisowen> I fell asleep.  So Apache and permissions?  Anyone can lend a tip on the mode for the permissions?  My www folder is on a nas networked computer instead of locally hosted in the /vat/www folder....
[04:11] <chrisowen> ust added webmin and found the current settings
[04:14] <chrisowen> that is /var/www not vat
[04:24] <chrisowen> setting owner to www-data the mode is 755 found the old directory so trying to match that.
[04:33] <RoyK> !webmin
[04:40] <chrisowen> hmm
[04:41] <chrisowen> I am trying to figure what to do to fix apache so it will show a html across a network
[04:41] <chrisowen> file:/// works great but if you try to view across tcp it fails
[04:42] <chrisowen> im leaning towards permissions
[04:42] <chrisowen> the thumbnails show as broken links when they are not
[04:49] <chrisowen> the mode is 755??? in permissions
[05:04] <chrisowen> So I am noticing that chown does not work.... chown -R www-data:www-data /html does not change ownership from root:root to the desired owner???
[05:27] <chrisowen> So i run sudo chown -v -R  www-data:www-data /media/winshare1 and this is what I get changed ownership of '/media/winshare1' from root:root to www-data:www-dataroot@apache:/home/apache# ls -l /media/winshare1/owentechnologysolutions.comtotal 21504-rwxr-xr-x 1 root root  1623 Aug 17  2013  Audio-HTML5.jswhy would the chown be broken???