Dynadot โ€” .com Transfer

How to turn register_globals on?

Spacemail by SpaceshipSpacemail by Spaceship
Watch
Impact
109
Hello all!
Most turnkey sites are coded to require register_globals to be on, well by defauly my server has it off, so turnkey sites arent working properly..

Anyone know how to turn it on?

I have root access also, but dont know any commands lol.

Thanks!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
"I have root access"
php.ini file !!
 
0
•••
As CenixHOST said, edit your php.ini file and change "register_globals = Off" to "register_globals = On". Don't forget to restart httpd after.
 
0
•••
If you have root access type these commands in a ssh terminal (Such as Putty)

1.
cd /usr/local/lib
(If you get an error not found or what ever do this)
cd usr
cd local
cd lib

2.
pico php.ini (Or another editor)
Use the Where control to find the
register_globals = Off
And change to
register_globals = On

Than
Save!!

3.
Restart apache with this command
/etc/rc.d/init.d/httpd restart

Thanks,
iNod
 
Last edited:
0
•••
Thankyou all for your replies...
iNod, i can do step 1 as you said... but then u say "pico" php.ini or something, and then save... But how do i edit the php.ini file, how do i download it, edit it, thehn upload it... im an amateur at this stuff :red: sorry.

is there some way that you can access root files in an ftp client?

Thanks all once again, looking forward to your reply!
 
0
•••
Hello,

Most servers disable root access by FTP and I suggest you don't open it up. Your server will be hacked within a few days lol.

You can DL a program called WinSCP which you can pretty much use as a FTP client. Very nice. Search google for it.

iNod
 
0
•••
you can do this by makin a custom htaccess file in the root of you hosting account
 
0
•••
j0e said:
you can do this by makin a custom htaccess file in the root of you hosting account

You can but it will give you a very long loading time on some sites. And if your host has the latest Apache it will cause errors. Apache has started to display php flags in htaccess because it was a huge security problem.

iNod
 
0
•••
You use pico or vi to edit files via telnet or ssh
There is no need for uploading and downloading, it is just a waste of time :p

If you don't have pico, you may need to build and install pine
vi should be there by default
 
0
•••
I would suggest NOT using telnet as it is not as secure as SSH and I would consider it very insecure.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back