Latest Server related questions

Score: 0
Ben avatar
mysql not inserting through php cli
ru flag
Ben

I have a simple php script which is ran from cli. I have tried many different variations of mysql code, but regardless, the line isnt inserted in the database even though php says it is....

<?php
$link = mysql_connect('localhost', '***', '***');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
mysql_select_db('***');

mysql_query("INSERT INTO email_log (to, from, subject, headers, ...
Score: 0
Afshin avatar
How to install second primary DNS on a domain?
cn flag

So I'm testing some features in the windows server 2019 lab. I have one active directory. No need to say that the DNS server is running on the active directory correctly.

I want to add another primary DNS server to the domain but the problem is after installing the DNS role on the second server and configuring the zone with the exact name as the DNS server on the active directory and also configu ...

Score: 0
9072997 avatar
How do I stop journald from dropping blank lines?
ng flag

I have an application which logs to stdout in a format like this:

incoming request from x.x.x.x
client version is 1.2
authenticated as alice@example.com
processed 1234 bytes
closing connection

rejecting connection from y.y.y.y
client subnet is not on the list of allowed subnets

incoming request from z.z.z.z
client version is 1.6
authenticated as bob@example.com
WARN: {{lang}} is not set for bob@e ...
Score: 0
Sami Arja avatar
Postfix / mailutils Mail appears to be sent in logs, but not in the mailbox
cn flag

I've seen few of this question here but I couldn't find a solution for it.

I'm currently trying to set up Postfix with mailtutils, but I can't see my incoming emails in my mailbox, so I am not sure if there is something wrong in the process.

The mails I sent to my mail account appear to be sent in the logs as delivered but they are not received into the mailbox, not even the spam folder. The logs ar ...

Score: 0
Ninja avatar
extend volume of CentOS7 VM
kr flag

There is an issabel VM which I increased the VM hard drive from 20G to 1.07T through ESXi.

Next I add sda4 partition as new Linux LVM (following this path at step 22 ), seems I have to use vgextend [volume group] /dev/sda4 now but there is no Volume Group or at least vgdisplay,vgs,dh -f will show no VG. here is the outputs:

fdisk -l:

Disk /dev/sda: 1176.5 GB, 1176477441536 bytes, 2297807503 sector ...
Score: 0
GlenA avatar
Can memcached flush_all command only operate on part of the distributed memcached memory pool?
kh flag

I have a Drupal site with a provider that operates off one of two servers (with balancers in front of that). Each server has an allocation of memory that is assigned to memcached, and the Drupal site utilises memcached.

To solve an issue where stale content is presented after very large content deployments in Drupal I need to flush memcached (note: the content that is subsequently updated in Dru ...

Score: 0
Adam  M. avatar
Why will Firefox resolve my domain but Chrome will not
za flag

I've been setting up a LAN DNS server using DNSMasq to forward my webserver which at the moment has https and is port-forwarded by my router. I have a domain registered which resolves fine from outside my LAN and I've been addressing a NAT loopback issue for requests originating in the LAN. with enough time spent pulling my hair out after exausting ifconfig and dig I opened firefox Nightly (98) to ...

Score: 0
louie avatar
HTTP 500 errors after scheduled iisreset
ru flag

I've got 10 WS2016 servers with IIS set up identically on each, with two active applications. Occasionally, immediately after our 2am IIS recycle (configured through the recycling properties page) one of the two applications on a random server will start throwing HTTP 500 errors. The other application will continue serving requests just fine.

What I've worked out though is that it's only one cert ...

Score: 1
Nicola Pedretti avatar
Why doesnt creating a sym link from python to python 3 work?
cn flag

My goal is to make sure that python refers to python3 in my mac terminal. What i have tried so far are the following two attempts

1. Adding an alias in .zshrc

alias python=python3

after re sourcing my .zshrc file this allowed me to type python --version and get python3.

This does not work for scripts as they specify #!/usr/bin/env python and completely ignore my aliases.

2. Adding a symlink from  ...

Score: 0
Systemd limit network bandwidth for multiple services
tr flag

I have a machine with multiple systemd services running which have some network bandwidth requirements. On that same machine I have a FTP server and I need to make sure that if someone is uploading or download some files that it does not use all the bandwidth and starve the other services.

From what I've check there is now way to limite network bandwidth of specific services, I'm not sure if I sh ...

Score: 0
System32 / NDF / .etl files - safe to delete?
sd flag

I have a VM running Windows Server 2012R2 using Remote Desktop Services with about 200 users logging in on and off 24/7 - meaning, there's never a really good time to reboot and any downtime is definitely not appreciated by the users.

In trying to find out why the C drive is filling up - besides the usual largeness of pagefile and when all the user drives mount and unmount independently, from a s ...

Score: 0
Jene Flamebёrg avatar
Strongswan IKEv2 vpn on Windows 10 client. I'm getting "policy match error"
br flag

my log file:

Jan 16 22:10:46 ip-172-26-4-200 charon: 05[CFG] selecting proposal:
Jan 16 22:10:46 ip-172-26-4-200 charon: 05[CFG]   no acceptable ENCRYPTION_ALGORITHM found
Jan 16 22:10:46 ip-172-26-4-200 charon: 05[CFG] received proposals: IKE:AES_CBC_128/HMAC_SHA2_256_128/PRF_HMAC_SHA2_256/ECP_256
Jan 16 22:10:46 ip-172-26-4-200 charon: 05[CFG] configured proposals: IKE:AES_GCM_16_128/PRF_HMAC_SHA ...
Score: 0
Hexomédia avatar
Incorrect ressource allocation on OpenStack
bd flag

In our cluster, we have 4 computes running and we have an issue with the number 4.

We can't create VMs on it, we can't migrate VMs to or from that node. VMs are still perfectly working though. After a first diagnosis, it appears that there's a problem with the ressource provider.

Node is declared in the db with:

  • name: os-compute-4, uuid: d12ea77b-d678-40ce-a813-d8094cabbbd8

Here are the ressource provi ...

Score: -1
Adrian avatar
How do companies make sure resources created by an employee are not deleted when he is fired in Azure?
us flag

Correct me if I am wrong, but my understanding is that when an Azure account is deleted, all associated resources are also gone. This makes sense because else I would keep being charged for using resources I no longer have access to. However, this would also mean that the company would always have to make sure to move all created resources from that account to another before deleting the account.

Score: 0
dan pacu avatar
403 FOrbidden index with nginx
ar flag

Good evening. I have this error when I try to access my wordpress from my-no-ipdomain:port/danapcu.com (where wordpress it's installed: /var/www/html/danapcu.com). In addition, my nginx default port is 85 (so my wordpress is supposed to be accessed on this port: 85, because the port 80 is occupied by apache serving my owncloud). Well, when I acces my-noip.domain.net:18601/danapcu.com (the port is mapped ...

Score: 1
Calculation of S3’s byte-hour
id flag

S3 uses the concept of Byte-Hour in billing: https://aws.amazon.com/s3/faqs/#Billing

Unfortunately (in typical Amazon AWS style) they left some details unsaid, namely what happens in the case of partial Byte-Hours.

So here is my question in the form of an example:

Suppose I store 1TB of data at Key A in my bucket. After half an hour, I delete Key A and store 1TB of data in Key B of the bucket. Af ...

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.