serverfault.com

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Common Server issues – FAQs and answers from those in the know

Install CakePHP [closed]

25 April 2026 @ 4:42 am

I need help to install CakePHP. This is my code: Its to be used on h() in the code <?= require_once 'app/config/config.php'; error_reporting(E_ALL); ini_set('display_errors', '1'); $UserName = $_POST['UserName']; $PassPhrase1 = $_POST['PassPhrase1']; if (@!$UserName) { echo "Användarnamn (saknas)!"; } if (@!$PassPhrase1) { echo "Lösenord saknas!"; } if (@isset($UserName, $PassPhrase1) AND !$_POST['submit']) { // Hello, World! while (h($_POST['submit'])) { echo "INSERT INTO users (UserName, PassPhrase) VALUES ('$UserName', '$PassPhrase1')"; echo "Test"; break; } } ?><?= echo "any extra mambo jambo here!"; ?><?= echo "even more"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=de

How to solve the 429 rateLimitExceeded issue [closed]

24 April 2026 @ 11:52 pm

I am new to this. Error free with the free 90 day trail on google cloud using simple API, but now with paid basic plan every run result in 429 resource exhausted error. what the best solution to get this to work again... ?

Cloudbase-init doesn't assign IP to Windows 2019

24 April 2026 @ 4:43 pm

I use Ansible to provision Windows VMs on VCenter and we currently evaluating cloudbase-init. With our workflow it's not possible to know the MAC of the VM before we build the VM. So, our metadata look like this: network: version: 2 ethernets: id0: match: name: "Ethernet*" addresses: - 192.168.0.100 gateway4: 192.168.0.254 nameservers: addresses: - 192.168.0.1 - 192.168.0.2 However, cloudbase-init doesn't configure the IP and the logs have the following: INFO cloudbaseinit.init [-] Executing plugin 'NetworkConfigPlugin' ERROR cloudbaseinit.init [-] plugin 'NetworkConfigPlugin' failed with error ''NoneType' object has no attribute 'lower'' ERROR cloudbaseinit.init [-] 'NoneType' object has no attribute 'lower': AttributeError: 'NoneType' object has no attribute 'lower' ERROR cloudbaseinit.init Traceback (most recent call last): ERROR cloud

Why my QEMU VM see two displays?

24 April 2026 @ 3:57 pm

I am running Zorin Linux 18 in a QEMU vm that uses: qemu-system-x86_64 -machine pc-q35-11.0 \ -enable-kvm -m 16G -smp 4 -cpu host \ -audiodev pa,id=snd0 \ -device intel-hda -device hda-duplex,audiodev=snd0 \ -device virtio-gpu-pci,hostmem=2G \ -drive file=/mnt/wd26TbLinux/qemu_vms/zorinux/zorinux.qcow2,format=qcow2 \ -netdev bridge,id=hn0,br=br0,helper=/opt/qemu_v11.0.0/libexec/qemu-bridge-helper \ -device virtio-net-pci,netdev=hn0,id=nic1 \ -boot order=c I am using qemu 11 and my VM sees 2 displays... Why? See Andrei answer. I just wanted to add that to stop the vga "offered" by the "machine" it is necessary to place -vga none \ as with qemu-system-x86_64 \ -machine q35,accel=kvm \ -vga none \ -nographic \ -serial mon:stdio \ Thanks in advance

(JavaScript) dblclick BUT as an action perforerad twice

24 April 2026 @ 1:43 pm

you!! I am wondering. How can I create this bug red BUTTON that is fired twice? In other words, it should START after having being pushed twice as ”two-single-clicks” My code (cider): .addEventListener(”dblclick”, myFunction) { function myFunction() { let ballsicle = {}; ballsicle.name = ”Annika Andersson”; ballsicle.teardrop = function EatMe() { }; } } Thanks in advance!

AWS PA-VM with GWLB gets no packets

24 April 2026 @ 1:39 pm

I have a Palo Alto PA-VM in AWS set up for a "bump-in-the-wire" firewall for traffic in the same region but different VPC and different account with a Gateway Load-Balancer (GWLB) in between. The short version of this question: does a proper GWLB setup (same region, different accounts) for a "hairpin", "bump-on-the-wire", "north-south" traffic inspection require extra pieces (such as a TGW or other intermediary step) for packets to actually reach the firewall? Is there another technical limitation I'm overlooking? I tried this same setup in my test environment first (all in the same region using different VPCs, main difference was everything on the same account) and it worked fine. I'm cheap, so I swapped the PA-VM for a Linux EC2 at that time. The current setup will have traffic moving as follows: random internet client --> IGW (data vpc) --> VPCendpoint (data vpc, for GWLB) --> GWLB (fw vpc) -->

SSH over Tor Hidden Service - asks for password

24 April 2026 @ 5:37 am

Server runs Trixie. Client runs Trixie. Local connection, my RSA key is used, passwordless login. Tor connection (Tor Hidden Service), I am asked for password. Also over Tor connection, but not local: SSH proxy fails to connect. It feels like there is a MITM attack. But could also be an SSH-over TCP issue? All of this worked under buster. Not sure about bookworm.

Using Ansible aws_ec2 Dynamic Inventory to create nested host vars

23 April 2026 @ 8:49 pm

I'm tying to build an Ansible inventory using the Ansible amazon.aws.aws_ec2 plugin with nested hostvars. I want the resulting inventory to resemble: all: children: aws_ec2: hosts: myhost.compute.internal: .... myvargroup: mykey: 10-0-1-1 In my aws_ec2.yml file I have plugin: amazon.aws.aws_ec2 strict: True filters: tag-key: dynamic_node_role compose: foo: "'bar'" myvargroup: mykey: private_ip_address | regex_replace ('\.', '-') However when I run ansible-inventory -i aws_ec2.yaml --list -y instead of rendering the value of the expression it renders the expression itself. myvargroup: mykey: private_ip_address | regex_replace ('\\.', '-') NOTE: ansible replaced the \. with \\. in the output. The ansible documentation seems to suggest that it shou

Flash drive cannot be mounted after format with mke2fs (debian 10 or Windows ) [migrated]

23 April 2026 @ 1:33 pm

I formatted a drive on a NAS qnap TS209 flash drive of 32 GB in ext2. image image Attempting to mount on debian 10 and Windows fails. Any ideas? image

Having terms show up prior to button [closed]

23 April 2026 @ 12:58 pm

<INPUT TYPE=”text” NAME=”username” CLASS=”username” REQUIRED> <INPUT TYPE=”email” NAME=’emailVerify’ CLASS=’emailVerify’ REQUIRED> <INPUT TYPE=’password’ NAME=’password’ CLASS=’password’ REQUIRED> <BUTTON TYPE=’submit’ ONCLICK=”$('.cuteNess').toggle()” NAME=”submit”>Create account</BUTTON> <DIV CLASS=’cuteNess’></DIV> The terms should toggle visibility upon BUTTON click! Updated inquiry: ONCLICK=’document.getElementsByClassName(”utenhet”).innerHTML = ”Terms of Service<BR>This game (\”monkacres.se, M/A\”)<BR>Violation of the terms will produce:<BR>An error page/message”’ />Create account!</BUTTON><BR /><BR /> <DIV CLASS=’utenhet’ /></DIV> Is this the correct syntax even?