I have a legacy system in which Apache 2.2.34 (linux) is installed along with php 5.3.29 (CLI). I just want to upgrade my apache to 2.4.x so that I will be able to use php 7. I have tried searching for the same but majority of sites provide solution for CentOS or Ubuntu. I’m new to Linux so I’m a
Tag: linux
Concatenating hardcoded directory and user-created text file adds root-level paths when it shouldn’t
I have written a script to allow a restricted user access to deleting files on a production webserver. However, to prevent fat-fingering issues leading to accidental filesystem deletion/problems, I have hard coded the base directory in a variable… But the final result is not properly creating the desire…
IPv6 example program fails on connect()
IPv6 example program fails on connect() I arranged the server argument to be evaluated by inet_pton() if numeric, otherwise, it goes through getaddrinfo(). inet_pton() sets up the address and it works. getaddrinfo() does not, apparently, it dies in connect (hangs up). The example program is a simple web page …
How to develop dialog gauge in tcl / tk that gets loop value and updates in scale widget by moving it
I’m trying to make a progress bar dialog like GNU/Linux Xdialog –gauge Apparently you should get a value, which is updated for ‘one second’, from time to time. This increment is done through a for loop already pre-configured to give the progressive count. From my tests I did, and how f…
How to use wget to access two websites, but sending output from the first website to `/dev/null`?
There is a website that allows for downloads, but it appears that I have to access the main site first, establish the cookie/session which is done by a mere visit, then download the file. In other words: need to be visited in order. I can download by calling: but this requires me to manually remove downloads …
Geting the private ip for the docker network from within the container to configure xdebug remote_host
So using docker and docker-compose I like to provide tools built into the containers so that other people in the development team don’t have to struggle with setting up bits and bobs. In this specific case I’m having issues configuring xdebug. It works absolutely fine using connect back when debug…
How can i implement escapeshellarg inside a URL?
The user supplies two variables via a HTML form called username and name. They are used to execute a shell command which is currently unsafe. I have the following PHP code: I am trying to implement escapeshellarg, but can’t get it working by following the official PHP documentation, i have tried: But th…
Why is the pthread_mutex_t struct all zeros in gdb?
What causes pthread_mutex_t struct to be all zeros? Core of a deadlocked ARM test application in a gdb session: Answer pthread_mutex_t is used for all mutex types and some of its members are only used for specific mutex types. owner member is set for at least the following mutex types: PTHREAD_MUTEX_ERRORCHEC…
Calling printf() in assembly causes a ‘floating point exception’
I have the following code: I compile it with nasm -f elf64 1.asm and link it using ld -dynamic-linker /lib/ld-linux-x86-64.so.2 1.o -o 1 -lc. When I execute the binary, I get printf() doesn’t always fail when I call it in assembly code. Removing printf() calls from printax and printbx gives me Update: T…
Undefined symbols for architecture x86_64: “_read_line”, referenced from: _insert in inventory-82371b.o
Here is the callback with -v and warnings suppressed. Here it is without warnings suppressed. But I don’t believe that they are causing the issue. Here is the code. It is a program for a very simple data base from a text book. I truly believe my problem is with the compiling. It’s been a while sin…