|
#26
|
||||
|
||||
|
Quote:
I added the AddHandler to the .htaccess folder in public_html/addon_domain/. My main .htaccess in public_html/ has the AddHandler for php5. I want to go back to php4 for the addon domain. |
|
#27
|
|||
|
|||
|
Quote:
How do we change these settings when running as php5? Can it be done via .htaccess or a custom php.ini? How? Specifically, I want to turn magic_quotes_gpc off. |
|
#28
|
|||
|
|||
|
Create a text file named "php.ini" in your public_html and add the following:
magic_quotes_gpc = 0 register_globals = 0 and so on.. Use phpinfo() to verify that magic_quotes_gpc and register_globals are now off. If you don't receive any errors and they are still on PM me. |
|
#29
|
||||
|
||||
|
I have created a little PHP wrapper which allows the translated path to be used for php.ini files. This simply means that you will be able to create php.ini files anywhere in your home directory to have custom PHP settings.
Originally I was going to make it so you could only have one php.ini file in your public_html directory which would control everything, but for clients who have multiple sites that need different settings, it would have affected them. If anyone notices any issues with this method, please create a support ticket with ATTN: DaveC. |
|
#30
|
|||
|
|||
|
This is very good news, I think FragMaster B will be happy. I think you should make a General Announcement.
|
|
#31
|
||||
|
||||
|
I can make an announcement on the weekend about this. Is there anything else that should be modified on PHP5? I am just getting it ready to roll out with mod_cgi, and wanted a smooth transition.
|
|
#32
|
|||
|
|||
|
It would be nice if date.timezone had a default value. I had a few E_STRICT warning because it was not set. Thank you very much! I hope that you have a smooth roll out.
Last edited by Impavidus; 02-08-2007 at 03:00 AM. |
|
#33
|
|||
|
|||
|
This is great news Dave. Thank you.
With this change, will we still need to add a php.ini in ever file and subdirectory in order for the changes to take affect site-wide? That's a bit of a pain to have to maintain and keep up with. |
|
#34
|
||||
|
||||
|
Quote:
Yes this will have to be done in every sub directory in order for it to be set globally. The reason why I don't have it set for just one php.ini file in the public_html, which was actually easier to code is because we have clients who have addon domains. If a client needed a setting in another directory, they wouldn't be able to do that if I set it up the other way. If you would like I can try to possibly setup another script alias which will allow you to have just one php.ini file, but I can't promise you anything right a way. |
|
#35
|
|||
|
|||
|
Quote:
For now, having multiple php.ini files is doing the trick tho. Thanks again. |
|
#36
|
||||
|
||||
|
I just thought I would let all of you know that the Shared and Reseller servers have been upgraded to PHP 5.2.1.
|
|
#37
|
||||
|
||||
|
I'm sure you mean that everyone on PHP5 was upgraded to php 5.2.1... not EVERYONE...
|
|
#38
|
|||
|
|||
|
I'm on the MySQL5/PHP5 server and it seems register_globals is on by default, which makes a pain and a security risk since I would have to turn on register_globals for each and every subdirectory. Is there a way I can do this globally or for selective subdirectories recursively?
|
|
#39
|
||||
|
||||
|
Quote:
Server: Tundra |
|
#40
|
||||
|
||||
|
PHP5 seems to be working without any problems from what I can see on the Tundra server. Please add the following line to your .htaccess file "AddHandler application/x-httpd-php5 .php".
|
|
#41
|
||||
|
||||
|
Quote:
I'll try again with a script that requires PHP 5. Thanx |
|
#42
|
||||
|
||||
|
Quote:
My cPanel still shows 4.x, or did the last I looked a couple of days ago. |
|
#43
|
|||
|
|||
|
As PHP5 has to be enabled via htaccess handelers, cPanel would still be showing as running 4.x I belive.
|
|
#44
|
|||
|
|||
|
Quote:
|
|
#45
|
|||
|
|||
|
Hi,
Is there any chance of configuring PHP with pspell, as my previous provider had it enabled and I run several PHP spellcheck scripts that utilise it. Regards James |
|
#46
|
|||
|
|||
|
Best to submit a support ticket requesting it
|
|
#47
|
||||
|
||||
|
pspell causes problems, HG has, in the past, not opted to enable it.
|
|
#48
|
|||
|
|||
|
What sort of problems can it cause?
I already submitted a support request to have it added to the server but was told that it wasn't on there due to resource issues and I was advised to request it here. Surely it can't be more resource hungry than imagemagick or other similar PHP functions? James |
|
#49
|
||||
|
||||
|
The PHP5 environment will be updated to version 5.2.2 shortly. This update is just a security and Bug fix update.
I will be sure to include Zend Optimizer, Ioncube, and have the session save path included in the php.ini file. |
|
#50
|
|||
|
|||
|
i see in the post previously that xsl support was at one time enabled for PHP5. it would be really nice if that could be enabled with the update too
![]() i have a few apps that i am working on that require it. thanks |
![]() |
| Bookmarks |
| Thread Tools | |
|
|