Category : apache

I have this debug function to show runtime errors and some messages. /** * Debug logs * @param string $msg Log message */ function logMsg(?string $msg) { error_reporting(E_ALL); ini_set(‘ignore_repeated_errors’, true); ini_set(‘display_errors’, false); ini_set(‘log_errors’, true); ini_set("error_log", SERVER_ROOT . "debug.log"); if (DEBUG_MODE) { $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); $caller = array_shift($bt); $File = basename($caller["file"]); $Line = $caller[‘line’]; error_log("$msg ..

Read more

Here is the code I’m using: <?php $im = imagegrabscreen(); imagepng($im, "C:/pathtofile/image.png"); imagedestroy($im); The images get saved but when I open them, they are just black. I’m using Apache for my server, I already enabled "Allow services to interact with desktop" in services. I have also tried using jpg instead of png. Everything just results ..

Read more

I have installed PhpMyAdmin on a Centos 8 machine sucessfully following this tutorial: https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-phpmyadmin-on-rhel-8.html I can access phpmyadmin through MY_IP/phpmyadmin. I want to change /phpmyadmin to something different, for example: /mydb Checking the internet looks like its as easy as changing the alias, so in my conf file this is what I do: /etc/httpd/conf.d/phpMyAdmin.conf #Alias ..

Read more