?
Solved

How to allow Apache web site docs folder and subfolders to be modified remotely

Posted on 2011-09-30
7
Medium Priority
?
280 Views
Last Modified: 2012-05-12
We have a CentOS server setup recently & it's running Apache.  If I ssh and log into the console, I can edit any /var/www/html docs that I need to if I use sudo to do the edits.

However, I would like to use Dreamweaver on my local system to do my edits, then ftp them over directly.  I'm able to successfully connect via Dreamweaver, and can do the edits, but since I don't have a way to "sudo" via Dreamweaver (unless there is a way???), I can't actually edit anything.

What do I need to change on the server to allow me to be able to make my edits remotely via Dreamweaver (over secure ftp)?

I do this routinely on a hosted web site that I have that runs on some flavor of linux, but I have no idea how the company sets this up on their end to allow such direct edits to the web files.
0
Comment
Question by:sah18
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 7

Accepted Solution

by:
jackiechen858 earned 2000 total points
ID: 36893434
What's the ftp user you are using to login to the server?

you can ssh to the server, sudo to root,

run "chown -R ftpuser /var/www/html"

so the /var/www/html will be owned by the ftp user.
0
 
LVL 9

Expert Comment

by:parparov
ID: 36894856
You can use sftp as the ftp client for Dreamweaver and provide root credentials for login then.
0
 
LVL 9

Author Comment

by:sah18
ID: 36909322
I currently have my Dreamweaver site setup to connect via SFTP to the web server.  However, I only have my own login to the server, and don't know the actual root password.  I am in the sudo-ers group, and can sudo needed commands at the command prompt, however, I don't see a way in the Dreamweaver server settings to have it allow me to act as root.  Is there something I'm missing in how to set this up?
0
Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

 
LVL 9

Author Comment

by:sah18
ID: 36909339
Also, specifically to jackiechen -- I'd prefer this be more general than only for my specific user login, if possible.  Right now, I'm the only one needing to make these changes, but down the road, we'll at least have 1 or 2 other users who will need to make edits to the web folder content as well.  Is there a way to do with a group owning that folder?  If so, can you lead me through it (group creation, adding a user to the group, and having the group own the www folder)... or will this not work?
0
 
LVL 7

Expert Comment

by:jackiechen858
ID: 36932115
chown -R ftpuser:somegroup /var/www/html  
(  you can create a new group on the server , and include all the users you want have access in it)


chmod -R g+w  /var/www/html    ( this allow all users belong to the somegroup have write permission )
0
 
LVL 7

Expert Comment

by:jackiechen858
ID: 36932132
on centos, to add an new group, you can run groupadd somegroup; if you already have a group somegroup, you can run vigr to edit group. you need to know how to use vi.
0
 
LVL 7

Expert Comment

by:jackiechen858
ID: 36932306
for all the users, you might want to make sure their default group ( the fouth colume in /etc/passwd file be the groupid for somegroup ( you can see it be vigr).

This way when they create new file on /var/www/html, it will be owned by theiruser:somegroup, then anybody else can also edit it.

Otherwise
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question