The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SuExec and PHP

Discussion in 'General Discussion' started by bilberh, Feb 5, 2015.

  1. bilberh

    bilberh Registered

    Joined:
    Feb 5, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    I've just installed Cpanel to my VPS server, and there is a problem with one my site. Please help me to fix it.

    File permissions are 755 for directories and 644 for files
    Using Suexec and PHP configuration(default on WHM)
    Problem:
    One of my site: domain.com is not loading the slider in the homepage as well as the twitter feeds on every page.
    When I changed the folder permission to 777, the slider as well as twitter feed was worked, but it's very risky to give 777 permission as you know. I changed the permissions to 755, and the problem started.
    What to do to fix this issue ?
    Regards,
    Sakeer.
     
    #1 bilberh, Feb 5, 2015
    Last edited by a moderator: Feb 5, 2015
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Check the error log in your cPanel for any clues, right after accessing the page where the twitter feed is located for example.
     
  3. bilberh

    bilberh Registered

    Joined:
    Feb 5, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Infopro,
    I only see the following error:
    Code:
    [Thu Feb 05 18:53:10 2015] [error] [client 117.245.45.53] File does not exist: /home/opsotech/public_html/images/backgrounds/68.png, referer: http://domain.com/style.css
    [Thu Feb 05 18:52:23 2015] [error] [client 117.245.45.53] File does not exist: /home/opsotech/public_html/images/backgrounds/68.png, referer: http://domain.com/style.css
    [Thu Feb 05 18:04:49 2015] [error] [client 117.245.45.53] File does not exist: /home/opsotech/public_html/images/backgrounds/68.png, referer: http://domain.com/style.css
    [Thu Feb 05 16:57:11 2015] [error] [client 64.233.173.139] File does not exist: /home/opsotech/public_html/main/logo.jpg
    and that's normal, as I didn't uploaded the said files in image folder.
    What else to look into ?
    Regards,
    Sakeer
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please double check the addons' directories for files not owned by the cPanel user and permissions on those files inside the directories as well.
     
  5. bilberh

    bilberh Registered

    Joined:
    Feb 5, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Infopro,
    Everything looks fine and folder permission set to 755 and file permission to 644, I've double checked that, but still have the same issue. Is there anything I need to check in the tewak settings ? or need to check the ownership of the files and folders? if yes hoe to do that ?
    Regards,
    Sakeer.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should be able to check permissions via the cPanel File Manager. If the site itself is working as expected, then you're down to the twitter and slider mod to check into a bit closer. This sounds to me to be a site issue not a cPanel issue though.

    If you suspect it to be a cPanel issue, please feel free to open a ticket directly to your Hosting Provider or cPanel Technical Support.
     
  7. bilberh

    bilberh Registered

    Joined:
    Feb 5, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Infopro,
    Actually I was in another cPanel powered server and the site was running fine with the same settings, [removed] you can see the site still not removed, but pointed to my new server.
    No changes I've made to the code or any line of scripts, in the old server it was under a subdomain called main. inthe new server in both public_html folder and sub folder /main also have the files.
    I don't think it is due to site issues, but any mis-configuration may caused the issue (I think, and am not very well in cpanel tweaking) DO you think I need to check any specific option to run PHP Susexc module to work the folder as having 777 permission ?
    I think it's better to post a ticket as you said.

    Regards,
    Sakeer.
     
    #7 bilberh, Feb 5, 2015
    Last edited by a moderator: Feb 5, 2015
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Check to verify you are using the same PHP handler on the destination server:

    "WHM Home » Service Configuration » Configure PHP and suEXEC"

    Thank you.
     
Loading...

Share This Page