Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 11-27-2010, 11:26 PM
5942marine 5942marine is offline
Hatchling Croc
 
Join Date: Mar 2010
Posts: 11
Default Suphp versus Fastcgi

I'm in the process of setting up my new VPS, woo hoo!

Question, in terms of performance, which one for a level 6 would run best, Suphp or Fastcgi?

I've been doing some googling, but it seems to be half and half. Curious if anyone else out there has noticed any benefits over one another.

On a side note, I do plan on using eAccelerator with my script.
Reply With Quote
  #2  
Old 11-28-2010, 04:34 AM
GatorJLavoy's Avatar
GatorJLavoy GatorJLavoy is offline
HostGator Staff
 
Join Date: Feb 2010
Location: Austin, Tx
Posts: 548
Default Re: Suphp versus Fastcgi

Hello,

eAccelerator will not work with php running as suPHP. So I suppose that answers your question for you

One of the first things I personally do on an overloaded box is switch php to fcgi. It allows for php caching to be setup, and generally has a lower CPU overhead than suPHP.

While suPHP is a great thing, some situations and configurations require something else. If you intend on using eA or any other caching, then fcgi or DSO would be the way to go. If you have no plan on using caching, and don't have load issues, then there's no reason not to run suPHP.

I hope this has been helpul.
__________________
James Lavoy
Linux Systems Administrator II || Server Provisioning
HostGator.com LLC
http://support.hostgator.com
Reply With Quote
  #3  
Old 11-28-2010, 10:49 AM
chaloupe chaloupe is offline
King Croc
 
Join Date: Nov 2004
Location: Dieppe, New-Brunswick, Canada
Posts: 1,427
Default Re: Suphp versus Fastcgi

Great post GatorJLavoy

Always good to have a fresh answer inserted in my brain.
__________________
Jean Boudreau - IT for local businesses
It's all about automation!
Any data backup of your company?

Reply With Quote
  #4  
Old 11-29-2010, 09:07 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 937
Default Re: Suphp versus Fastcgi

With or without eAccelerator, FastCGI will probably be the best option if you are only running a few sites. It keeps processes spawned so you don't run into the overhead of spawning PHP processes again.
Reply With Quote
  #5  
Old 12-05-2010, 01:41 PM
5942marine 5942marine is offline
Hatchling Croc
 
Join Date: Mar 2010
Posts: 11
Default Re: Suphp versus Fastcgi

Thanks everyone for your input. I decided to switch over to running fcgi with suexec, but every time I make the switch, then restart apache. I get an error, permission issue.

After I make the switch to fcgi, is there a script I need to run that changes the permissions on all my files/folders?

Currently, they're all 0755 for folders and 0644 on the files.

I've had a ticket open on support, but no one has been able to get this working.
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Disable suPHP weini Linux VPS Support 3 06-15-2010 02:12 PM
how to disable suPHP or .htaccess? Dusan Zervan Shared Hosting Support 3 01-20-2009 12:11 PM

All times are GMT -5. The time now is 10:15 AM.