Update: 2026-05-04 02:00:51

This commit is contained in:
Hamza-Ayed
2026-05-04 02:00:51 +03:00
parent 5dd8fe46f3
commit 2af604df7f

19
debug_paths.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
require_once __DIR__ . '/app/bootstrap/init.php';
echo "ROOT_PATH: " . ROOT_PATH . PHP_EOL;
echo "STORAGE_PATH: " . STORAGE_PATH . PHP_EOL;
echo "Is STORAGE_PATH dir? " . (is_dir(STORAGE_PATH) ? 'YES' : 'NO') . PHP_EOL;
echo "Is STORAGE_PATH writable? " . (is_writable(STORAGE_PATH) ? 'YES' : 'NO') . PHP_EOL;
echo "Current User: " . get_current_user() . PHP_EOL;
echo "PHP User: " . exec('whoami') . PHP_EOL;
$testDir = STORAGE_PATH . '/test_mkdir_' . time();
if (mkdir($testDir, 0777, true)) {
echo "Successfully created test dir: $testDir" . PHP_EOL;
rmdir($testDir);
} else {
echo "FAILED to create test dir: $testDir" . PHP_EOL;
$err = error_get_last();
echo "Error: " . ($err['message'] ?? 'Unknown') . PHP_EOL;
}