Recent Questions - Server Fault |
- How to set up multiple apache + php-fpm + mariadb service groups on a single server with per-group resource limits?
- SSL subdomain doesn't redirect
- HP software, How to get rid of this annoying message: "No system tray detected on this system"
- Why is virt-install failing with “Read-only file system” when specifying initrd on a locally mounted ISO?
- How to set max input vars on PHP_FPM?
- DNS record for UPN alias?
- mariabackup fails with Error: cannot mkdir 2: /data/backups/mariadb/
- HTB "rate" parameter limits available bandwidth
- Did something stupid that interrupting Ethernet access for "some ports"
- UniFi Security Gateway (Strongswan) site to site VPN with branch side has no real IP at all (e.g. 4G connections) and dual WAN fallback
- IPTables log connection pid on OUTPUT chain
- Removing the default DNS servers from ubuntu server 20.04
- VLAN support with libvirt for linux bridge to virtual machines
- Is it possible to configure Windows "resource exhaustion detector" to detect and log high cpu events, rather than just low memory events?
- Why am I missing /var/run/sshd after every boot?
- After VPN into work network - get error on many sites “NET::ERR_CERT_AUTHORITY_INVALID”
- Cannot connect to exchange server over internet on computer but can connect via mobile
- Preventing an HP DL server from automatically booting - what are the scenarios?
- How can I get Azure to use an SSH key when doing a node.js deploy via git?
- How to set BasicAuth everywhere EXCEPT certain directories
- How to enable LDAP over SSL/TLS in AD without installing AD Certificate Services
- Audit Logs for Environment Path Changes
- Cannot get web root to be /var/www/html, despite setting it in apache2.conf and 000-default.conf
- virtual hosts with Apache 2.4 windows
- Change Block Tracking settings not retained for a VM on VMWare 5.5
- IIS7 SSL certificate caching
- Hyper-V 2012 gracefully shutdown when UPS battery running out
- How to findout which key was being used to login for an SSH session
- User directive in nginx generates error despite running as UID root
- single sign-on integrating SVN
Posted: 06 Feb 2022 09:21 AM PST We have a centos8 web server hosting hundreds of websites, using 3 services: apache, mariadb and php-fpm. Because apache and mariadb do not support per-account resource limitation, all websites have the same access to many system resources (storage, database) and a single website can overload the machine (often that happens through database queries) and bring down all websites hosted there. We would like to use Linux cgroups and possibly other container features to introduce limits to resources one website can use, mostly the number of php processes and I/O operations and database queries per second. One (not necessarily the most performant) way to achieve this is to run one dedicated group of services (apache+mariadb+php-fpm) for each website or website group, with specific configuration of resource limits. Thus, to have hundreds of simultaneously running service groups. What is the more straightforward way to set this up from existing setup of working 3 services? Performance is secondary and we do not want to go into creating and running hundreds of container images. Instead, we would like to have everything defined in an easily runtime-modifiable form in the root filesystem and control all services through systemd. Thus, no docker containers. |
SSL subdomain doesn't redirect Posted: 06 Feb 2022 08:03 AM PST I am trying to visit
Why is the first happening? Here's the nginx.conf |
HP software, How to get rid of this annoying message: "No system tray detected on this system" Posted: 06 Feb 2022 07:49 AM PST I want to know how to get rid of this annoying message: "No system tray detected on this system" after I start my PC every day. This happened since I installed HP printer and scanner drivers (HPLIP) on my PC on Ubuntu 18.04.6 LTS Naturally, I want to keep my HP printer working. Btw, the scanner is not recognized by the system yet |
Posted: 06 Feb 2022 08:28 AM PST I'm using virt-install to create an Ubuntu machine using the official Ubuntu server live ISO. This command has been working in the past, but stopped working at some point (maybe after upgrading the host OS from Ubuntu 18.04 to 20.04, but I'm not sure). Output: So for some reason, it is complaining that |
How to set max input vars on PHP_FPM? Posted: 06 Feb 2022 06:39 AM PST I have a LAMP stack Digitalocean droplet. I just changed to PHP_FPM and now I can't set max input vars. How to do so? Thanks! |
Posted: 06 Feb 2022 04:54 AM PST I have a active directory domain When a user tries to logon as Don't I need a SRV record or something in the parent zone to hint to the AD? |
mariabackup fails with Error: cannot mkdir 2: /data/backups/mariadb/ Posted: 06 Feb 2022 06:08 AM PST Trying to use mariabackup to take backup of all our databases. First created backup directory as And proceed to do backup tried goggling and various options it did not worked so finally tried without --target-directory option and did backup again and it worked successfully and got this What did I do wrong or how do I run this with ----target-directory |
HTB "rate" parameter limits available bandwidth Posted: 06 Feb 2022 07:47 AM PST Good day, I have the following situation: 4 TCP streams of data from one machine to another. Each streams has its own destination TCP Port. 4 streams have different priorities : high, medium, low, bulk. High, medium, low generate 1.67Mbit/s and bulk generates 10Mbit/s. (iperf3 used to generate the traffic). Packets of each stream are marked with appropriate DiffServ mark (DSCP) and this mark is used for the classification of traffic in the HTB qdisc. Goal: HTB qdisc should be configured in such way that at any time the high prio stream gets its requiered 1.67Mbit/s, medium prio is also guaranteed 1.67Mbit/s but with slightly lower prio and the rest of the traffic should be guaranteed 50kbit/s. Each stream must be able to use the whole link if it is idle and the stream generates more bandwidth than initially specified. Generation of traffic: Configuration of HTB qdisc The traffic is classified correctly. I can see relevant counters in tc class statistics going up. I rechecked this multiple times. Problem: This configuration correctly allocates bandwidth to high and medium prio streams. Low prio and bulk also receive their 50kbit. However, I am not able to push through the link more than the value specified in the root class1:1 as rate i.e. 3.5mbit. In every article and manual about HTB that I read it was stated, that "rate" parameter is the minimal guaranteed rate to the class and "ceil" is the max amount it can get. In my case it seems that "rate" caps the link at specified value. This is definitely not the desired and expected behaviour. If I set the "rate" parameter of the root class to same value as "ceil" i.e. 1000mbit, no prioritisation takes place and the available bandwidth is divided equally between all flows. This is not the desired behavior as in the case of fluctuations of available bandwidth, prio traffic will get less than 1.67Mbit/s Have I misunderstood the meaning of "rate" parameter in the root class? Is this problem somehow related to onther HTB parameters like "quantum"? I also observed that every class has negative amount of tokens during the transmission of data. Is this bad? If so, what parameters should i tune and how? Thank You in advance! |
Did something stupid that interrupting Ethernet access for "some ports" Posted: 06 Feb 2022 06:19 AM PST I have just installed Ubuntu Server 20.04 on my server, but I executed an automated script without carefully watching, and it resulted in a really weird scenario. I also have multiple webservers enabled on that server, but on alternative ports. Before I executed it, I can access them easily by typing server's Ethernet address and it's port. But after it, I just don't know why it wouldn't work. Here is some info I can provide:
But for some reason, while listening all the other ports is not accessible, if I stop apache and make nginx listen on 80 and 443, it would work. Though, no luck if I make Nginx to listen on 81 and 444.
Please let me know if you have any idea, really don't want to reinstall a whole server just for this...Thanks in advance! |
Posted: 06 Feb 2022 05:59 AM PST As title described, here is the scenario I have:
Ideally I would like to configure a site-to-site VPN setup but leveraging dialup client for the branch office so that it will work without a real IP. It would be great if I can get it work directly using Unifi controller (I have one on the cloud, with all the equipment provisioned using L3 IP based approach), however if it is impossible I can also use underlying configuration hack directly using the gateway json override trick: |
IPTables log connection pid on OUTPUT chain Posted: 06 Feb 2022 06:04 AM PST I'm trying to find My current iptable rule: I'm a bit frustrated since I know that iptables' I know that it impossible to do with INPUT chain since iptables is a kernel process, but for OUTPUT chain it should be possible. any idea? or even of how to cross some log data in order to get PID of OUTPUT chain connections? |
Removing the default DNS servers from ubuntu server 20.04 Posted: 06 Feb 2022 07:18 AM PST I have an ubuntu 20.04 server and I want to change its DNS settings. The server is using netplan and cloud-init. I disabled cloud-init network configuraion by creating There is an automatically generated And Just to make sure nothing overrides these settings, I created a copy of the Then I ran What the hell are How do I remove |
VLAN support with libvirt for linux bridge to virtual machines Posted: 06 Feb 2022 05:50 AM PST I'm using systemd-networkd to configure network interfaces managed by libvirt for KVM (Kernel-based Virtual Machine) with Debian Bullseye on all nodes. I want to have transparent VLAN support on the virtual machines using the Linux Bridge. For the Linux Bridge this isn't supported by libvirt. For example I have a virtual machine with three interfaces attached to the bridge with: Now when running the guest I will see on the bridge: All interfaces are successfully attached to the bridge. enp1s0 is the uplink interface on the host. Now when looking at the VLAN ids on the bridge I see: Only the host interface is shown with its VLAN ids. Is there a way to also attach VLAN ids to the other interfaces |
Posted: 06 Feb 2022 08:06 AM PST Is it possible to configure Windows "resource exhaustion detector" feature to detect and log high cpu events, rather than just low memory events? As some may know, if Windows detects a low memory condition, the "resource exhaustion detector" mechanism will detect that and report it in the Windows Event Logs (System), as eventid 2004, and with a source of "resource-exhaustion-detector". Sadly, it seems only to fire on a low memory condition. I would love it to fire also on an extended high CPU condition. But I have not found any resources to suggest it's possible. Does anyone know? Motivation: If you may wonder why I seek this, something nice (and simple) about that event log line is it lists what processes are using the most memory at the moment of that alert, as in:
I would love is to get a similar list of offending processes when the system is experiencing high and prolonged excessive CPU use. Given the generic name of "resource exhaustion detector" (and not just "low memory detector"), I was hopeful I may find something on this, but so far my google fu is failing me. I've also not found anything discussing how that memory limit is set (at what size, and for what duration). That would be interesting to know as well, if anyone may find more on configuring this detector. (As for the secondary intent here, of knowing when CPU is high and knowing what processes are the cause, I will say that Perfmon and its data collector sets do NOT seem the solution. Those require that you identify the specific process(es) to watch. I am seeking with this something that fires even if I may not think to have some tool watching some particular process.) |
Why am I missing /var/run/sshd after every boot? Posted: 06 Feb 2022 04:31 AM PST I'm running a Ubuntu 16.04 container under Proxmox 5.2-11. After applying the latest round of patches1 I'm unable to login at the console or over ssh. I mounted the container root FS on the hypervisor and added I noticed ssh was not running so tried starting it by hand ( I created the directory by hand, started I'm not too familiar with 16.04 so wondering how I can find out more about the problem. I have no [2] Added Really bizarre.... I checked |
After VPN into work network - get error on many sites “NET::ERR_CERT_AUTHORITY_INVALID” Posted: 06 Feb 2022 07:03 AM PST After VPNing into a work network, I can no longer access many sites that use https such as StackOverflow, Slack, Workflowy, many more. I get this message:
I'm using Chrome but the same thing happens in Firefox. Some sites allow me to bypass this message with the Advanced button, but most do not. However, Gmail works! As do all google sites (google.com, youtube.com, etc). And outlook.Microsoft.com. And Amazon. What could be causing this? Any workarounds? My laptop is not part of the domain. HTTP sites work fine. |
Cannot connect to exchange server over internet on computer but can connect via mobile Posted: 06 Feb 2022 08:06 AM PST I'm trying to understand how this is possible. This is my situation Inside the company (LAN environment)
Outside the company (Internet environment)
The Exchange server is 2010 Extra info on Outlook 2016. If you try to add new email account when outside the company. The autodiscover failed to retrieve the configuration. If you're inside the company, the autodiscover works fine. I've tried to use autodiscover.xml file + adding entry to registry. The auto discover works (able to get configuration), but failed at last step (Logging on to the mail server) with this error message "The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action." My question are why mobile devices works without any problem? and how can I make Outlook works without modifying anything on server side. Thank you, any help are greatly appreciated. |
Preventing an HP DL server from automatically booting - what are the scenarios? Posted: 06 Feb 2022 04:04 AM PST We are currently working across our environment and disabling all ways that an HP server can automatically reboot. This is in response to a massive outage which caused our servers to begin flapping, causing a service outage for several million customers. The request from "on high" is to have the servers shut down, but not reboot until a human can manually guide them back online when the "coast is clear" (we have several geographically redundant sites). So far, I have identified the following possible causes:
However, I assume there is yet another configuration that is applied when one of the server sensors passes a critical threshold, for example if the ambient temperature sensor exceeds 40 degrees C. That should absolutely shut down a host, but I'm unsure where the configuration lies to disable the automatic reboot after the ambient temperature drops. Or is this also controlled by HP ASR? I just want to ensure that there aren't any scenarios that I have forgotten that could bite us in the butt in production. Any help would be appreciated. |
How can I get Azure to use an SSH key when doing a node.js deploy via git? Posted: 06 Feb 2022 10:00 AM PST I'm deploying a node.js app to Azure Web Services using git from my local machine via: git push azure master One of our npm packages is a private repo hosted on BitBucket. Without Azure having an SSH key to clone that repo, the deployment fails. How can I add an SSH key to my Azure server that will get used during these deployment executions? |
How to set BasicAuth everywhere EXCEPT certain directories Posted: 06 Feb 2022 06:04 AM PST When it comes to setting BasicAuth protection for specific directory, I use simple setup (in But I would like to set BasicAuth everywhere on the server by default, and unlock it only for specific directories (websites, domains). So, how could one set BasicAuth everywhere on the server except certain directories? |
How to enable LDAP over SSL/TLS in AD without installing AD Certificate Services Posted: 06 Feb 2022 06:05 AM PST I am installing a Sonicwall firewall into my organization. I've connected the Sonicwall with the Active Directory domain, however now on the status page of the appliance there is a huge warning: I understand that connection between the FW and the DC is made with clear text and although this is not much of a problem because the Sonicwall and the Domain Controllers are in the local network and in the same subnet, we still want to encrypt the traffic to comply with our regulations. As I made my search on other forums people are mentioning that I need to apply a certificate to the Domain Controller as per this MS article which is also mentioning the installation of AD Certificate services. Is there any other way to do encrypt the LDAP traffic without installation of the additional role (AD CS) on the Domain Controller? Installing additional role to the Domain Controller, just for one simple task seems like an overkill to me - like nailing a needle with a sledgehammer. Also If I am really to install and deploy a Certification Authority to our organization what would be the impact on it? I don't have experience working with it, so are there any implications and/or problems for which I am to be aware of? |
Audit Logs for Environment Path Changes Posted: 06 Feb 2022 09:04 AM PST Something (or someone) keeps changing our environment path variables on several of our servers. I have the Audit Policy (under local sec pol) set to Success, Failure for all but Process Tracking (which is just failure). However, when changes are made to our environment path, I'm not able to find where the audit log of the change is being logged. Can someone point me in the direction where I would find the path environment variable change log (or how to enable auditing for environment path changes, if not already)? I'm on Windows Server 2012 Standard. |
Cannot get web root to be /var/www/html, despite setting it in apache2.conf and 000-default.conf Posted: 06 Feb 2022 05:02 AM PST new to Linux and trying to set up a basic web server. I'm currently a bit confused, as the document root when you visit the server in a browser appears to be /var/www/. In both apache2.conf and 000-default.conf the DocumentRoot is set to /var/www/html, and I have restarted the apache2 service numerous times with no luck. I'm unsure as to what could be causing this - I have installed mod_security, but I don't think that should have any effect. For reference, current apache2.conf and 000-default.conf (I know some values are insanely high, will sort it once I can get everything running). Server IP: http://167.114.71.100/ As expected from apache2.conf, this gives a 403 forbidden. 167.114.71.100/html does work, however. Any ideas how I can make the default root 167.114.71.100/html? Thanks! apache2.conf: 000-default.conf: |
virtual hosts with Apache 2.4 windows Posted: 06 Feb 2022 09:04 AM PST Trying to upgrade the PHP version from 5.3 to 5.5 Environment: Windows 2012 Server, Apache 2.4, PHP 5.5, Upgrading from PHP 5.3 and Apache 2.2 for *MySQL and *Drupal I was able to get the Apache2.4/PHP 5.5 config to work using the base document root. I am able to navigate to 'http://sitetest' and call index.html or a created phpinfo.php with correct php version. Issue is getting virtual hosts to work that are sub folders of the base document root. sitetest/sitenet sitetest/siteorg get
From httpd.conf from the httpd-vhosts.conf It doesnt matter if I try to read another easy HTML or php page in either of the sites. I tried not defining the directories for the virtual hosts and I still get the internal error. I have read several different documents for virtual hosting and was able to get the Apache2.2 with 5.3 to work, but have run into a standstill here. Thanks in advance. |
Change Block Tracking settings not retained for a VM on VMWare 5.5 Posted: 06 Feb 2022 07:03 AM PST I'm trying to enable Change Block Tracking as per this VMWare KB article but the setting ctkEnabled is not being retained in the advanced options or being added to the vmx file. Edit: The last comment on this community post. It's a slightly different circumstance, but suggests that there is an known bug editing these settings in the web-gui. |
Posted: 06 Feb 2022 06:05 AM PST I changed certificate in IIS 7, changed bindings on websites, everything OK. But when I'm trying to set my old certificate (and I'm changed bindings too), I still get new certificate instead of old. I deleted cache, certificates from browser, opened from another machines, but there is no effect. When I open website from machine, where is it runned, I can see, that there is my old certificate, so IIS7 changed certificate... But where the certificate can be cached? P.S. To prevent misunderstanding - I want to return to my OLD certificate. |
Hyper-V 2012 gracefully shutdown when UPS battery running out Posted: 06 Feb 2022 04:52 AM PST Background: We're running a couple of Virtual servers in Hyper-V at a small office using Windows 2008 R2. We only have 1 physical host (and we aren't planning to change that any time soon). We're looking to move to Hyper-V Server 2012. Currently we have a small UPS that keeps the server running for about 20 minutes and then sends a shutdown message to Windows 2008. The UPS Connects via USB. Windows 2008 recognises the UPS as a battery and there is also software from Eaton that we use to monitor the battery. When Windows shuts down it also shuts down the VM's properly. We don't want the overhead of running a full version of Server 2012 just so we can have the UPS shut the server down, but we don't want Active Directory and Exchange to suddenly power off either. Can we make Hyper-V Server 2012 shutdown the VM's gracefully when the UPS runs out of power? |
How to findout which key was being used to login for an SSH session Posted: 06 Feb 2022 06:01 AM PST I would like to know which key was used when logging into an SSH session. I wan to correlate the key to a local database and send email to an address which corresponds to the key. The first step is to find which key is the one being used. |
User directive in nginx generates error despite running as UID root Posted: 06 Feb 2022 05:02 AM PST I'm running nginx on a MacOS X machine, installed with brew, and when I launch nginx, even with sudo, I get the following warning in my log file over and over again: From I'm already launching nginx with sudo, since I want the thing to listen on port 80. Shouldn't that be enough to give it the proper super user privileges? The nginx binary as it's installed: FWIW, I recompiled the binary to set passenger up and moved it around from it's original location into /usr/local/sbin. Update: As it turns out MacOS X was restarting nginx after I'd stopped it, because the launchd plist in ~/Library/LaunchAgents had set it to 'KeepAlive'. However, because I installed this plist into my local user's LaunchAgents folder as opposed to /Library/LaunchAgents (or better yet /Library/LaunchDaemons, which run before you even log on), it wasn't executed as root. Because of an error about not having permissions to use port 80, it actually exited right away, but still wrote to the same log file as the nginx process I started with sudo. I had thought the errors stemming from the automatic restart were actually coming from my manual restart via sudo. So, bottom line, problem solved. The real problem here was the homebrew instructions specifically asking you to install the plist file into an area that wouldn't allow a local site to use port 80. |
single sign-on integrating SVN Posted: 06 Feb 2022 10:00 AM PST I need to authenticate my windows users on to a Linux Server which will act as a primary authentication source. Users need to be authenticated and use their access to run SVN or Mercurial ( with something like Tortoise SVN client), or some versioning system. The versioning system need to be authenticated against the Linux Server's authentication source, and users need to use their Windows login username and password to server. I'd have attempted to do this normally on Samba. But is there a better choice? Also how do you create a roaming profile? That is anyone should be able to access their SVN from any PC as long as they use their right Windows username and password |
You are subscribed to email updates from Recent Questions - Server Fault. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment