Latest Server related questions

Score: 1
Shivkumar Mallesappa avatar
Issues while adding CentOS EC2 to Windows AD
cn flag

I am trying to add my CentOS EC2 machine to Windows AD. My Windows Active Directory is configured on EC2 Instance in another account. There are two AD Instances (Multi-AZ) that are configured and replication etc is configured by the AD Administrator on the Servers. He has created a User for me and shared the credentials with me. I have performed the following steps according to this AWS Documentati ...

Score: 0
Bender the Greatest avatar
Unable to resolve Shared Gallery images shared with me by publisher despite their visibility in the UI
sm flag

I am unable to find images shared with me via a Shared Image gallery. The issue is present with both the Az cmdlets and the Az CLI, though for consistency I will stick with PowerShell examples here. Note that referencing publicly available images, such as those published by MicrosoftWindowsServer, are able to be resolved as expected.

There are two shared galleries in question, both are within the sa ...

Score: 0
muhammad AnasHack avatar
run ngrok using subprocess. how to use subprocess with both ip address and port?
ng flag
def runNgrok():
   ngrokDir = "/home/ubuntu/ngrokFunctionalities"
   port = 8081
   ngrok_command = "ngrok"
   make_executable = str(Path(ngrokDir, ngrok_command))
   ngrok = subprocess.Popen([make_executable, 'http', 127.0.0.2, '-inspect=false','-bind-tls=true', port])
   atexit.register(ngrok.terminate)
   time.sleep(7)
   return True

File "ngrokRunKeepAlive.py", line 25
ngrok = subprocess.Popen([make_ ...
Score: 1
LDAP finds user, but "permission denied" when logging in
aw flag

I am setting up an LDAP client in Red Hat 8.

After setting up the config files I did an LDAP user test and it came back successfully:

# id myusername
uid=666(myusername) gid=510(active_users) groups=510(active_users)

If I run an ldapsearch it returns successfully with the expected results:

# ldapsearch -x -ZZ -h ldap.example.com -b dc=example,dc=com

But if I try to ssh to the Red Hat 8 machine fr ...

Score: 0
Send SSL certificate without VirtualHost Apache2
cn flag

I have a local dev server running Apache 2.4.48 on Ubuntu Server 20.04 that has an SSL certificate that I want to send for all HTTPS (port 443) requests. I don't want to use VirtualHost for this as this would apply to all VirtualHosts using port 443, so I'd have to copy the SSL config to each one. Is there a way to always send the SSL params? I tried adding

SSLEngine on
SSLCertificateFile xyz.crt
SS ...
Score: 0
How can I install a packages' dependencies but not the package itself
jp flag

I want to use a pre-built binary for Blender that is more recent than the package provided by the distro I am using (apt-based).

Blender has a number of dependencies though, so I end up doing the following

  • install blender via apt to get the dependencied
  • install the newer pre-built binary
  • optionally remove the apt install of blender

so I end with two installations of blender - not too much of a bother  ...

Score: 0
Andi S. avatar
Add manual postfix configuration on a Plesk Web Admin Server
in flag

I have a Plesk Obsidian Web Admin Edition running on Ubuntu 20.04 server.

Now I want to handle a wildcard email-address (testuser.+@mydomain.com) like described in this topic: https://serverfault.com/a/437034/952187

But the domain mydomain.com should not be handled within Plesk. The MX DNS record of course is pointing to the correct plesk server.

When I do the settings like described in this topic

Score: 1
Or Yaacov avatar
IPTables log connection pid on OUTPUT chain
vn flag

I'm trying to find pid of a socket using iptables OUTPUT chain log, or even better adding it into the log.

My current iptable rule:

sudo iptables -A OUTPUT -j LOG --log-prefix='[PID]' --log-level 7 --log-uid

I'm a bit frustrated since I know that iptables' owner module can filter items by pid (using -m owner --owner-pid flag) which means that the info is there, but I can't log it.

I know that i ...

Score: 0
moot3ch avatar
SSHing between clients connected on OpenVPN
ir flag

I have an AWS server hosting OpenVPN and two clients connected to the service. I have configured the OpenVPN server to allow inter-client communication and can see both clients connected to the service as well as confirm both clients having an active tunnel interface (both Linux clients) when connected.

Despite this the clients cannot communicate with one another. I have tried using netcat to ope ...

Score: 0
smartctl "Elements in grown defect list" vs. RAID controller "Media error count"
fr flag

I am using a hardware raid50 with PERC810 controller in my server and recently encountered a metric I am not sure about. Until now, I have been using a smartctl metric "Elements in grown defect list" as a hint that drive is failing and should be removed, but if I use perccli (or storcli/megacli) the drive is also showing a metric called "Media error count." The issue I am having with this is that, from  ...

Score: 0
Abdul Sadik Yalcin avatar
Cannot increase ModPagespeedFetcherTimeoutMs
br flag

Can't seem to be making changes to the pagespeed conf on Apache/2.4.41 (Ubuntu). Trying to increase the fetch timeout but it doesn't change. I tried turning the mod off as well but it was still running. Can't see any overrides on htaccess either. What is the issue?

/etc/apache2/mods-available/pagespeed.conf

<IfModule pagespeed_module>
  ModPagespeed on # off doesn't do anything either
  ...
  ModPag ...
Score: 0
nginx regex rewrite not working for php script
cn flag

I am trying to block PHP script execution in few folders for a WordPress installation but Nginx is giving me hard time.

location = /wp/wp-includes/category.php {
    deny all;
}

I am able to block individual script using exact match but when I use regex it doesn't work.

location ~* /wp/wp-includes/.*\.php$ {
    deny all;
}

I am not sure what am I doing wrong?

EDIT

I have following rules after a ...

Score: 0
nfs4_setfacl issue when using symlinks: Failed setxattr operation: Invalid argument An error occurred during recursive file tree walk
us flag

I am working in 2 environments: 1 is a VM running RHEL 7 (PRETTY_NAME="Red Hat Enterprise Linux Server 7.9") for quriosity The other is a kubernetes pod running an ubuntu (PRETTY_NAME="Ubuntu 18.04.5 LTS").

There is an user (jbossrdi) that can run nfs4_acl commands in these environments in order to change ACL for dirs and files. The dirs in the workingdir are owned by this user and have following ...

Score: 0
DumbMathBoy avatar
Starting a Systemctl Service - Setting up uWSGI
vn flag

I'm trying to set up uWSGI on Ubuntu 20.04, I'm trying to create a systemctld unit file but I'm struggling to start the service.

The commands:

sudo systemctl start myproject
sudo systemctl status myproject

Output:

● myproject.service - uWSGI instance to serve myproject.dev
     Loaded: loaded (/etc/systemd/system/myproject.service; enabled; vendo>
     Active: failed (Result: exit-code) since F ...
Score: 0
Redirect all non existent virtualhosts to different server using Apache
au flag

I have few virtual hosts like

test.example.com prod.exemple.com uat.exempla.com

how do i redirect everything else *.example.com to somewhere else? or even a connection on ip address without hostheader?

Thanks

Score: 1
gallo2000sv avatar
MySql 8 crashing on loop without specific errors and with enough memory
cn flag

I'm running Ubuntu 20.04.03 with Mysql 8.0.27. I have reinstalled LAMP from scratch several times and at the moment I only have 3 WordPress sites but I have tested only 1 and only 2 sites as well. Increased the RAM to 2GB and 3GB Swap.

Nothing seems to work because Mysql 8.0.27 keeps crashing causing a database connection problem in every site every night even when this are totally new sites with ...

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.