Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    18

    Post SuExec problem

    Hello,

    I have an installed the Magento and after the following command suddenly I am geting "500 Internal Error Server" error message.

    find . -type d -exec chmod 777 {} \;

    After contacting the Magento they suggest me to check if a server is SuExec or not? but as I am new in linux hosting can some one please suggest me the futher steps to check server is Suexec or not? if yes then how to disable it..

    Any help will be much appreciated

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    Arrow Solution

    Hello,

    Have you try it, no then refer the URL

    http://www.host.co.in/forums/f37/how...uexec-not-821/

    Best Luck

  3. #3
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    In ssh at the root prompt

    httpd -l

    See if mod_suexec.c is listed. If it is your server is using suexec.

    If you are running suexec this should fix your site. (Use at your own risk)

    find . -type d -exec chmod 755 {} \;
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You could also try running:

    /scripts/chownpublichtmls

    That will repair file ownership issues.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Based on the error you're getting I'd say you almost certainly have suphp or similar.

    To repair the permission damage the find command did, from the same directory run:
    Code:
    chmod -R go-w .
    Note: this will destroy your server permissions if you run it from anywhere other than a home directory/public_html.

    By the way, that Magento find command is ridiculous as it opens permissions wide on the account - not a good idea; a common mistake made by developers.

  6. #6
    Member
    Join Date
    Sep 2008
    Posts
    18

    Exclamation Thanks

    Yes will run the following command

    /scripts/chownpublichtmls

    But I think it will take effect server wide...Are you sure that it will not cause any problem to other users account hosted on same server?

    Waiting for your reply.....

    Thanks again chirpy and all other members who are helping me throughout this Thread

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    4

    Post

    I will suggest you to go through the error logs on the server which appears after you access the page which is giving "500 Internal Error Server" message.

    [root@server ~]#tail -f /usr/local/apache/logs/error_log | grep yourdomain.com

    You can paste the error if you are unable to read it .

Similar Threads & Tags
Similar threads

  1. Nagios / suExec problem
    By nerbonne in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-04-2008, 02:47 PM
  2. Configure Suexec and PHP - problem
    By subn3t in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-19-2008, 10:14 AM
  3. suexec and phpsuexec problem
    By Novisoft in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-05-2005, 02:28 PM
  4. PHP+SuExec problem
    By Faldran in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-10-2003, 09:37 PM
  5. Suexec Problem
    By sbrad in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-20-2003, 04:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube