|
#1
|
|||
|
|||
|
Hi everybody, I wanna to disable "Register globals" and "Persistent Connections", so I create "php.ini" and put on my web public_html directory:
register_globals = Off mysql.allow_persistent = Off But I found it's not useful.... I see my phpinfo.php, "register_globals" and "mysql.allow_persistent" is still On.
|
|
#2
|
||||
|
||||
|
Quote:
|
|
#3
|
||||
|
||||
|
Quote:
To do what you want, do it in a .htaccess file. I think it should work that way? This way it only affect your account, but the phpinfo will still show server wide configuration, not your account. |
|
#4
|
|||
|
|||
|
http://forums.hostgator.com/showthread.php?t=6023
Now I can't use php.ini, somebody can tell me how to disable persistent connections? |
|
#5
|
||||
|
||||
|
Quote:
php_flag register_globals off
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#6
|
||||
|
||||
|
Here are some things to put into your .htaccess file to control your account.
php_flag register_globals off php_flag mysql.allow_persistent off php_value max_execution_time 300 php_value memory_limit 8M php_value post_max_size 20M php_value upload_max_filesize 20M Just add your own values, should work? |
|
#7
|
|||
|
|||
|
FWIW, as nearly as I can tell, you cannot change the upload_max_filesize
or post_max_size values from .htaccess on Hostgator. At least not from a subdomain. |
|
#8
|
||||
|
||||
|
It appears to be a setup problem that is common to all HG machines. I'm unable to override the PHP.INI files on my dedicated server. HG is currently looking into it as well as at least one other dedicated machine that is having the same problem.
Right now, we need to sit back and wait for them to find the solution. I suspect that everyone will be able to override PHP settings when they find the problem. (I'm talking about only PHPSuExec machines, others may not have the problem) |
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
||||
|
||||
|
Quote:
__________________
best regards, George |
|
#11
|
||||
|
||||
|
Yea, I'm not going to let them forget.
|
|
#12
|
|||
|
|||
|
Quote:
we are told with PHPSuExec that the php.ini will work |
|
#13
|
||||
|
||||
|
That is correct. Under PHPSuExec it should work. There is a problem and it doesn't work and will be fixed.
I responded to my open ticket on it just now, lets see if they can do something. |
|
#14
|
||||
|
||||
|
Today HostGator told me that they can not support PHP.ini overrides with PHP5. They suggested that I should switch back to PHP4 instead.
So that ends that. I'm not sure what I should do. I really like HostGator, but they have basically admited that it is impossible for me to use a feature that EVERYONE else supports. Should I go to a new company to get the features that I expect or should I just sit back and suffer? |
|
#15
|
||||
|
||||
|
Is there a technical reason for that I'm not familiar with?
-Matt |
|
#16
|
||||
|
||||
|
Even with your dedicated???
|
|
#17
|
||||
|
||||
|
Yes, on my dedicated box with PHP5. Here is what they offered:
Quote:
I wanted to make sure I wasn't just getting the brush off from support. It does appear that the HG setup for servers does not support php.ini overrides (for some unknown reason) when using PHP5 and PHPSuExec. This is a major bummer becuase I need PHPSuExec and I would like to move away from PHP4. Quote:
|
|
#18
|
|||
|
|||
|
I will most likely be switching hosting companies because of this. Not being able to set ANY ini settings is pretty lame. I don't want to have several lines of ini_set() at the top of each php page (or my include files).
PHP 4 IS NOT an option for me as my scripts are heavily OOP-oriented and PHP5's OOP support is worlds better than PHP4. While I'm glad they updated my server to PHP 5, I wish they would've gone to PHP 5.1 instead of PHP 5.0.5 as it offers more interfaces that makes working with classes very easy. Oh well, I had high hopes for HostGator but looks like I'll be moving my account somewhere else. |
|
#19
|
||||
|
||||
|
Quote:
The only reason I'm not dropping everything and jumping ship is that customer support here at HG has been good. Even at Lunarpages, I'm seeing 12-24 hour wait times for customer support requests (talking level 2 type requests). In fact, I just close an account over there last month for a customer who was unhappy with their support. With dedicated support is even more of a problem because my questions can't be answered by just anyone at support. I already know the easy answers. |
|
#20
|
||||
|
||||
|
a bit off-topic but
![]() Quote:
Maybe you should try a reputable company full comitted to dedicated servers like ThePlanet or Defenderhosting and check how is their php5 implementation. I can tell you that the servers at both of them rock ;-) Vtrain
__________________
Vtrain is Linux User #237333 on http://counter.li.org/ "Don't meddle in the affairs of sysadmins, for they are subtle and quick to anger." |
|
#21
|
|||
|
|||
|
Quote:
For those on dedicated systems, are there changes you would feel good about making on a global basis, those you could make in your global php.ini file. The other thing is ask the question on the forums on Zend.com they might know what the issue is and any possible solutions. |
|
#22
|
||||
|
||||
|
Quote:
In the long run, I'll convert them all over to PHP5, I will not have a problem, but for the short term, it sucks. I really need php.ini override for PHP5. |
|
#23
|
|||
|
|||
|
Quote:
|
|
#24
|
||||
|
||||
|
With all of our servers, you can use custom php.ini values. Some servers require it in .htaccess (non-phpSuExec) and others require it in a php.ini file (phpSuExec servers).
I believe all the people in this thread who sare stating it's our problem and we don't support PHP5 obviously have not put in a support ticket to even find out .
|
|
#25
|
||||
|
||||
|
Quote:
If you use PHP4, in the same server, you can change PHP values using php.ini. At least that seems to be the case in my dedicated server, where I have the dual PHP system.
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
![]() |
| Bookmarks |
| Thread Tools | |
|
|