UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  eUKhost's Official Web Hosting Forum > Web Hosting and Domains > PHP Hosting

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2009, 16:06
Member
 
Join Date: Jul 2007
Posts: 89
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-02-2009, 04:32
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 628
Default

Which OS do you have on your Semi-dedicated.. Linux or Windows..?
__________________
Martin
Chief R & D Officer.

Windows 100% Uptime Hosting - Windows Dedicated Server - Web Hosting Tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-02-2009, 08:55
Member
 
Join Date: Jul 2007
Posts: 89
Default

We used Linux on both accounts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-02-2009, 08:56
Rock's Avatar
Technical Support (eUKhost.com)
 
Join Date: Oct 2006
Location: localhost
Posts: 3,356
Send a message via MSN to Rock Send a message via Skype™ to Rock
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 13-02-2009, 07:13
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 628
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..
__________________
Martin
Chief R & D Officer.

Windows 100% Uptime Hosting - Windows Dedicated Server - Web Hosting Tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 13-02-2009, 08:37
Member
 
Join Date: Jul 2007
Posts: 89
Default

I've asked your support team to switch the server to suPHP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 13-02-2009, 09:15
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 628
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.
__________________
Martin
Chief R & D Officer.

Windows 100% Uptime Hosting - Windows Dedicated Server - Web Hosting Tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 14-02-2009, 21:42
Member
 
Join Date: Jul 2007
Posts: 89
Thumbs up

It is working great now, thanks for your support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
permissions, php, reseller, semi-dedicated server


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 20:43.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
UK Web Hosting by eUKHosting 3.1.0
UK Web Hosting by eUKHosting 3.1.0
Copyright © 2001-2012, eUKhost LTD. All rights reserved.

 


UK VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

VoIP Dedicated Servers
Asterisk, Trixbox Dedicated Servers

Business Web Hosting
100% uptime Hosting

UK Cpanel Hosting
cPanel Shared Hosting

Domain Hosting
Cheap Domains & Hosting Plans

UK Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting
 
 

Android and Apple App


knowledgebase articles
eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting

 

Web Hosting Affiliate Program
 

popular blog categories

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles