
HC 2 Configurando..
#1
Posted 23 novembro 2006 - 01:26
Ontem instalei o Host Control 2 para um cliente, olha o erro que da quando alguem loga:
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
porque e como resolver?
#2
Posted 24 novembro 2006 - 06:40
Suporte Host Control
Nele ira encontrar resposta para soluçao deste erro.
Cordialmente,
#3
Posted 24 novembro 2006 - 02:02
Caso após a instalação, você não consiga logar e apareça uma tela de erro de processamento com a seguinte mensagem de erro
Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively.
Você precisa modificar seu php.ini e alterar as opções
session.bug_compat_42 para o valor 1 e session.bug_compat_warn para 0.
Mande localizar session.bug_compat_42 no php.ini e altere os valores.
deve ficar assim:
session.bug_compat_42 1
session.bug_compat_warn 0
#4
Posted 24 novembro 2006 - 02:04
#6
Posted 24 novembro 2006 - 11:00
Se alguem porfavor não quiser ajudar, não atrapale! Estou aberto para sugestões a respeito de minha dúvida!
#7
Posted 25 novembro 2006 - 12:41
Ontem instalei o Host Control 2 para um cliente, olha o erro que da quando alguem loga:
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
porque e como resolver?

Habilite a register_globals !
register_globals = On
#8
Posted 25 novembro 2006 - 07:31
#9
Posted 25 novembro 2006 - 10:34
Se alguem porfavor não quiser ajudar, não atrapale! Estou aberto para sugestões a respeito de minha dúvida!

Já que tem cabeça dura e quer ficar mais um periodo off , faça como o colega falou, mas vou fazer melhor
procure seu php.ini
abra e edita ele
procura register_globals deve estar off, poe on
salva e sai
depois
service httpd restart
e como magica PIMBA!! agora abre o HC.
se nao sabe fazer isso o melhor que tem a fazer é procurar uma pessoa pra pelo menos configurar seu VPS
#10
Posted 25 novembro 2006 - 07:23
edit php.ini
Ctrl + W = register_globals
____________________________
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = On
____________________________
Ctrl + W = session.bug_compat_42
____________________________
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.
session.bug_compat_42 = 1
session.bug_compat_warn = 0
_____________________________
Após disso eu salvo e saio, depois dou service httpd restart...
O HC continua com o problema!
#11
Posted 25 novembro 2006 - 07:56
edit php.ini
Ctrl + W = register_globals
____________________________
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = On
____________________________
Ctrl + W = session.bug_compat_42
____________________________
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.
session.bug_compat_42 = 1
session.bug_compat_warn = 0
_____________________________
Após disso eu salvo e saio, depois dou service httpd restart...
O HC continua com o problema!

tem certesa que seu php.ini fica na pasta scripts? rode um phpinfo
#12
Posted 25 novembro 2006 - 07:58
http://www.hostcontrol.com.br
Se possível me fale por onde você acessa seu php.ini e verifique em seu servidor se ele não existe na psta scripts!
Obrigado,
#13
Posted 25 novembro 2006 - 08:07
para saber qual é o usado rode o phpinfo
#14
Posted 26 novembro 2006 - 11:38
http://suporte.hostcontrol.com.br
Caso tenha o editor Pico instalado use:
pico /usr/local/Zend/etc/php.ini
ou pode usar outro editor como vi ou namo.
Cordialmente,
#15
Posted 26 novembro 2006 - 11:44
#16 Visitante_Eduardo Coelho_*
Posted 26 novembro 2006 - 04:14
<?php
phpinfo();
?>
Faça upload para o seu FTP e rode no navegador... Lá você consegue saber onde está o seu php.ini correto.
Dificil não?
#17
Posted 26 novembro 2006 - 04:15
#18
Posted 26 novembro 2006 - 04:59
<?php
phpinfo();
?>
Faça upload para o seu FTP e rode no navegador... Lá você consegue saber onde está o seu php.ini correto.
Dificil não?

como ele mesmo falou, dificuldades técnicas, fazer o que? deixa quieto
#20
Posted 26 novembro 2006 - 09:18
pico $(php -i | grep 'Configuration File' | awk '{print $6}')
Assim ja ira abrir o PHP.ini onde quer que esteja e qual que seja...
Simples nao?

Help










