PHP is working!
PHP Version: 8.1.33
Current directory: /home/dannelcv/simpler.dannel.co.za
Server time: 2026-01-07 01:52:22

Required Extensions:

mysqli: ✓ Loaded
json: ✓ Loaded
curl: ✓ Loaded

Database Connection Test:

Config file exists

Warning: Cannot modify header information - headers already sent by (output started at /home/dannelcv/simpler.dannel.co.za/debug.php:3) in /home/dannelcv/simpler.dannel.co.za/config/config.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/dannelcv/simpler.dannel.co.za/debug.php:3) in /home/dannelcv/simpler.dannel.co.za/config/config.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/dannelcv/simpler.dannel.co.za/debug.php:3) in /home/dannelcv/simpler.dannel.co.za/config/config.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/dannelcv/simpler.dannel.co.za/debug.php:3) in /home/dannelcv/simpler.dannel.co.za/config/config.php on line 39
Config file loaded successfully
Database connection successful

File Permissions:

config/config.php: 0644
classes/: 0755
api/: 0755
api/v1/: 0755
api/v1/index.php: 0644

.htaccess Check:

.htaccess exists
Content:
RewriteEngine On

# Handle API requests
RewriteCond %{REQUEST_URI} ^/api/v1/
RewriteRule ^api/v1/(.*)$ api/v1/index.php [QSA,L]

# Deny access to sensitive files
<Files "config.php">
    Require all denied
</Files>

<Files "*.sql">
    Require all denied
</Files>

# Enable CORS for API endpoints
<IfModule mod_headers.c>
    Header always set Access-Control-Allow-Origin "*"
    Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
    Header always set Access-Control-Allow-Headers "Content-Type, Authorization, X-Requested-With"
    Header always set Access-Control-Max-Age "3600"
</IfModule>

# Handle preflight OPTIONS requests
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]

# Security headers
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options DENY
    Header always set X-XSS-Protection "1; mode=block"
    Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit