Go Back   HostGator Peer Support Forums > HostGator Announcements > General Announcements

Notices

Reply
 
Thread Tools
  #51  
Old 05-09-2007, 10:01 PM
agent99 agent99 is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 1
Default Re: PHP5 Update.

Hi,

I am just about to choose hostgator, is this update to 5.2.0 or 5.2.2 released on 3rd may I had a site on hostrocket running php 4.4.4 got hacked a few days ago and looking for security
Reply With Quote
  #52  
Old 05-14-2007, 09:15 PM
picekim picekim is offline
Hatchling Croc
 
Join Date: Sep 2006
Posts: 5
Default Re: PHP5 Update.

so how does later today turn into nearly a week?

any news on the update to 5.2.2?
Reply With Quote
  #53  
Old 05-24-2007, 06:32 AM
picekim picekim is offline
Hatchling Croc
 
Join Date: Sep 2006
Posts: 5
Default Re: PHP5 Update.

bump..........
Reply With Quote
  #54  
Old 06-12-2007, 10:55 PM
frost frost is offline
Hatchling Croc
 
Join Date: Jun 2007
Posts: 2
Default Re: PHP5 Update.

Hi, sorry for bringing such an old thread back but I notice my account shows PHP version 4.4.4, should it be 5?
Reply With Quote
  #55  
Old 06-12-2007, 11:32 PM
GatorDustin
HostGator Guest
 
Posts: n/a
Default Re: PHP5 Update.

Cpanel may show version 4 (bug in cpanel) to check create a file phpinfo.php in your public html Then put the following code into it.
PHP Code:
  <?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>
If it is not version 5 You can use the extra's link in cpanel as stated above, or you can follow the manual directions in this thread.
Reply With Quote
  #56  
Old 06-13-2007, 08:27 AM
frost frost is offline
Hatchling Croc
 
Join Date: Jun 2007
Posts: 2
Default Re: PHP5 Update.

Hi,

phpinfo shows PHP Version 4.4.4 and there is no extras link in my cpanel. So that means I need to use the htaccess method to update?
Reply With Quote
  #57  
Old 06-13-2007, 09:53 AM
GatorMikael
HostGator Guest
 
Posts: n/a
Default Re: PHP5 Update.

Quote:
Originally Posted by frost View Post
Hi,

phpinfo shows PHP Version 4.4.4 and there is no extras link in my cpanel. So that means I need to use the htaccess method to update?
All the servers have both version 4 and version 5 installed, editing your .htaccess file is how you instruct the server on which version to use when interpreting your PHP scripts. By default it uses PHP 4, if you would like your scripts to use PHP 5 you'd have to edit your .htaccess file and add the appropriate line. Changes made to your .htaccess file are recursive too, so they'd apply for all files in sub-directories.

cPanel won't show that you're using PHP 5 since it's not located in your directories and is run using PHP 4. Once you add the line in your .htacces file to tell the server to use PHP 5 your phpinfo script should show that it's using version 5 instead of 4.
Reply With Quote
  #58  
Old 06-17-2007, 08:42 PM
hbird hbird is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 11
Default Re: PHP5 Update.

I can't seem to turn off magic_quotes_gpc off for "Flyspray" (bugtracker)

php.ini
Code:
register_globals = Off
magic_quotes_gpc = Off
session.use_trans_sid = 0
short_open_tag = off
register_argc_argv = Off
register_long_arrays = Off
filter.default = "unsafe_raw"
always_populate_raw_post_data = Off
This php.ini is in my public_html/bugs folder (not my home directory)
Reply With Quote
  #59  
Old 02-14-2008, 05:33 PM
keehan keehan is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 7
Default Re: PHP5 Update.

Quote:
Originally Posted by acornies View Post
I require php5 with xslt on my shared hosting account, and after several tickets, I finally got this module intalled. Shortly after the issue was resolved, I found that the module was removed after one of the system wide updates of php5. I ask that for your universal php5.2.0 installation across all of your shared hosting servers to include the xslt modules. This functionality is becoming increasingly popular in web applications today, and I don't see why it wouldn't included.

If this can't be done across all shared hosting servers, please make sure that the xslt modules for php5 are included in the updates on gator137.

The support team has been great, but I just dont want to keep creating the same ticket everytime there is an update.
Hello,

I too have a heap of scripts that require XSLT and they all fell over when the site was moved to PHP5. After some searching, I found this nifty little wrapper that makes my PHP4/XSLT stuff compatible with PHP5/XSL:
http://alexandre.alapetite.net/doc-a.../index.en.html

So, basically my scripts did the following with PHP4:
1. setup curl to retrieve xml-source
2. use xslt to parse out xml and create output

Now, my scripts do the following with PHP5 (with XSL module):
1. setup curl to retrieve xml-source
2. load the wrapper module
3. use xslt (in wrapper) to parse out xml and create output

I hope that helps someone out.

Regards.

Last edited by keehan; 02-14-2008 at 07:17 PM.
Reply With Quote
  #60  
Old 06-03-2008, 04:34 AM
tomda's Avatar
tomda tomda is offline
Hatchling Croc
 
Join Date: Jan 2007
Location: Nairobi
Posts: 21
Default Re: PHP5 Update.

Thanks for the link....

I have placed the following php.ini in my test/ directory

Code:
short_open_tag = Off
asp_tags = Off
safe_mode = Off
expose_php = On

max_execution_time = 30     
max_input_time = 60	
memory_limit = 32M   

register_globals = Off
register_long_arrays = Off

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

default_mimetype = "text/html"

enable_dl = Off

file_uploads = Off
upload_max_filesize = 10M

extension=php_xsl.dll
I was hoping to have the XSL extension ON for this directory but it is still OFF (http://www.peperuka.com/test/vdm/show_vdm.php).

PHP info for the same directory (http://www.peperuka.com/test/info.php) is showing PHP 5 (good) but loaded extension is XSLT (the one of PHP4 from webroot)...

What should I do to load the XSL extension for a specific directory (the directory that has PHP5).

Thank you
__________________
From Kenya
"I eat up gnus 'coz there are no 'gators in Africa"
Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 11:31 PM.

 
Forum SEO by Zoints