Diagnóstico CyberDrill
Use esta página apenas para teste e apague depois.
1) Ambiente PHP / Sessão
Warning: session_start(): Session cannot be started after headers have already been sent in /home/improve/public_html/diag-antigo.php on line 42
| PHP Version | 8.1.34 |
| display_errors | 1 |
| error_reporting | 32767 |
| session.status | Inativa |
| session.ok (grava/leitura) | ✅ OK |
| session.save_path | /var/cpanel/php/sessions/ea-php81 |
| session.save_path é gravável? | ✅ SIM |
| headers_sent() | ✅ JÁ ENVIADOS (pode impedir redirects) |
| ob_get_level() | 0 |
| timezone | UTC |
| ext/openssl carregada? | ✅ SIM |
2) Caminhos / Arquivos essenciais
| Arquivo | Existe? | Detalhe |
|---|
| index.php | ❌ | — |
| index.html | ❌ | — |
| login.php | ✅ | legível |
| verify.php | ✅ | legível |
| verify_code.php | ✅ | legível |
| painel.php | ✅ | legível |
| PHPMailer/PHPMailer.php | ❌ | — |
| PHPMailer/SMTP.php | ❌ | — |
| PHPMailer/Exception.php | ❌ | — |
| PHPMailer/src/PHPMailer.php | ✅ | legível |
| PHPMailer/src/SMTP.php | ✅ | legível |
| PHPMailer/src/Exception.php | ✅ | legível |
| .htaccess | ✅ | legível |
| getcwd() | /home/improve/public_html |
| DOCUMENT_ROOT | /home/improve/public_html |
| REQUEST_URI | /diag-antigo.php |
3) .htaccess (principais 50 linhas)
# === Roteamento por domínio ===
# Quando o visitante acessa clienthunters.com.br, servir os arquivos
# da pasta /public_html/clienthunters.com.br/ em vez da raiz /public_html/.
<IfModule mod_rewrite.c>
RewriteEngine On
# clienthunters.com.br -> subpasta dedicada
RewriteCond %{HTTP_HOST} ^(www\.)?clienthunters\.com\.br$ [NC]
RewriteCond %{REQUEST_URI} !^/clienthunters\.com\.br/
RewriteRule ^(.*)$ /clienthunters.com.br/$1 [L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# deborajoma.com.br -> subpasta dedicada
RewriteCond %{HTTP_HOST} ^(www\.)?deborajoma\.com\.br$ [NC]
RewriteCond %{REQUEST_URI} !^/deborajoma\.com\.br/
RewriteRule ^(.*)$ /deborajoma.com.br/$1 [L]
</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
4) Teste de rede SMTP (porta 587/465)
❌ Falhou conectar a smtp.gmail.com:587 (101: Network is unreachable)
❌ Falhou conectar a smtp.gmail.com:465 (101: Network is unreachable)
5) Sugestões automáticas
- Headers já enviados: redirecionamentos header('Location: ...') podem falhar. Remova echo/HTML antes do header.