Latest Server related questions

Score: 0
Apache 2.4: How to log POST data?
in flag

I have my LAMP application hosted on AWS EC2 Linux 2 instance. I can see requests logs in /var/log/httpd/access_log but there is no POST data there. I could figure out that I can use mod_dumpio or mod_security but I cannot get it to work.

I am new to both Apache and Linux therefore I need help with step-by-step instructions on how to get it done.

I have tried to use the a2enmod command but it doesn' ...

Score: 0
"upstream sent too big header while reading response header from upstream" error - Increasing buffers not working
ng flag

I've set up the Bitnami Nginx Open Source Stack at AWS. I've started creating an application using auth0 as my authentication service. After successful login, the code must be exchanged for an access token. This is done using $auth0->exchange($url_with_params);

However, this gives me the following error:

    2021/10/10 17:38:36 [error] 14305#14305: *9 upstream sent too big header while reading r ...
Score: 0
DarkSide77 avatar
nginx: why I get access denied when I'm trying to access wordpress?
cn flag

I'm trying to set up WordPress using docker-compose but WordPress has to work in a separated container with php_fpm, a container for MariaDB, and an Nginx in port 443 redirecting to WordPress if the link was HTTPS://localhost/wordpress but if the link was HTTPS://localhost/ it has to send the request to index.html page on the same container.

but I have a problem with the WordPress URL.

I want when n ...

Score: 1
Tenders McChiken avatar
How do I extend the expiration date of every DNSSEC signature in bind9?
eg flag

I have a dnssec-secured domain that needs to remain valid for 8 weeks when all masters become unreachable.

To my understanding, setting sig-validity-interval to 64 7 in the zone's configuration file should generate SSIGs that last 64 days and that are automatically resigned by bind9 every 7 days.

When I finished implementing this for the domain, I was suprised to see dnsvis showing me that not all ge ...

Score: 0
Rich Remer avatar
determine IPv6 address of AWS EC2 instance from CLI
in flag

Previously, I was able to find the auto-assigned IPv6 address of an Amazon EC2 instance with something like the following:

aws ec2 describe-instances --region us-west-2 --instance-id i-09eca7af84e1ef806 \
  | jq .Reservations[].Instances[].NetworkInterfaces[].Ipv6Addresses[]

(if you're unfamiliar, jq is a tool to process JSON data; in this case I'm using it to extract the value described in https://doc ...

Score: 0
Home userdir is not working after enabled on Apache2
uz flag
gvd

I'm trying to enable userdir in Apache2 but I only receive a blank page.

I used:

a2enmod userdir 
service apache2 restart

My conf file /etc/apache2/mods-enabled/userdir.conf

<IfModule mod_userdir.c>
    UserDir public_html
    UserDir disabled root

    <Directory /home/*/public_html>
        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwn ...
Score: 0
net-snmp reporting zero for interface speeds on CentOS 8
ng flag

My monitoring system is using data from SNMP polls to build graphs. This works fine with a few dozen RHEL 6 and 7 hosts, but graphs for all my new CentOS 8 hosts are not working correctly. I've done some checking and the problem is with the ifSpeed MIB returning zero for all interfaces except lo:

$ snmpwalk -v 3 rhel6.foo.internal 1.3.6.1.2.1.2.2.1.5
IF-MIB::ifSpeed.1 10000000
IF-MIB::ifSpeed.2 1000000 ...
Score: 0
Top level load balancing (or load balancer for load balancer) for huge traffic
ma flag

my assumption was that the DNS load balancing is the way for the top level load balancing:

In older posts I see that google returned multiple A records. At least in the theory, it should provide not only load balancing, but also a fallback for clients, if first/some of IPs ar ...

Score: 0
Álex avatar
git-remote-gcrypt integrity check during clone failing in only one computer
cn flag

I have a remote git repository using the git-remote-gcrypt remote filter. It works properly and can be cloned normally in one computer (Ubuntu 20.04, with git-remote-gcrypt version 1.3-1). It has been in use for a while, with a few commits.

In another similar computer (same OS and gcrypt version), the clone fails with:

gcrypt: Packfile d799a7de3e9fe63eb76b05fceef0d955b83b4f857de2232e0174114145d6f13c d ...
Score: 4
narotello avatar
Statistics /proc/net/stat/nf_conntrack is missing on Linux server
aq flag

For some reason I have no such file on my server..

root@serv:~# uname -a
Linux serv 5.4.0-87-generic #98~18.04.1-Ubuntu SMP Wed Sep 22 10:45:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@serv:~# cat /proc/net/stat/nf_conntrack
cat: /proc/net/stat/nf_conntrack: No such file or directory

But my conntrack is definitely enabled:

root@serv:~# lsmod | grep conntr
xt_conntrack           16384  1
nf_co ...
Score: 0
erotavlas avatar
Sync error between windows server AD and Azure AD
fr flag

I have windows server 2019 OS with AD synced to Azure AD via Azure AD connect sync.

I recently changed my domain @mydomain for some of my old users. Unfortunately, I also erroneously changed the domain for the user that synchronises between AD and Azure AD. Later, I reverted back the change from @mydomain to @Istit.omnimicrosoft.com. On office365 (Azure AD) control panel the sync status of passwo ...

Score: 0
Kaiyu Yang avatar
How to install packages using source package on Ubuntu?
us flag

When I try to install a software using apt-get, it told me packages have unmet dependencies, so I want to install the dependencies manual, but when I found the dependencies in website:packages.ubuntu.com, it has three file: xxx.dsc xxx.orig.tar.xz xxx.debian.tar.xz

I'm wondering how to install the package using these three file on Ubuntu?

Score: 0
dgarg avatar
Network traffic debugging - noticed a lot of traffic from different ports in my VM
gb flag

I am on a quest to analyze high egress traffic from my VM. Analyzing iftop logs, I noticed that a lot of traffic is conducted from different ports of my VM such as :42272, :42292, :42294, :55166 etc.

Below is the capture of iftop -P -t -L 10000 | grep "=>" |grep -v https I have masked my ip address as xx.xxx.x.x

  1 xx.xxx.x.x:ssh                           =>      142KB     67.8KB     67.8K ...
Score: 0
ansible-playbook: command not found when running bash with cron
cn flag

Running on ubuntu18, have a bash job to collect data from a router using ansible. Here is the bash script

#!/bin/bash
cd ~/datacollect
ansible-playbook -i /home/user/datacollect/hosts /home/user/datacollect/datacollect.yml

If I run the bash job from ubuntu console, there is no issue. Since we need to collect data every 5 minutes, I created a cron job for it.

* * * * *  /home/user/datacollect/call ...
Score: 0
dgarg avatar
iftop - total send rate not matching with sum of individual
gb flag

In my iftop output, the total send rate (40s) is shown to the tune of 600KB/s but when I total the send entries only for same 40s for even 500 entries they sum up to merely 100KB..

Any idea why the total may not be correlating..

Any other tool i can use to correlate the network traffic. My objective is to understand the root cause of this high network traffic number. By the way, 600KB/s is matching  ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.