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!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > VPS Hosting - Virtual Private Servers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-2008, 15:17
Member
 
Join Date: Jun 2008
Posts: 51
Default ftp/ww permissions

hi all.. i've submitted a ticket but my email from my other host is playing up, so i cant get to it..

anyway.. new to all this VPS Hosting and got a problem with a CMS package and creating new pages. It wont allow me to create new pages via the admin panel due to "insufficient privilidges", now as far as i'm aware this is due to the fact that i FTP's the files as explained from the help section of the software website hosting.

"To access a file on a server, one requires a user account on that server. In general, the user account is password protected and assigned to a certain group. The following groups can be found on many web servers: ftp-user, root, wwrun-user. All actions and programs (e.g. FTP) which are executed on a system are executed with the permissions of a certain user.
Note:
Files uploaded via FTP to the webserver are in general assigned to the group: ftp-user. Files created via a PHP script on the server are in general assigned to the group: wwwrun-user. Depending on your server settings, files created by a PHP script may not be edited or deleted by a FTP program and vice versa."



So, how do i change this setting on WHM? i'm going to be transferring sites via ftp and afterwards i obviously want the php scripts to be able to change stuff and create pages,directories etc.. but at the moment they cant..

Thanks
adrian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-06-2008, 17:47
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 462
Default

Hello,

You will require to change the permissions of the folder, in which want want php to be able to upload, to 777.
If you have any confusions then you can always ask to do it for you.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-06-2008, 18:46
Member
 
Join Date: Jun 2008
Posts: 51
Default

nah that was the first thing i tried... no joy. I'm familiar with chkmod's and permissions but this seems to be a server config thing.

From what i can tell its from the way the web site hosting is uploaded.. ie if the files are created via ftp then they have ftp as the owner, and not www. eg ftp-user and wwrun-user. I'm guessing the folders all must be ftp as the php scripts cant do anything with them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 16-06-2008, 17:16
Member
 
Join Date: Jun 2008
Posts: 51
Default

okay an update..

I can get writeable folders by chkmod'ing to 777, but not 755. I'm installing a CMS via an installation wizard on a package that i ftp'd.

what have i set up wrong? Why cant i get permissions on 755?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 16-06-2008, 19:09
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 462
Default

This is how permissions are defined in Linux:
If I put them horizontally, they would read as:

755:
----
7 = Read [ 1 ] + Write [ 2 ] + Exe [ 4 ] for the owner/user.
5 = Read [ 1 ] + Exe [ 4 ] for the group.
5 = Read [ 1 ] + Exe [ 4 ] for the World/Other.

777:
----
7 = Read [ 1 ] + Write [ 2 ] + Exe [ 4 ] for the owner/user.
7 = Read [ 1 ] + Write [ 2 ] + Exe [ 4 ] for the group.
7 = Read [ 1 ] + Write [ 2 ] + Exe [ 4 ] for the World/Other.

Since PHP runs as others it will require 777 permissions to be able to write in to a folder.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 16-06-2008, 21:07
Member
 
Join Date: Jun 2008
Posts: 51
Default

it wasntl like that my old shared reseller i could use 755 i think.
okay.. since i'm now needing to use the package to create pages in the web root, i need to chkmod my public_html to 777? seems a bit odd.

Last edited by freeflyer; 16-06-2008 at 21:10.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 17-06-2008, 14:09
Member
 
Join Date: Jun 2008
Posts: 51
Default

found the prob.. my old host was running php as a CGI, so permissions were different.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 17-06-2008, 14:31
Junior Member
 
Join Date: Apr 2008
Posts: 25
Thumbs up File permissions

Check out this post UK Web Hosting | Dedicated Server Windows and Linux VPS Hosting Forum > Technical Support > VPS Hosting - Virtual Private Servers
Joomla 1.5.2 FTP Layer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 17-06-2008, 14:50
Member
 
Join Date: Jun 2008
Posts: 51
Default

thanks

okay, so am i right in setting my public_ftp to 770 then?

How do i do this bit?
" I changed the apache handler to suphp."

i have no suphp option in the php config on whm.

thanks..

Last edited by freeflyer; 17-06-2008 at 14:56.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 17-06-2008, 16:46
Junior Member
 
Join Date: Apr 2008
Posts: 25
Default

Quote:
Originally Posted by freeflyer View Post
thanks

okay, so am i right in setting my public_ftp to 770 then?

How do i do this bit?
" I changed the apache handler to suphp."

i have no suphp option in the php config on whm.

thanks..
In WHM go to service configuration, then configure PHP and SuExec. Here you will see what your PHP handler is. It is most likely DSO, I changed mine to Suphp and it solved all my permission problems. You may need to re install your CMS, I changed all files Groups and ownership through SSH in power panel, then all sites worked OK
All my directories (folders) are at 755, most files are 644.
Ownership of all directories are account name. Groups are all account name except public_html which is nobody, its the only way I could get Joomla 1.5.3 to work correctly.
Hope this helps.
PS. Make a backup in power panel before you change anything.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

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


All times are GMT. The time now is 16:06.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

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

Customer Testimonials
eUK Customer Testimonials


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


popular blog categories


Web Hosting
Website Hosting articles

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

Web Hosting
Web Hosting Service