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

Notices

View Poll Results: Overall how well did the mod_php to PHPSuEXEC migration work out for you?
Terrible (ALL of my sites were/are broken) 6 18.18%
Fair (A lot of areas of my site were broken) 4 12.12%
Great (Had little or no issues at all) 8 24.24%
Woohoo! I have been wanting this implemented for a long time! 15 45.45%
Voters: 33. You may not vote on this poll

Reply
 
Thread Tools
  #26  
Old 06-14-2007, 11:54 AM
cjnoyes cjnoyes is offline
Swamp Croc
 
Join Date: Jan 2006
Posts: 250
Default Re: Mod_php to PHPSuEXEC migration.

Quote:
Originally Posted by _Sam_ View Post
Nope, i think resellers would complain if it was called HostGator Extras, and had hostgator all over it
Clearly they will have to relabel this so gator is out
Reply With Quote
  #27  
Old 06-17-2007, 10:38 AM
vaggelis vaggelis is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 21
Default Re: Mod_php to PHPSuEXEC migration.

I would like to ask how to change owners and group of nobody (99) owned files on my client's packages.
__________________
Evangelos Tripolitakis
Electronics & Computer Engineer, MSc
PhD Candidate
NohSYS
http://www.nohsys.net/vaggelis
Reply With Quote
  #28  
Old 06-17-2007, 03:06 PM
Impavidus Impavidus is offline
Junior Croc
 
Join Date: Feb 2006
Posts: 155
Default Re: Mod_php to PHPSuEXEC migration.

chgrp Change group ownership
chmod Change permissions
chown Change file owner and group

Here is a script that I wrote to fix user, group and permissons.

PHP Code:
<?php
header
("Content-type: text/plain");
$fileperms 0644
$folderperms 0755;
$owner 'billybob'// your username
$group 'billybob'// your group (should be the same as username)
$root '/home/billybob/public_html/'// your root dir

function crawl($dir) {
    global 
$root$fileperms$folderperms$owner$group;
    
$level count(explode("/"$dir)) - 1;
    
$d opendir($root $dir);
    while((
$file readdir($d)) !== false) {
        if(
preg_match("/[^\.]/"$file)) {
            if(
is_dir($root $dir $file)) {
                echo 
'<dir> ' $file chr(10);
                
$chmod chmod($root $dir $file$folderperms) ? 'success' 'FAILURE';
                echo 
$file ' Change Folder Permissions: ' $chmod chr(10);
                
$chown chown($root $dir $file$owner) ? 'success' 'FAILURE';
                echo 
$file ' Change Folder Owner: ' $chown chr(10);
                
$chgrp chgrp($root $dir $file$group) ? 'success' 'FAILURE';
                echo 
$file ' Change Folder Group: ' $chgrp chr(10);
                
crawl($dir $file '/');
            } else if(
preg_match("/\.[^.]+$/"$file)) {
                echo 
'<file> ' $file chr(10);
                
$chmod chmod($root $dir $file$fileperms) ? 'success' 'FAILURE';
                echo 
$file ' Change File Permissions: ' $chmod chr(10);
                
$chown chown($root $dir $file$owner) ? 'success' 'FAILURE';
                echo 
$file ' Change File Owner: ' $chown chr(10);
                
$chgrp chgrp($root $dir $file$group) ? 'success' 'FAILURE';
                echo 
$file ' Change File Group: ' $chgrp chr(10);
            }
        }
    }
    
closedir($d);
}

crawl();
?>
Reply With Quote
  #29  
Old 06-17-2007, 07:49 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,258
Default Re: Mod_php to PHPSuEXEC migration.

Quote:
Originally Posted by vaggelis View Post
I would like to ask how to change owners and group of nobody (99) owned files on my client's packages.
If you are on a reseller account, I believe you will have to contact support. Beyond the permissions jailshell allows.
__________________
best regards,
George
Reply With Quote
  #30  
Old 06-18-2007, 03:16 AM
angeli2007 angeli2007 is offline
Hatchling Croc
 
Join Date: Jun 2007
Posts: 1
Default Re: Mod_php to PHPSuEXEC migration.

Dear All,

I am a reseller but am not a techie. should i need to inform my customers of this conversion from mod_php to PHPSuEXEC? Should my clients have to do something, like re-programming their websites?

How many hours does the conversion take place? do my clients expect some downtime? like how many hours?

Hope you can help as i really have no idea what is going to happen. One of my customer runs a classified ads program using cgi (like the one at http://www.activewebsuite.com/classifiedspro/index.htm) Will the conversion affect his program? and what should he do?

Thank you so much. Appreciate if you can help.

Regards,

Angeli
Reply With Quote
  #31  
Old 06-18-2007, 06:41 AM
amartins's Avatar
amartins amartins is offline
Royal Croc
 
Join Date: Dec 2003
Location: Europe
Posts: 415
Default Re: Mod_php to PHPSuEXEC migration.

Hi!

I don't have the time to read the whole thread now but in the begining I was under the impression that HG would be doing serverwide changing permissions based on the most common occurences. I can't find that post now... (maybe that was on the email). The idea was that most common permission problem situations would be avoided.

Anyway I found that the best thing was to do as DaveC said earlier (to test PHP apps) is to do an AddType application/x-httpd-php5 .php in htaccess. Of the sites I tested I only found problems on one. And when I could not fix it Support (thank you) fixed it for me.

Regards,
António.




Quote:
Originally Posted by vaggelis View Post
I would like to ask how to change owners and group of nobody (99) owned files on my client's packages.
Reply With Quote
  #32  
Old 06-26-2007, 04:18 AM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

We will be doing the server wide permission changes. If you would rather us not touch the file permissions on your account you may create a blank file called ".mod_php_migration" in your home directory.

**The file must be in /home/USER/, NOT /home/USER/public_html**

If you create this file, your files will be untouched and may cause your web site not to function after the migration is done. This is only recommended for Advanced users who would like to change the permissions themselves.

Reply With Quote
  #33  
Old 06-28-2007, 10:44 AM
othellobloke othellobloke is offline
Banned User
 
Join Date: Mar 2006
Location: Kenora, Ontario
Posts: 708
Default Re: Mod_php to PHPSuEXEC migration.

It seems this change has affected a couple of websites... from functioning... and I'm not enough of a php/mysql wizard to be able to fix it.

I'm getting these type of errors:

Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/******/public_html/site/details.php on line 24

Someone please help me?
Reply With Quote
  #34  
Old 06-28-2007, 10:54 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,059
Default Re: Mod_php to PHPSuEXEC migration.

What codes in details.php on line 24?
Reply With Quote
  #35  
Old 06-28-2007, 11:01 AM
othellobloke othellobloke is offline
Banned User
 
Join Date: Mar 2006
Location: Kenora, Ontario
Posts: 708
Default Re: Mod_php to PHPSuEXEC migration.

attached is a txt file of the php script.

thank you for your help
Attached Files
File Type: txt details.txt (8.9 KB, 21 views)
Reply With Quote
  #36  
Old 06-28-2007, 01:52 PM
lightningstrike lightningstrike is offline
Hatchling Croc
 
Join Date: Apr 2006
Location: Canada
Posts: 1
Cool Re: Mod_php to PHPSuEXEC migration.

First of all the standard php function is mysql_num_rows not MYSQL_NUMROWS unless it is a function you have defined yourself. Also the problem seems to be that you have not saved the mysql link resource to a variable when you make the call to the mysql_connect function on line 6. Also it seems that your query is relying on a variable; $listid which is not set in the code provided making your query invalid, provided register_globals is off.

Secondly in your code details you use the mysql_result function excessively. Mysql_result is unnecessary, messy, and very slow for almost any query that returns multiple columns or rows. A simpler way is to use
PHP Code:
$array mysql_fetch_array($result); 
mysql_fetch_array will create an associative array from the column names returned from the mysql_query.

Good luck.

Last edited by lightningstrike; 06-28-2007 at 07:47 PM. Reason: Mistake in code
Reply With Quote
  #37  
Old 06-30-2007, 05:19 AM
B16Enk's Avatar
B16Enk B16Enk is offline
Hatchling Croc
 
Join Date: Mar 2006
Posts: 22
Default Re: Mod_php to PHPSuEXEC migration.


Got up this morning to find one of my sites throwing internal server errors.
After sweating for a while I removed my php.ini file from the root of the web and forum folders to find it fixed it.
I haven't yet determined which part of the php.ini was causing the error, I was already using the php5 handler, I only set register_globals and upload sizes in it..

Something to try if you get the same post upgrade.

Does beg the question why Hostgator don't do a sanity check for customers to ensure the site is running post upgrade, I guess time constraints is the answer.
Reply With Quote
  #38  
Old 07-02-2007, 08:15 AM
We Think Solutions We Think Solutions is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 4
Default Re: Mod_php to PHPSuEXEC migration.

on June 12, I received an email that says...

****************
There will be forum posts
> alerting you to which servers are being upgraded and when at
> http://forums.hostgator.com/showthread.php?p=63036 .

*****************

The thread mentioned in the email is this very thread. However I cannot find any information about which servers have been upgraded or which servers are going to be upgraded and when.

My technician has just left for 10 days holidays. We are hosting many websites on 2 different accounts, one on gator11 and the other on explorer.

My technician has built a web framework in PHP that relies upon the ability to fetch files from "higher up the directory tree" than public_html. We are very concerned that HostGator will perform an upgrade on our servers while my technician is on holidays over the next 2 weeks and send all of our clients' websites crashing down.

Is there any way that we can be advised when the migration is planned for gator11 and explorer? And is it at all possible to delay the migration for these 2 servers until after July 12?
Reply With Quote
  #39  
Old 07-02-2007, 08:56 AM
riostyles riostyles is offline
Royal Croc
 
Join Date: Jan 2006
Location: Rio de Janeiro, Brazil
Posts: 764
Default Re: Mod_php to PHPSuEXEC migration.

Hello Dave,
Do you have some planning for the reseller upgrades in June.
Reply With Quote
  #40  
Old 07-02-2007, 05:35 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

Quote:
Originally Posted by riostyles View Post
Hello Dave,
Do you have some planning for the reseller upgrades in June.
I should be done migrating the Shared servers by Mid July. Once those are done I will start working on the Reseller servers.

The following shared servers will be migrated tonight gator69,70,71,72 & 73.

Happy belated Canada Day, and 4th of July!
Reply With Quote
  #41  
Old 07-02-2007, 06:34 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

We will be Migrating gator39 tonight as well.
Reply With Quote
  #42  
Old 07-03-2007, 12:49 AM
scot225 scot225 is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 2
Default Re: Mod_php to PHPSuEXEC migration.

PHP has not been working on my server for approx the last 2+ hours. I am assuming it is because of the Mod_php to PHPSuEXEC migration.

How long until my PHP websites are working again???
Reply With Quote
  #43  
Old 07-03-2007, 01:08 AM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

Quote:
Originally Posted by scot225 View Post
PHP has not been working on my server for approx the last 2+ hours. I am assuming it is because of the Mod_php to PHPSuEXEC migration.

How long until my PHP websites are working again???

I'm not sure what your domain name or which server you are on. Please post what the problem is, or create a support ticket.
Reply With Quote
  #44  
Old 07-03-2007, 03:04 AM
scot225 scot225 is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 2
Default Re: Mod_php to PHPSuEXEC migration.

Thank You for resolving that David, so quickly after I sent in the trouble ticket! Much appreciated!
Reply With Quote
  #45  
Old 07-03-2007, 02:04 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

The following servers are going to be migrated to PHPSuEXEC tonight.
gator68,67,66,65,64,63 & 62.
If there are any problems that you find, please let us know.
Reply With Quote
  #46  
Old 07-03-2007, 05:42 PM
sacjlc sacjlc is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 1
Default Re: Mod_php to PHPSuEXEC migration.

My site is down due to these changes and has been since at least 3:00 this afternoon as far as I can tell. I put in a support ticket at 4:00 which makes it almost four hours now and I still haven't gotten any help. I doubt I know enough to make all of the changes necessary and thought alot of this would be done for us...Any idea on how quickly I will get help on getting my site up and running again???
Reply With Quote
  #47  
Old 07-03-2007, 07:23 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

We are also going to migrate gator61 and gator60 shortly as well.
Reply With Quote
  #48  
Old 07-04-2007, 04:45 AM
jas01724 jas01724 is offline
Hatchling Croc
 
Join Date: Apr 2003
Location: UK
Posts: 37
Default Re: Mod_php to PHPSuEXEC migration.

Could you please tell me when gator2 will be migrated over to PHPSuEXEC? I won't have access to a computer for three or four days between Thursday 5th and Sunday 8th, so if my sites go down I won't be around to fix them.

If it could be done tonight so that I can fix my sites before I leave, that would great - failing that, could you wait until at least Sunday night/Monday morning?
Reply With Quote
  #49  
Old 07-04-2007, 03:27 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

Tonight we will be migrating gator50 to gator59, as well as gator2.
Reply With Quote
  #50  
Old 07-05-2007, 04:58 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: Mod_php to PHPSuEXEC migration.

Tonight we will be migrating gator40 to gator49. If there are any issues, please let me know.
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 06:26 PM.

 
Forum SEO by Zoints