Latest Server related questions

Score: 0
pileup avatar
PHP configuration file path has no value on IIS
th flag

When I output phpinfo() it shows that PHP configuration file path has no value.

It does however have a loaded configuration file path, but whenever I edit the file there nothing gets updated, so maybe the loaded file is some sort of cache?

How can I set path to the php.ini and also make the changes really updated?

Score: 0
Abeloser avatar
Apache2 ProxyPass/ProxyPassReverse Not Working
ga flag

I am trying to redirect a online website such as amazon.com for example to a website using cloudflare such as chat.openai.com. The problem is that you can not obtain the IP address from a website using cloudflare which means we can not use a DNS since it needs the IP address where it needs to redirect to.

So I found something on Apache2 using Kali Linux VMware that uses a Reverse Proxy. I don't 1 ...

Score: 0
Max Thorley avatar
Azure PHP8 exposing php code
pm flag

My website runs fine BUT when i add ".PHP" in uppercase to my URL e.g. www.example.com/test.PHP my php code is exposed on the website source code.

I'm running PHP8 on azure.

My NGIX config are as follows:

server {
#proxy_cache cache;
#proxy_cache_valid 200 1s;
listen 8080;
listen [::]:8080;
root /home/site/wwwroot;
index  index.php;
server_name  example.net www.example.net; 
port_in_redirect off; ...
Score: 0
seriously avatar
Can access truenas server with ipaddress
cg flag

I am setting up truenas for the first time and I am having some networking issues. Hardware setup looks like this: server that is running Truenas is connected to a switch via ethernet cable => a different PC is connected to the same switch via ethernet. Truenas setup: I disabled ipv4 dhcp and set a static alias "192.168.4.3/24", I set ipv4 gateway to "192.168.4.1". Access pc setup: I assigned t ...

Score: 0
Sharon Creech avatar
htaccess: I need urgent help to remove %3f behind via form submit query generated urls
sj flag

3 years with hosting at a2hosting. Today I noticed that every form query ends with %3f at the end of the generated url, which makes a 404. This happened suddenly.

This is my htaccess code that works for a years withotu any issue. It remove .php as extension, remove ?check= and replace it with /

# To externally redirect /site.com/foo.php?find=123 to site.com/dir/foo
RewriteCond %{THE_REQUEST} ^GET\s([^ ...
Score: 0
Gonzalo Cao avatar
Bacula fileset wildcards: how include /folder/(arbitrary string)/uploads but exclude /folder/(arbitrary string)/whatever/uploads
cn flag

I'm creating an exclude rule for bacula so it doesn't take care of some cache and temporary uploads folders inside a filesystem. But I'm failing to write it

Suppose this filesystem

/filestore/user1/
/filestore/user1/uploads
/filestore/user1/user_files/uploads
/filestore/user2/uploads
/filestore/user1/user_files/

Main backup rule says

File = /filestore

And exclude rule

wilddir = "/filestore/*/uploa ...
Score: 0
LucG avatar
What would happen if I rm -rf on a mounted gcsfuse directory
cn flag

Let's say I have a mounted bucket at path ~/path/to/mount/point on my local machine. What would happen if I rm -rf ~/path/to/mount/point. Only the mount point directory would be deleted or also all its content (hence all the bucket content)?

I don't want to try this command on the bucket I am currently working on.

Score: 0
Jackie avatar
systemd-socket-proxyd[1076]: Failed to connect to remote host: Permission denied
az flag

I have a RHEL 6 running a rdp forward service. And now I would like to migrate to RHEL 9. But xinetd is no longer available in RHEL 9. I try to setup using systemd but failed with:

systemd-socket-proxyd[1076]: Failed to connect to remote host: Permission denied.

I have created two files for the redirect:

  1. rdpforward.service:
[Unit]
Description=RDP Forward
Requires=network.target
After=network.t ...
Score: 0
Jason Hall avatar
UTMStack: AD Audit Integration
fr flag

I am trying to enable the AD Audit integration but I'm getting an error "Windows events are not being logged"

I have the agent installed on the Domain Controller that i am pointing it to and i can see the winlogbeats logs coming in ok.

Score: 0
javanerd avatar
How can it be explained that /proc/uptime does not match ctime of system files?
sd flag

I have a small webspace (PHP + MySQL). Nothing special.

I can read /proc/uptime using PHP and it returns:

51967189.77 1731371689.58

So the uptime is 601 days (51967189 / 60 / 60 / 24).

I have also listed the files in the /dev folder. On the left there is the creation time (d.m.Y).

17.03.2023 .
17.03.2023 ..
17.03.2023 full
28.07.2021 log
17.03.2023 null
17.03.2023 random
17.03.2023 tty
17.03.2023 u ...
Score: 0
Origin avatar
Is there a way to use a wildcard with a suffix for DNS records in Cloudflare?
bv flag

Suppose there is a domain .example.com. I want to separate it into 2 parts eg:

*-new.example.com -----> IP1

such that all dns with suffix -new point to IP1

*-old.example.com -----> IP2

such that all dns with suffix -old point to IP2

I tried this but giving *-new.example.com in cloudfare is not sending the request to IP1

Is there a way that this can be achieved?

Score: 0
Not able to decrypt traffic with tshark and curl
in flag
  • Run tshark in background tshark -i any -w file_name.pcap -f "(port 443 or port 10002)" on server machine
  • Run curl command on client machine after setting export SSLKEYLOGFILE=ssl_key_file_log.txt
  • curl exits, tshark process is terminated
  • Read generated pcap file using tshark -r file_name.pcap -o "ssl.keylog_file:ssl_key_file_log.txt" -o ssl.debug_file:debug.txt -Px > output.txt

Issue: output.txt ...

Score: 0
Mah_Bar avatar
Can not modify Remore Procedure Call (RPC) service
hr flag

I have an admin account on my windows, and I used to disable the RPC service before, but recently I can't even modify that. It is permanently disabled, and I can't change its properties. Does anyone have a clue to tell me what could be the reason?

RPC Service is disabled for editting

Score: 0
Individual101 avatar
Usijg sudo credentials with veeam and solarwinds times out
id flag

I have a new physical RH 8 server with NIST 800171 policies applied to it. When I try to install Veeam agent from our windows machine, I get an error "Cannot send data because the terminal is not bound to channel" and when I check the logs, it authenticates with the veeam user I created but then times out after 7-8 minutes. It doesnt go any further than the initial login.

Mar 20 12:07:15 SERVER s ...

Score: 0
LeperAffinity666 avatar
Trying to access to my server's Cpanel (:2083) gets resolved as localhost:2083, not found
sh flag

I'm currently working on a Linode Ubuntu 20.04 VPS with a cPanel installation. Upon trying to access to the control panel (<server_ip>:2083), the browser resolves the IP to localhost:2083 and fails to open the control panel.

I've setup my /etc/hosts file as follows, according to the explanation in this Linode guide:

# /etc/hosts
127.0.0.1               localhost
<vps_ipv4>              &l ...
Score: 0
How to repair an XFS volume in a RAID array
us flag

In a data server, we have a RAID array of 5 disks joined in an XFS filesystem. The dmesg output is:

IPv6: ADDRCONF(NETDEV_CHANGE): enp134s0f0: link becomes ready
XFS (sda2): Mounting V5 Filesystem
XFS (sda2): failed to locate log tail
XFS (sda2): log mount/recovery failed: error -74
XFS (sda2): log mount failed
clocksource: timekeeping watchdog on CPU21: hpet retried 2 times before success
clocksou ...
Score: 0
Paranoid Altoid avatar
Using AWS Blue/Green deployment, how do I modify the staging database?
fi flag

AWS has rolled out a Blue/Green Deployment feature for RDS, allow you to create a staging (green) database that's in parallel with your production (blue) database. Their documentation specifically says you can make changes and test them out, however:

  • It's readonly by default
  • It's got replication, syncing the green to the blue
  • I can't create a SUPER user to disable readonly mode or disable replication.
Score: 0
How to add a confirmed O365 domain as an Exchange Online accepted domain?
in flag

A little background on our AAD/O35 tenancy:

  • We have domainA as our primary domain. This is used for SSO, our primary email addresses, etc etc.
  • We acquired another business. One of their domains (domainB) was listed in the previous parent company's AAD/O365 tenancy. The previous owner removed it from their AAD/O365 tenancy, freeing it up for us.
  • We ran through the O365 "Add Domain", and set it up for E ...
Score: 0
Stuart William avatar
Nginx/PHP-FPM Server often 521 error
cv flag

I have problem with my server since its ended up with 520/521 error. However, this only happen in a few seconds then its normal again. I have no idea where the problem is.

The SSH is running well, here is the uptime

15:25:52 up 10 days, 9:07, 2 users, load average: 2.17, 2.71, 2.98

This is my PHP-FPM settings

pm = ondemand
pm.max_children = 30
pm.start_servers = 0
pm.min_spare_servers = 1
pm.max_s ...
Score: 1
asasa178 avatar
syslog-ng filter log by frequency to destination file
sz flag

I have a syslog-ng that receives too many logs and I am trying a way to 'sample' them using some filter. I assume editing the /etc/syslog-ng/syslog-ng.conf with something like log { source(s_udp514); filter(every XXmin); destination(d_udp514); };

Where filter(every 15min) will write only on XXmin to destination. Do you know how I can achieve it?

Score: 1
Auditd - Don't log events from salt-minion
br flag

I'm updating our Auditd rules (Red Hat Linux) to log all tty/interactive commands from all users. That part works no problem.

What I'm trying to do now is to exclude commands issued by our salt-master that are executed on one of our salt-minions. These events are already logged in the audit log on the salt-master server, so they do not need to be duplicated on the minions.

I'm tried looking at the ...

Score: 0
How to find the cause of a server kernel panic?
us flag

Our high-load server is in kernel panic. How can we identify the cause and correct it?

It is a Dell PowerEdge R940 with 256GB ram and 20TB disk array with the root in a SSD disk. Linux CentOs 7 system. Trying to reboot I just can get the next two kernel panic messages: kernel panic 1 kernel panic 2

I will appreciate any help.

Score: 0
EliasPukllay avatar
Ubuntu server 18.04 samba pdc
pk flag

The problem I have is that when I want to connect a windows 10 client with a samba pdc server I get these errors: [client][1] error trying to join domain, specified domain does not exist or cannot be contacted [Server][2] status=daemon 'smbd' finished starting up and ready to serve connections This is the smb.conf configuration:

[Conf-smb-1][3] [Conf-smb-2][4]

With the hosts: [host-config][5]

The two m ...

Score: 0
momi bhatti avatar
How to edit daily crontab
tt flag

What is the line, or lines, you would add to your crontab file to run the script /etc/cron.daily/logrotate every 3 hours on Friday, Saturday, and Sunday but only once per day at midnight on the other days of the week? What would be the command for this?

Score: 1
Lucas Veiga avatar
Using Wireguard to route traffic via server
cn flag

I'd like to use Wireguard on my VPS server to tunnel my http/https traffic and have a fixed IP.

I tried using the tutorial on the Digital Ocean (https://www.digitalocean.com/community/tutorials/how-to-set-up-wireguard-on-ubuntu-20-04) but I can't make it work. I installed the Wireguard server properly and on the Desktop as well.

On my server:

[Interface]
Address = 10.8.0.1/24
Address = fd24:609a:6c1 ...
Score: 0
Diogo Jesus avatar
GPO VBS Script does not run at startup
kp flag

I need to setup a GPO that execute a VBS script at Startup. I already create a script and test it without GPO and works perfectly, but when I do gpupdate /force and restart computer, nothing changes. Event viewer has no erros or warnings about Group Policy, in rsop.msc I have no errors too but Last Run collum is empty. rsop.msc result GPO rsume

EDIT: After update windows server I think I solved the sys ...

Score: 0
Serhii avatar
openLDAP / Sasl - ldap_sasl_interactive_bind_s: Local error (-2)
cz flag

I configure openldap with sasl bind.

Trying connect:

# ldapsearch -v -H ldaps:// -Y PLAIN -U [email protected]

But getting error:

ldap_sasl_interactive_bind_s: Local error (-2)
  1. I create a config file /etc/sasl2/slapd.conf:
pwcheck_method: auxprop 
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 
auxprop_plugin: sasldb 
  1. Sample server and client show successful authentication.
# sasl2-sample-server ...
Score: 0
sarkolata avatar
VMWare ESXi Web Client access dies after some time
cv flag

After applying IP filters on VMWare esxi's firewall settings for Web Access / Web Client rules, the allowed IPs work fine for some time like 5 hours.

Only the IP addresses I allow can access the webclient.

However, after some time I no longer can accesss the web client. It's like the port is closed.

What works is that I access the esxi shell using the KVM my hosting company provides, and disabling and  ...

Score: 0
Is there an easy way to link AWS Cloudfront authorization to Google Workspaces?
ss flag

Is there an easy way to link AWS Cloudfront authorisation to Google Workspaces?

I'm trying to achieve single sign on to a Cloudfront hosted static website such that anyone with a corporate email address (from google workspaces) can sign in.

What I understand so far is that something like this should be achievable via Lambda@Edge dialling out to Google OAuth 2.0.

But at this point the trail goes cold. ...

Score: 0
Sujit Baniya avatar
How to ease AWS deployment with three Elastic Beanstalk applications dependent on each other
cx flag

I have an application that has three Elastic Beanstalk applications for a single app to run.

App 1 - Scala application containing interfaces to be used as a library

App 2 - Scala application containing all business logic and RDS connection using VPC and other security groups as required. It's dependent on App 1

App 3 - Laravel/PHP application containing the frontend/web part of the application and is d ...

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.