Latest Server related questions

Score: 0
Apache2 - Only home url is found
in flag

I have created a laravel 8 application and installed apache2.

My configuration files look like the following:

000-default.conf

<VirtualHost *:80>
    # The ServerName directive sets the request scheme, hostname and port that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must a ...
Score: 0
Loop through var_files variables in ansible
us flag

I have a playbook that calls a role and is supposed to import apache vars for websites. The issue is that when I look into ports.conf I only see the line for website1. Website2 is never called. Any help would be greatly appreciated.

---
- hosts: all
  vars_files:
   - [ "./roles/apache-vhost/vars/website1.yml", "./roles/apache-vhost/vars/website12.yml"]
  roles:
   - apache-vhost

/roles/apache-vhost/v ...

Score: 0
GRE Tunnel subnet /29
vn flag

I watched this tutorial: https://www.lowendtalk.com/discussion/156850/howto-tunnel-ddos-protected-ovh-ip-to-vms-in-other-datacenter

And I have problems with the GRE tunnel, I created a VPS on server 2 with IP from the / 29 subnet (x.198), only I can't connect to the VPS. If I try to connect from server 1 to the VPS server created on server 2 it works (ssh x.198).

IP SV1: x.158
IP SV2: x.242
IP /29: ...
Score: 0
Delete all folders on all drives with "foo" OR "bar" in the folder name with batchfile
jp flag

I am trying to delete all folders on all drives with the above naming pattern, however only on the first folder level, i.e directly below the drive letter, like for example:

F:\this folder's name contains FOO and should be deleted

...without confirmation nor error message (e.g. in case no folders are found), with a batchfile.

I've found this: delete all folders with tmp in name using batch file and am w ...

Score: 0
How do I prevent docker from exiting when my app crashes
us flag

I need to debug an application that is crashing inside a docker, how do I achieve that the docker does not stop when the app crashes, allowing me to -it inside and try starting the app manually?

Score: 0
Bernie K. avatar
ls command that shows AM/PM
in flag

I'm using a CentOS 7 OS, configured based on AM/PM. Is there a linux command line (like ls --full-time) that shows full time information including AM/PM?

Below example does not show AM/PM:

# ls --full-time
# -rw-------. 1 root root 125274133976 2021-06-10 05:43:58.348897593 -0700 file1.tar.gz
# -rw-------. 1 root root 187085036220 2021-06-10 08:28:56.257324419 -0700 file2.tar.gz
Score: 1
Let openldap users change password with passwd in centos, i broke it
in flag

Tried to do the above with this tutorial:

https://www.unixguide.net/content/openldap-allow-users-change-their-password-unix-passwd-command

So I created this ldif:

dn: olcDatabase={2}hdb,cn=config
changetype: modify
add: olcAccess
olcAccess: to attrs=userPassword by self write by anonymous auth by dn.base="cn=ldapadm,dc=bbb,dc=local" write by * none

add: olcAccess
olcAccess: to * by self write by dn.b ...
Score: 0
Zagleon avatar
Contact WebRelay behind cellular modem
tr flag

We are trying to open a gate at a remote client site from our server. We were wanting to get this relay (WebRelay) set up behind a cellular modem. The issue is that I can no longer contact the relay from the typical ipv4 that I would normally have access to on a wired connection.

This is an issue outside my skill-set. My assumption is that I will have to connect the modem to a vpn and access the relay ...

Score: 0
Creating a LoggingServiceV2Client with custom credentials
sa flag

I've been working on a C# desktop app that should be able to connect to a GCP account and pull/query the Logs there. I want this to be usable on computer, or to be able to access different accounts, so I don't want to rely on the Private key stored on the machine. Instead, I'm going to pass in an access token manually. This means that I cannot use the default "LoggingServiceV2Client.Create()" route to bu ...

Score: 0
Trying to get sudoers working on openldap/centos7
in flag

I was following this tutorial here:

https://kifarunix.com/how-to-configure-sudo-via-openldap-server/

A lot of it made sense, but still new to openldap so some of this is cryptic too. I have the openldap running with users authenticating on other machines even working with phpldapadmin. So it was time to get sudoers working for some users. I ran the sudoers2ldif command and got a file similar to what w ...

Score: 0
slammedacura27 avatar
Do I need to set a MX record with both my domain registrar & hosting?
br flag

I have a GoDaddy registered domain and am using the GoDaddy O365 email.

I am moving to a different host for my website, so I have changed the A record in GoDaddy's settings to point to my shared hosting IP. The nameservers are still set to GoDaddys, with all the original settings for e-mail still there too (SPF, MX records, etc)

E-mail still works, as well as the website, but whenever I try to send  ...

Score: 0
Connecting Computers accross different subnets or IP addresses
de flag

I have a setup that involves:

  • Cable modem/router at 192.168.10.1
  • Wireless Router 1 at 192.168.20.1
  • Wireless Router 2 at 192.168.30.1

The wireless router are connected to the Cable Modem via the WAN port. Singly they work great, but the problem occurs when trying to access a computer or resource that is located under a different router from another.

For an example, a computer connected on Wirele ...

Score: 0
Ben avatar
xfs superblock corrupted after power cut
ng flag
Ben

Like others before me the superbock on my xfs drive has become corrupted. I've tried xfs_repair and xfs_repair -L to restore the drive but both report back the same result:

Phase 1 - find and verify superblock...
superblock read failed, offset 0, size 524288, ag 0, rval -1

fatal error -- Input/output error

{mkfs.xfs -Nf /dev/sdb1} reports back the following:

meta-data=/dev/sdb1              isiz ...
Score: 0
Khoa Le Anh avatar
How to proxy IMAP/POP3 connection to appropriate backend mail server by domain
ng flag

I have system with multiple email server (exchange, zimbra) for multiple domain. So when users of domain A want connect to server for getting email they have to use IP of server A (Ex: 192.168.10.253), same way with user of domain B, they have to use IP of server B (Ex: 192.168.20.253).

I want simplify connection between users and mail server by create a proxy server for IMAP/POP3 connection but  ...

Score: 0
Wordpress on IIS crashes intermittently
kz flag

My wordpress site running on IIS has been crashing every once in a while with "There has been a critical error on your website" If I restart IIS or the AppPool, it starts working again. It's a pretty basic wordpress site, just a few basic plugins

When I look at the php error log I find this:

[11-Jun-2021 05:05:56 UTC] PHP Warning:  require_once(C:\inetpub\wwwroot\wp-includes\s): failed to open stream: ...

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.