Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Installation and Setup Help

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-19-2012, 05:34 PM
mthw mthw is offline
Junior Member
 
Join Date: Apr 2012
Posts: 12
Default Please Consider turning off register globals if possible...

Good evening all, alsto in the site, this is displayed:

Please Consider turning off register globals if possible...

What should I do?
Reply With Quote
  #2  
Old 04-19-2012, 08:53 PM
mathman mathman is offline
Member
 
Join Date: Aug 2011
Posts: 34
Default

That's a setting that can be turned off in the php.ini file. Turning it off is recommended due to security issues that can arise from having it turned on. If you don't have any php programs that require it being on then turning it off would be a good idea for future compatibility - PHP 5.4 I think has removed that capability.

To turn it off, search for the string 'register_globals' in the php.ini file and change it from 'On' to 'Off'. After saving the file, restart the webserver so the change is recognized.
Reply With Quote
  #3  
Old 04-20-2012, 03:19 AM
mthw mthw is offline
Junior Member
 
Join Date: Apr 2012
Posts: 12
Default

Quote:
Originally Posted by mathman View Post
That's a setting that can be turned off in the php.ini file. Turning it off is recommended due to security issues that can arise from having it turned on. If you don't have any php programs that require it being on then turning it off would be a good idea for future compatibility - PHP 5.4 I think has removed that capability.

To turn it off, search for the string 'register_globals' in the php.ini file and change it from 'On' to 'Off'. After saving the file, restart the webserver so the change is recognized.
Where can I find the php.ini file.

www. my domain. com / / ticket / and then ?
Reply With Quote
  #4  
Old 04-20-2012, 01:38 PM
mathman mathman is offline
Member
 
Join Date: Aug 2011
Posts: 34
Default

Depends on the system. The Linux systems I administer have it in /etc/php5/apache2 (system path, not web path). On a Windows server I'm not sure where it's located. If you're working with a hosting company, or you don't have 'root' type privileges you'll need to talk to the system administrator about it. Or check into whether or not it's one of the settings that can be adjusted using a .htacess file - been a while since I've done that so I'm not clear enough on the details to give you any information on how that's done.
Reply With Quote
  #5  
Old 04-20-2012, 01:49 PM
mthw mthw is offline
Junior Member
 
Join Date: Apr 2012
Posts: 12
Default i have linux...

Quote:
Originally Posted by mathman View Post
Depends on the system. The Linux systems I administer have it in /etc/php5/apache2 (system path, not web path). On a Windows server I'm not sure where it's located. If you're working with a hosting company, or you don't have 'root' type privileges you'll need to talk to the system administrator about it. Or check into whether or not it's one of the settings that can be adjusted using a .htacess file - been a while since I've done that so I'm not clear enough on the details to give you any information on how that's done.
I have linux.
I then enter the control panel linux database and act from there?
Reply With Quote
  #6  
Old 04-20-2012, 04:11 PM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,600
Default

Not sure if you have a hosted solution or are hosting your own webserver.
If you are hosting your own web server the location of the php.ini file is dependent on distribution of Linux you are using.

On my Debian server its located at: /etc/php5/apache2/php.ini

You can use the locate command to find it on your server.

Code:
locate php.ini
You will probably need to use SSH or telnet to log into the server to edit this file under Linux. If you have a hosted solution some web hosts allow you to upload your own custom php.ini into your directory tree to have to influence PHP's behavior. You will have to check with your webhost to determine this (or their web page). Some hosted solutions have built in file editors (CPanel has one) which will let you edit the file directly. Others would make you FTP the file to your server.

On my windows server its located at c:\php\php.ini.

If you are running your own Windows Webserver it the file cab be edited with notepad.

Anyway this is not an OSTicket thing, but a webserver configuration setting.
Reply With Quote
  #7  
Old 04-20-2012, 04:34 PM
mthw mthw is offline
Junior Member
 
Join Date: Apr 2012
Posts: 12
Default

a cpanel I can put on or off the following options:

reg_off_magicquota_off Impostazioni avanzate per utenti esperti con:
register_globals = Off, magic_quotes_gpc = Off PHPinfo()

reg_off_buf_off Impostazioni avanzate per utenti esperti con:
register_globals = Off, output_buffering = Off PHPinfo()

reg_on_buf_off Impostazioni avanzate per utenti esperti con:
register_globals = On, output_buffering = Off PHPinfo()

reg_off_buf_on Impostazioni avanzate per utenti esperti con:
register_globals = Off, output_buffering = On

which of these should I disable?
I just have to check the entry and give the ok.

tell me ...

i have PHP: 5.2.17
Reply With Quote
  #8  
Old 04-20-2012, 11:25 PM
mathman mathman is offline
Member
 
Join Date: Aug 2011
Posts: 34
Default

Quote:
Originally Posted by mthw View Post
register_globals = Off, magic_quotes_gpc = Off PHPinfo()
I'd use that one. Hate to admit it but I'm not sure on whether or not to turn on/off output buffering - that's a setting I've never changed.
Reply With Quote
  #9  
Old 04-21-2012, 04:51 AM
mthw mthw is offline
Junior Member
 
Join Date: Apr 2012
Posts: 12
Default

Quote:
Originally Posted by mathman View Post
I'd use that one. Hate to admit it but I'm not sure on whether or not to turn on/off output buffering - that's a setting I've never changed.
enabling works just as described above the line reporting the issue Please Consider turning off register globals if possible, and disappeared.

and all right now?
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:23 PM.