icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHPsuexec » phpsuExec - how to tell if server has it?

PHPsuexec Information and tips

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old March 1st, 2007, 11:00 AM   #1 (permalink)
3pm
Surpass Fan
Seasoned Poster
 
Joined in Jul 2003
53 posts
Gave thanks: 0
Thanked 0 times
phpsuExec - how to tell if server has it?

How can I tell if my server has suExec and/or PHPsuExec?
__________________
Three Pillars Media
- Reseller - phantom dime99 -
3pm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 1st, 2007, 12:11 PM   #2 (permalink)
Registered User
Seasoned Poster
 
Joined in Feb 2007
65 posts
Gave thanks: 4
Thanked 5 times
Quote:
Originally Posted by 3pm View Post
How can I tell if my server has suExec and/or PHPsuExec?
Create a phpinfo.php containing:

Code:
 <?php  
phpinfo();  
?>
Upload it then acces it on your browser. If line 4 of the phpinfo shows CGI then your server is running PHPsuexec.
__________________
SH113
decx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 1st, 2007, 2:37 PM   #3 (permalink)
Surpass Fan
Super #1
 
Joined in Mar 2006
1,024 posts
Gave thanks: 66
Thanked 55 times
it really is as simple as that 3pm, however as far as im aware pretty much every server surpass runs has it on.
__________________
Oxygen Solutions - Main Website
MoneyScience - Latest Project
deastwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 2nd, 2007, 10:14 AM   #4 (permalink)
3pm
Surpass Fan
Seasoned Poster
 
Joined in Jul 2003
53 posts
Gave thanks: 0
Thanked 0 times
Well, we had a reply from the admins that it wasn't on there so I asked when so I could have our clients start to prepare for it, but they went ahead and just did it. Yikes! So half the sites we host for are now down for the count.
__________________
Three Pillars Media
- Reseller - phantom dime99 -
3pm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 2nd, 2007, 11:21 AM   #5 (permalink)
Surpass Fan
Super #1
 
Joined in Mar 2006
1,024 posts
Gave thanks: 66
Thanked 55 times
thats really weird i had thought it was on pretty much every server, have you managed to get everyone back up and sorted now?
__________________
Oxygen Solutions - Main Website
MoneyScience - Latest Project
deastwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 2nd, 2007, 12:06 PM   #6 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
934 posts
Gave thanks: 2
Thanked 94 times
Quote:
Originally Posted by 3pm View Post
Well, we had a reply from the admins that it wasn't on there so I asked when so I could have our clients start to prepare for it, but they went ahead and just did it. Yikes! So half the sites we host for are now down for the count.
This is a result of the ownership for the PHP files. If support cannot get right to it to change them (because it takes a root login), you can easily do it yourself for your sites.
  1. Download all your .php files (these are the only ones causing problems) to matching directories on your local machine.
  2. Make a temp index.htm file that stops visitors with a "I'm working here message."
  3. Delete all the php files you just downloaded, off your server.
  4. Re-upload all the php files (except your index.php) via FTP. They will then have the proper permissions and ownership. (You cannot reset ownership or permissions by uploading over the original.)
  5. Upload your index file and delete the temp index file.
Most FTP clients have a method of sorting files by type.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 2nd, 2007, 12:42 PM   #7 (permalink)
Registered User
Seasoned Poster
 
Joined in Feb 2007
65 posts
Gave thanks: 4
Thanked 5 times
There's another major cause for broken scripts when switching from mod_php to PHPsuexec: PHP commands in .htaccess files. Since PHP is no longer running as part of Apache, it no longer understands any PHP commands placed in a .htaccess file. To get that problem solved just placed the PHP commands that were .htaccess files and place then in standalone php.ini files.

However note that with this method, php.ini files unlike .htaccess files, are not recursive. So if other subdirectories needs what you placed in the php.ini file you'll need to make a copy of it in those subdirectories also.
__________________
SH113
decx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks decx for this great post!
Skipdawg (March 2nd, 2007)
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On