Latest Server related questions

Score: 0
QuestionAsker1995 avatar
Apache takes too long (+4s) to do anything (configtest, exec. PHP, etc)
cn flag

Note: using apache v2.4.6, PHP 7.2.24

I have deployed a PHP application on a CentOS 7 server using httpd. We have two environments (production and testing) and while testing is fast, production is slow.

After checking, it seems the main cause of slowdown on production is the fact that it takes up to 4 seconds to even start running the PHP scripts.

I placed a die; statement at the very beginning o ...

Score: 0
Nginx - block access to subfolder
tr flag

This is a Next.js with React site. Run with NPM and Nginx proxies to the localhost.

I have the following nginx server block in the virtualhost:

server {
        listen 443 ssl;
        server_name dev.sekretyrozwojuosobistego.pl;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
        client_max_b ...
Score: 0
Ommadawn avatar
Changes in compression rate
jp flag

Every month I usually compress all my database dumps into a rar file.

I was very happy with the compression rate, as each compressed file was usually about 30MB, with a compression rate of 99%.

Since a few weeks ago, without having touched anything (neither in the compressor parameters nor in the dump system), the compression rate has dropped to 70% and now the compressed file occupies about 1.50GB. ...

Score: 0
T. Jony avatar
Different environment variables for different nginx configurations
in flag

I want to link up different linux environment variables to different nginx configurations.

I have:

  1. react-app-1.conf - nginx config in sites-available directory, one of my react appplication.
  2. react-app-2.conf - nginx config in sites-available directory, another react application.

The problem:

Both of my react applications needs to access different environment variables. Setting up global linux distr ...

Score: 0
frissyn avatar
Can't start isc-dhcp-server due to error " AgentInitCheck: agent comms failure"
cn flag

I have a Raspberry Pi 4 - Model B, and I'm trying to create an adapter from Wi-Fi to Ethernet using the Pi. I'm currently using this gist as a guide for how to create it, but I keep running into an error when I start the DHCP server.

When I run service isc-dhcp-server start, I receive this message:

Job for isc-dhcp-server.service failed because the control process exited with error code.
See "syste ...
Score: 0
MattB avatar
Configuring SSL With Virtual Hosts under Apache and ubuntu
cn flag

I've got two websites being served from a ubuntu instance.

So, https://siteone.com and https://sitetwo.com both work fine.

My subdomain were fine https://subdomain.siteone.com and https://subdomain.sitetwo.com before I moved https://sitetwo.com to cloudfare.

SInce I did that The issue is https://subdomain.sitetwo.com displays https://siteone.com.

I have one public IP address available.

    <Virt ...
Score: 0
user3416348 avatar
Convert .htaccess rules to nginx format
cn flag

I bought a ready-made Laravel script that was developed to run on Apache server, and the developer doesn't support to Nginx rewrite rules. Can someone help me? When I try to access the system on my Nginx server it gives multiple redirects error. I've tried it in several ways and I can't, I even used online converters, but it doesn't work.

This is the original .htaccess from the script:

DirectoryIndex  ...
Score: 0
Have godaddy point to specific path on custom ip
ru flag

I have an ec2 machine running nginx. It has a lot of projects and typically I access it via:

https://ai.mydomain.com/myproject

One of these projects is spinning out to be separate. Assuming the ip was xxx.yyy.aaa.bbb, how would I get the godaddy to point there?

Specifically how would I get http://myproject.com to point to -> xxx.yyy.aaa.bbb/myproject

Also, if I have a letsencrypt cert for https://ai ...

Score: 0
9ilsdx 9rvj 0lo avatar
unrecognized character follows \ in "\index.htm(l?)" after updating to nginx 1.21.5
vn flag

My docker image has suddenly failed after build with error message:

2021/12/30 16:02:26 [emerg] 16#16: pcre2_compile() failed: unrecognized character follows \ in "\index.htm(l?)" at "index.htm(l?)" in /etc/nginx/conf.d/default.conf:37

We are building docker image from nginx:latest, which is currently 1.21.5.

I've degraded to nginx 1.21.4 and it starts without an issue.

My problematic configuration ...

Score: 1
Ansible populating a variable based on a json param with a json param
cn flag
raw

I have a variable containing json:

{
    "ansible_facts": {
        "ansible_network_resources": {
            "interfaces": [
                {
                    "description": "*** - LOCAL A - ***",
                    "enabled": true,
                    "name": "FastEthernet0"
                },
                {
                    "description": "*** - LOCAL B - ***",
                    "e ...
Score: 1
elbarna avatar
There is a way to pass the option " pci=[’00:...,rdm_policy=relaxed’] " to libvirt?
pe flag

I can run (successfully) a xen virtual machine use the classical method with xl

xl create -f myvm.xenxl.cfg

I know also how to convert from xl format to libvirt xml

virsh -c xen:///system domxml-from-native xen-xl myvm.xenxl.cfg > myvm.xml

What is the problem? I had to pass a pci device to xen machine, but this work ONLY with this option

pci = [ "0000:08:04.0,rdm_policy=relaxed" ]

when I conver ...

Score: 1
Bertel avatar
On KVM VM, block egress to other IPs on local net while allowing ingress. Allow in/out to Internet. And do it without a firewall
ca flag

I am (very carefully) thinking of opening one of my VMs (all on KVM) to outside access. Currently, only via cloudflared tunnel, but it could change. For that, I need a way to definitely and securely block access from that specific VM to any and all hosts on the private network, just in case someone breaks in and gets root. That specific VM (let’s call it VM10) should only have access to the gateway,  ...

Score: 5
Website responds very slow using remote database
co flag

I want two same websites to share one database. One server is in Asia, hosting a website and the database. Another server is in the US, hosting the same web via remote database. However, the web in the US responds very slow but when moving the database to the local server(US server), the web responds fast. How to speed up the connection between the server in the US and the database in Asia?

I am  ...

Score: 2
libpam-ldapd - LDAP authentication on Debian 11 not working
ke flag

I saw several other questions here regarding a similar issue - but I haven't found something that actually worked for me.

My goal is to authenticate (mainly for SSH) all Debian maschines against an UCS (OpenLDAP) directory - in the future only when the user is member of an specific ldap group. But I'm currently struggeling to make it even work without an groupmembership.

I always get the error:

nslcd: [7 ...
Score: 2
Tito avatar
"aureport -x --summary" shows -> /usr/sbin/sshd;61b30d72 (deleted)
gq flag

On one of the machines running Centos i.e.

cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

i found something strange by the command aureport -x --summary

 aureport -x --summary

Executable Summary Report
=================================
total  file
=================================
19328  /usr/bin/rpm
11802  /usr/sbin/crond
7713  /usr/sbin/sshd
4201  /usr/bin/grep
1564  /usr/libexe ...
Score: 0
Pedram Masoumi avatar
CentOS 7 , OpenVPN Server Radius Plugin
vn flag

On my new openvpn server install radius plugin can not read client status. It worked on previous installation, now all things are the same, but not working.

OpenVPN Server Conf:

port 57192 
proto udp
dev tun
user nobody
group nobody
persist-key
persist-tun
keepalive 10 120
plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf
duplicate-cn
topology subnet
server 10.8.0.0 255.255.255.0
ifcon ...

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.