Help - Search - Members - Calendar
Full Version: PHP.INI File
The Planet Forums > Control Panels > cPanel/WHM
ideahunter
Hi All,

Hoping someone can help me with this.

Thanks to a third-party who helped in setting my server up, everything is now running fine. However my PHP application does not. When I compare the PHP info from the server here, to where I was using a hosting account previously one difference is that register_globals is turned off here.

Question -- how do I go about turning this on? I've been searching the forums, but can't find any "How To". I tried connecting via Putty to the console, but I keep getting an "Access Denied".

My assumption is that I need to modify the php.ini file and turn register_globals on then re-start Apache -- is this correct?

Thanks,

Mohammed
REBIS
Correct, you edit register_globals in php.ini, however, this is not preventing you from connecting via SSH with Putty. Depending on your firewall and SSH config, Putty may not be configured properly or you may have been banned for too many bad attempts, or perhaps you have the wrong id/pw.

Btw, what PHP app is it?
ideahunter
QUOTE (REBIS)
Correct, you edit register_globals in php.ini, however, this is not preventing you from connecting via SSH with Putty. Depending on your firewall and SSH config, Putty may not be configured properly or you may have been banned for too many bad attempts, or perhaps you have the wrong id/pw.
 
Btw, what PHP app is it?


Hi Rebis,

Thanks -- I'll have to see what's happening with Putty... Though I'd like to fix this in the php.ini, I saw a post where it could also be modified in the .htaccess, which is what I tried and it did work.

The app. is something that I custom developed.

Thanks,

Mohammed
web1
As a test you can try to telnet to SSH port 22 on your box. You should get back a short string in plain text saying that you have reached "OpenSSH". That will tell you if any firewall is blocking you. You may have a different port for SSH, you need to ask the guy who set it up, or possibly SSH isn't running.

telnet xx.xx.xx.xx 22
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.