Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  21 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-04-2008, 01:30 AM
Members
 
Join Date: Sep 2008
Location: Nashik
Posts: 51
Thumbs up How to check if a server is Suexec or not?

To check the server is Suexec or not? follow the one of the steps which suitable with your privileges

1) Login into you server with the root login details and run following command

[root@xx.xx.xx.xx ~]#/usr/local/cpanel/bin/rebuild_phpconf --current

If server is Suexec then result would look like

DEFAULT PHP: 5
PHP4 SAPI: suphp
PHP5 SAPI: suphp
SUEXEC: enabled


2)If you are not sure about Shell then you can also check the SuExec is enabled or not? from your WHM.Lgin into your WHM and in the menu find Configure PHP and SuExec

Check the drop down box for "PHP 4/5 Handler" - and if beside that it says "suPHP" - Then your sever is SuExec enabled

3) If you are not having server root login details or WHM access.Then you can create a php file udner your account from cPanel >> File Manager and change the permissions on that file to 777 and open it in a browser. If it gives 500 Internal Server Error, your most probably running suPHP.

4)As well as you can also create the phpinfo page under your account from your cPanel >> File manager For ex. phpinfo.php with the following code

<? phpinfo() ?>

After creating phpinfo.php page browse it http://yourdomainname.com/phpinfo.php and if it shows

Server API = Apache then server is not running PHP in Suexec mode

And if

Server API = CGI the server is running PHP in Suexec mode
__________________
Regards,
Gunjan Sonar
Reply With Quote
  #2 (permalink)  
Old 09-08-2008, 01:11 AM
Members
 
Join Date: Sep 2008
Location: Nashik
Posts: 51
Arrow Check SuExec status by using suexec_log

You can also check SuExec status for your server by using following logs.

As SuPHP activity is logged in
Quote:
/usr/local/apache/logs/suexec_log
. If you tail it, you will see if there is any current activity:

Code:

Quote:
tail -f /usr/local/apache/logs/suexec_log
__________________
Regards,
Gunjan Sonar

Last edited by Gunjan; 09-15-2008 at 12:24 AM.
Reply With Quote
  #3 (permalink)  
Old 01-06-2009, 04:23 AM
Members
 
Join Date: Sep 2008
Location: Nashik
Posts: 51
Default To check the SuExec configured value on cPanel server

To check the SuExec configured values use following command suexec -V on shell.
Quote:
root@server [~]# suexec -V
It will give you following result.

Quote:
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"
If SuExec is not enabled on server then it will give you following result after running the suexec -V command on shell.
Quote:
root@server [~]# suexec -V
Quote:
[root@server ~]# suexec -V
-bash: suexec: command not found
__________________
Regards,
Gunjan Sonar
Reply With Quote
  #4 (permalink)  
Old 12-03-2010, 10:37 AM
Junior Member
 
Join Date: Dec 2010
Posts: 1
Default

A BIG THNX TO YOU ALL.i reallly need this information.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote
  #5 (permalink)  
Old 06-11-2011, 10:02 AM
Junior Member
 
Join Date: Jun 2011
Posts: 1
Thumbs up A huge thank you

Mate, I specifically signed up here to say THANK VERY MUCH for your post. I had this issue, Host said that its a Joomla problem not PHP.

I knew it had something to do with PHP because I had just Migrated the site from a previouse server and was working fine but not here...

Thanks again.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.host.co.in/forums/f37/how-check-if-server-suexec-not-821/
Posted By For Type Date
The world&#8217;s best Blog: August 2008 This thread Refback 10-30-2008 02:30 PM
http://www.oco-inc.com - On-Demand Business Intelligence Solution fixed time (6-10 weeks), fixed cost per module, on budget, mix & match module capabilities This thread Refback 10-06-2008 02:09 PM
500 Internal Server Error on fresh install - Movable Type Forums This thread Refback 09-24-2008 11:12 PM
http://www.infogenglobal.com - Infogen professional services are tailored with today's customer needs in mind: value added services for every IT dollar spent. Infogen offers a broad range of enterprise consulting services to customers at various stag This thread Refback 09-23-2008 05:51 AM
http://www.infogenglobal.com - Infogen professional services are tailored with today's customer needs in mind: value added services for every IT dollar spent. Infogen offers a broad range of enterprise consulting services to customers at various stag This thread Refback 09-23-2008 05:51 AM
Search listings and website reviews - presalevideos.com/watch/spinsuccess/10991, This thread Refback 09-22-2008 11:26 AM
http://www.alcoholismanswers.net - Information for alcoholism counselors and those with alcohol problems. This thread Refback 09-21-2008 09:33 PM
http://www.thewozone.com - Free social network for website, forum, store or blog owners. This thread Refback 09-21-2008 07:39 AM
Search listings and website reviews - www.throup.org, This thread Refback 09-20-2008 04:14 AM
ProBoards® Support - View Profile: mailna This thread Refback 09-20-2008 02:47 AM
Mac Anu -> Metal Gear Solid 3 This thread Refback 09-20-2008 02:39 AM
Viewing Profile This thread Refback 09-19-2008 02:37 AM
Search listings and website reviews - www.tech-e-view.com, This thread Refback 09-19-2008 02:17 AM
Search listings and website reviews - www.wc-forums.com, This thread Refback 09-18-2008 10:52 PM
Search listings and website reviews - www.relshopping.com, This thread Refback 09-18-2008 02:17 AM
Malina - Viewing Profile This thread Refback 09-18-2008 01:03 AM
The world&#8217;s best Blog: Install Magento This thread Refback 09-17-2008 08:36 PM
Search listings and website reviews - www.host.co.in/forums/f37/how-check-if-server-suexec-not-821/, This thread Refback 09-17-2008 06:46 PM
Search listings and website reviews - www.silly-encounter.blogspot.com/, This thread Refback 09-17-2008 12:17 PM
The world&#8217;s best Blog: How to check if a server is Suexec or not? This thread Refback 09-16-2008 08:28 PM
The world’s best Blog This thread Refback 09-13-2008 02:02 AM


All times are GMT. The time now is 06:02 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0