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
  #101  
Old 07-18-2007, 07:55 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.

gator13 is being migrated to PHPSuEXEC. It looks like it's still using mod_php
Reply With Quote
  #102  
Old 07-18-2007, 08:14 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.

gator33 is currently being migrated as well.
Reply With Quote
  #103  
Old 07-18-2007, 08:29 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.

gatorasp and astro are being migrated as well.
Reply With Quote
  #104  
Old 07-18-2007, 11:43 AM
asco asco is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 1
Default Re: Mod_php to PHPSuEXEC migration.

Seems like my sites made it through ok, with one exception.

One site was giving a 403 (forbidden) on every page.

I changed this line in .htaccess:

OLD:
Options ExecCGI -Indexes

NEW:
Options +ExecCGI -Indexes

And it works again! I was just trying random stuff and stumbled on to something that worked. Can anyone tell me why?

Here's the Apache documentation on Options (I just don't understand it):
http://httpd.apache.org/docs/1.3/mod/core.html#options
Reply With Quote
  #105  
Old 07-18-2007, 06:57 PM
phoenix04 phoenix04 is offline
Hatchling Croc
 
Join Date: Oct 2006
Posts: 6
Default Re: Mod_php to PHPSuEXEC migration.

Hi,

I am really hoping someone here can help me as host gator support is still unable to fix this 24 hours later! All of my customers sites are running seo for oscommerce. The PHPSuEXEC has broken the images on the sites and causes 403 or 404 errors. I have tried all the suggestions on here for oscmmerce and joomla seo and nothing is working.

The only way I can get them to work is to remove seo.

This is what I currently have for my seo in .htaccess

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_ST RING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}


Can someone tell me should there be something else added into the .htaccess file?

I would really appreciate anyone's help on this as I have no sites working!

Regards
Reply With Quote
  #106  
Old 07-18-2007, 08:43 PM
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,
Have some stores under oscommerce and all are working fine after migration without any correction on my side.
Here my public_html htaccess as I found it and not obfuscated.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://cachaceira.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://cachaceira.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.cachaceira.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.cachaceira.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://cachaceira.com/store/images/ [R,NC]

Here the htacces in the store directory:
# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>

If this can help
I believe in the admin must be one too.
This is probably not such SEO friendly as required but until the stores are responding..

Last edited by riostyles; 07-18-2007 at 09:12 PM. Reason: Typo
Reply With Quote
  #107  
Old 07-18-2007, 09:58 PM
phoenix04 phoenix04 is offline
Hatchling Croc
 
Join Date: Oct 2006
Posts: 6
Default Re: Mod_php to PHPSuEXEC migration.

Thanks for trying to help but nothing seems to work in the .htaccess files. I have 15 oscommerce stores that I have had to go through and turn of seo urls for until I can get this fixed. I have some sites with seo urls that are working fine and I can not see the difference in these sites compared to the ones that do not work. I have no idea why these are not working.



Quote:
Originally Posted by riostyles View Post
Hello,
Have some stores under oscommerce and all are working fine after migration without any correction on my side.
Here my public_html htaccess as I found it and not obfuscated.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://cachaceira.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://cachaceira.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.cachaceira.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.cachaceira.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://cachaceira.com/store/images/ [R,NC]

Here the htacces in the store directory:
# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>

If this can help
I believe in the admin must be one too.
This is probably not such SEO friendly as required but until the stores are responding..
Reply With Quote
  #108  
Old 07-18-2007, 10:59 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,067
Default Re: Mod_php to PHPSuEXEC migration.

Quote:
Originally Posted by phoenix04 View Post
Thanks for trying to help but nothing seems to work in the .htaccess files. I have 15 oscommerce stores that I have had to go through and turn of seo urls for until I can get this fixed.
Yea, actually, now that I read what you are saying, I've been ignoring you because you post HUGE crap in your posts... I looked into the SEO links thing for OSC back when I switched to PHPSuExec. I spend a good few days searching and testing and I was unable to get OSC to work with SEO links under PHPSuExec. It comes down to a design problem in OSC, not a problem with Hostgator... (My problem wasn't on an HG box).

This was about a year ago, so thing may have changed, but you can stop looking that .htaccess and stuff because that isn't the problem. Its OSC that is the problem. They way it did SEO links just was incompatible with PHPSuExec.

If SEO links are that important, you should switch to a cart that supports things like that under PHPSuExec. Someone was asking me about X-cart a today. That is the value of using a commercial cart over a freeware cart. With a commercial cart, there is always someone to pay to fix problems...
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #109  
Old 08-17-2007, 12:44 PM
pixel_lab pixel_lab is offline
Hatchling Croc
 
Join Date: Jul 2005
Location: Bristol, UK
Posts: 32
Default Re: Mod_php to PHPSuEXEC migration.

how does one go about making the php.ini non-world readable - every time i chmod to 600 it reverts back to 644.

could someone assist me with this matter please?

Thanks

Paul
Reply With Quote
  #110  
Old 08-17-2007, 12:54 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,764
Default Re: Mod_php to PHPSuEXEC migration.

Quote:
Originally Posted by pixel_lab View Post
how does one go about making the php.ini non-world readable - every time i chmod to 600 it reverts back to 644.

could someone assist me with this matter please?

Thanks

Paul
add this to your .htaccess file:
Code:
<Files *.ini>
  Order deny,allow
  Deny from All
</Files>
__________________
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
Reply With Quote
  #111  
Old 08-18-2007, 04:44 AM
pixel_lab pixel_lab is offline
Hatchling Croc
 
Join Date: Jul 2005
Location: Bristol, UK
Posts: 32
Thumbs up Re: Mod_php to PHPSuEXEC migration.

thanks thats sorted it!
Reply With Quote
  #112  
Old 08-18-2007, 08:16 AM
rota919 rota919 is offline
Swamp Croc
 
Join Date: Jan 2007
Location: Armagh, Northern Ireland
Posts: 245
Default Re: Mod_php to PHPSuEXEC migration.

This also took care of the problems that I had with Imagmagik and spell.
The script that I use lost focus on where the paths are for these applications.

Code:
<Files *.ini>
  Order deny,allow
  Deny from All
</Files>
__________________
Fred
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:59 PM.

 
Forum SEO by Zoints