Results 1 to 8 of 8

Thread: Permissions

  1. #1
    stukelly is offline Member
    Join Date
    Jul 2007
    Posts
    90

    Default Permissions

    Just before Christmas we transferred our reseller account to a semi dedicated server. Since then we have had trouble with file permissions for uploading files.

    We are using the PHP copy function.

    On the reseller hosting does the PHP/Apache user have different default permissions than the semi dedicated server?
    Last edited by stukelly; 11-02-2009 at 16:06. Reason: spelling

  2. #2
    eUK-Martin's Avatar
    eUK-Martin is offline Windows System Administrator
    Join Date
    Nov 2005
    Location
    Earth
    Posts
    629

    Default

    Which OS do you have on your Semi-dedicated.. Linux or Windows..?

  3. #3
    stukelly is offline Member
    Join Date
    Jul 2007
    Posts
    90

    Default

    We used Linux on both accounts.

  4. #4
    Rock's Avatar
    Rock is offline Technical Support (eUKhost.com)
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Post

    Quote Originally Posted by stukelly View Post
    Just before Christmas we transferred our reseller account to a semi dedicated server. Since then we have had trouble with file permissions for uploading files.

    We are using the PHP copy function.

    On the reseller hosting does the PHP/Apache user have different default permissions than the semi dedicated server?
    Hello Stuart,

    Yes, you're right.. our shared/reseller servers are setup with SuExec & suPHP method, to which I think your Semi Dedicated server isn't, as these modules aren't enabled by default cPanel configuration.

    SuExec is an Apache module; as the name suggests executes files using the SU command - SU command simply switches users under which a process runs. That gives users the capability to run CGI and SSI programs using user IDs that are different from the user ID of the calling web server.. This effectively means that CGI and SSI programs will not have access to the root account or have root permissions. In other words, although the web server is using Apache/Nobody as user/group, once you initiate a script to be run from your account, it will be run with your own username. Having that said, since all files/folders and process runs are owned by your username, 777 permissions equals 755 ones in functionality.

    su is usually the simplest and most convenient way to change the ownership of a login session to any other user. Since lots of CGI scripts are used to send mail, it will be easier to watch them those who send emails using such scripts..

    While suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

    Basically, SuExec is used for CGI/SSI scripts whereas suPHP typically for PHP ones.. Having both of them configured/setup on your server would be recommended as it'd be a step closer towards security. If you want to have these modules to be installed on your server, please contact our VPS or Support Dept & they'd get this done for you quickly, it requires a simple change in the config from WHM & the PHP/Apache recompile using the easyapache script..

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  5. #5
    eUK-Martin's Avatar
    eUK-Martin is offline Windows System Administrator
    Join Date
    Nov 2005
    Location
    Earth
    Posts
    629

    Default

    Great work Rock...!!

    I suppose it would be easy to switch to PHPSuexec rather than playing with the permissions.. if you have problems switching, you can ask our VPS team to do it for you..

  6. #6
    stukelly is offline Member
    Join Date
    Jul 2007
    Posts
    90

    Default

    I've asked your support team to switch the server to suPHP.

  7. #7
    eUK-Martin's Avatar
    eUK-Martin is offline Windows System Administrator
    Join Date
    Nov 2005
    Location
    Earth
    Posts
    629

    Default

    Quote Originally Posted by stukelly View Post
    I've asked your support team to switch the server to suPHP.
    Great.. I hope things would get sorted for you.

  8. #8
    stukelly is offline Member
    Join Date
    Jul 2007
    Posts
    90

    Thumbs up

    It is working great now, thanks for your support

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •