bluehostforum.com  

Go Back   bluehostforum.com > BlueHost Related Help > General Questions

Reply
 
Thread Tools Display Modes
  #11  
Old 03-09-2009, 09:40 PM
M-G M-G is offline
Junior Member
 
Join Date: Feb 2009
Posts: 11
Default

I did as suggested and also changed the php.ini.default to php.ini and nothing changed. Also had just a php.ini file with magic_quotes_gpc = Off in it and still phpinfo shows that they are on. I added an if statement to my file:
if (get_magic_quotes_gpc()){
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
}
so I guess it's not a problem if it's not off but I'm stumped as to why php.ini is not working.

And thank you for the help.
Reply With Quote
  #12  
Old 04-22-2009, 02:23 PM
mtz mtz is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Default

i'm trying to do the same thing. i use bh and i cant seem to find my php.ini. where is it?
Reply With Quote
  #13  
Old 04-22-2009, 03:30 PM
felgall's Avatar
felgall felgall is offline
Moderator
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 3,830
Default

Quote:
Originally Posted by mtz View Post
i'm trying to do the same thing. i use bh and i cant seem to find my php.ini. where is it?
If you are using fastcgi then it goes in public_html, if you are not using fastcgi then it goes in the folder you want it to apply to.

If you haven't needed to change any of the default settings before then the file may not exist because you only need it to contain those commands where you want to override the defaults.
Reply With Quote
  #14  
Old 04-22-2009, 04:03 PM
mtz mtz is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Default

Thanks for your response.
I found it i tried using all the php's that bluehost offers; php5, php5(single php.ini) and fastcgi, but i haven't been able to solve my issue. i'm trying to install phpwebsite and i keep getting the error saying magic quotes are enabled.

i keep editing the php.ini changing the line from "magic_quotes_gpc = On" to "magic_quotes_gpc = Off" also have been changing the file name from php.ini.default to php.ini tried to add it on both the locations public_html and the location that i have the phpwebsite to be installed. I dont know what else i should do to fix this problem.

let me know if you know where i'm doing wrong or what else i should try.
Reply With Quote
  #15  
Old 04-23-2009, 02:27 AM
felgall's Avatar
felgall felgall is offline
Moderator
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 3,830
Default

Quote:
Originally Posted by mtz View Post
let me know if you know where i'm doing wrong or what else i should try.
You might try asking support since at least they will be able to see exactly what you have done and therefore be able to see what is wrong.
Reply With Quote
  #16  
Old 04-23-2009, 06:46 AM
msafi msafi is offline
Junior Member
 
Join Date: Apr 2009
Posts: 16
Default

Does the server need to be restarted after modifying the php.ini file?
Reply With Quote
  #17  
Old 04-23-2009, 01:18 PM
felgall's Avatar
felgall felgall is offline
Moderator
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 3,830
Default

Quote:
Originally Posted by msafi View Post
Does the server need to be restarted after modifying the php.ini file?
No. If it did then we'd be unable to update our php.ini files since there is no way that BlueHost would allow a server to be restarted for that reason as it would have the hundreds of other account owners on the server annoyed at them for having taken their sites down to do the reboot.
Reply With Quote
  #18  
Old 11-07-2009, 04:49 AM
RedMatrix RedMatrix is offline
Junior Member
 
Join Date: Mar 2009
Location: Mission, TX, USA.
Posts: 6
Default

Quote:
Originally Posted by wysiwyg View Post
However, you can edit php.ini, which is far more powerful.
What if you have multiple addon domains. Would you still recommend placing php.ini in your root public_html folder? If not, then would you recommend using php5 single file?

I am trying to install a url shortener script and the included .htaccess file uses php_flag and php_value but is only for globals off, magic off, and display errors off.

Anyone heard of FileETag none or ServerSignature Off? There's no help on this in the FAQ.
Reply With Quote
Reply

Thread Tools
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 -7. The time now is 10:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.