Solved

Beginning Joomla on Ubuntu

Posted on 2011-09-12
3
351 Views
Last Modified: 2012-05-12
I've decided to learn Joomla and I setup an ubuntu environment as a test bed.  I was able to get the basics working.  I am struggling with file permissions.  

I log onto my ubuntu machine as user 'myUser/.  But all the web stuff goes under /var/www  

In order to edit a file i have to 'sudo vi'  or 'chown myUser'.   I eventually got tired of that and did a 'sudo chmod -R 777 /var/www' .  This shotgun method worked, but I can't imaging its good practice.    

How do I setup myUser to edit /var/www for easy editing and still maintain some decent security?

0
Comment
Question by:tmonteit
3 Comments
 
LVL 6

Accepted Solution

by:
yjchong514 earned 250 total points
ID: 36527196
chmod 744 for your user.
Refer: http://www.december.com/unix/ref/chmod.html for command tutorial.

To start your login with /var/www:
1.Adding your user to /var/www:
sudo useradd your_user -p your_password -d /var/www -s /bin/false
sudo passwd your_user

2. change the directory specifications in the /etc/proftpd/proftpd.conf file
E.g:
...
<Directory /var/www>
Umask 022 022
AllowOverwrite off
        <Limit DELE XMKD RNRF RNTO RMD XRMD>
        DenyAll
        </Limit>
        <Limit MKD STOR>
        AllowAll
        </Limit>
</Directory>
.....

Good Luck!

Rgds,

yjchong514
0
 

Author Comment

by:tmonteit
ID: 36527293
Confused... /var/www is the directory of all my web stuff and I can't log in as /var/www.

When I try that command, it says:   useradd:  your_user already exists.

0
 
LVL 4

Assisted Solution

by:undersky
undersky earned 250 total points
ID: 36527524
you can simply add self to www-data group :)

sudo adduser uruser www-data

also chmod 775 /var/www/ -R
sudo /etc/init.d/apache2 restart
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

First of all, we will need Jumi component or Sourcerer plugin for this to work. We need either of these because the main focus here is custom development outside of the standard modules or articles within Joomla. You can find Jumi here...it's my …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

896 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now