0
votes
2answers
27 views

OEM Server www directory permissions

I am building a simple LAMP that records factory automation data and serves that info locally to tablets and PC's via wifi. I have it set to boot-up automatically when power is applied and log-in ...
0
votes
0answers
229 views

Apache 403 Forbidden when following a symlink

I currently have a dual boot between Windows and Ubuntu 12.04, using a separate partition to be able to access the same files between the two. So, currently my files are under /media/Files My ...
0
votes
1answer
100 views

Giving www-data access to files with 750 permissions

I have a situation where I want to prevent users of the system to browse each other's home dirs. So all home dirs have 750 permissions, instead of 755. Some users have www folders where they host ...
6
votes
3answers
20k views

Grant a user permissions on www-data owned /var/www

I have a simple web server setup for some websites, with a layout something like: site1: /var/www/site1/public_html/ site2: /var/www/site2/public_html/ I have previously used the root user to ...
0
votes
0answers
73 views

How to change apache2 root to media directory

I have edited the /etc/apache2/sites-available/default as. <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /media/username/01CEC9E69E985ED0/xampp/htdocs ...
1
vote
0answers
51 views

Allow www-data to execute a particular command

How shoud I do to allow the user www-data to execute a command like at or cronjob?
1
vote
3answers
4k views

Apache 'You don't have permission to access / on this server'

I just install apache2 on ubuntu,the default www directory is /var/www/ ,I use ln to link it to '/media/Software/Program Files/wamp/www/' at the windows directory,but the apache shows 'You don't have ...
1
vote
1answer
952 views

How to encrypt php folder under /var/www?

I need to encrypt the folder /var/www/test. The folder contains PHP files. The goal it to prevent any user to read the php content AND if the HD is mounted on another computer, the /var/www/test ...
2
votes
2answers
4k views

chmod u+s in /var/www

i have a problem at granting the right rights for the right user... i want to run pootle with apache, so i downloaded pootle. Then i copied it to /var/www, installed it and gave the www-data user ...
2
votes
2answers
498 views

What are the benefits of having www in the home folder than in the default /var/www folder

I am trying to explain some students what are the differences between having www on the home folder, for example /home/cyrex/www and in the /var/www. So I wanted to ask here what are the benefits of ...
3
votes
4answers
6k views

Permissions for apache webroot folder on dev server?

I am a web developer and have Apache setup on my local system for testing. I keep running into issues with the permissions e.g. unless I chmod any new directories to 777 my IDE cannot write to the ...
0
votes
1answer
698 views

After 12.04 Upgrade - /var/www is missing

I just upgraded from ~10.10 (it was stuck, un-upgradeable) to 12.04 by installing over the top of the existing installation. The home folder and desktop files all seem to still be present, as ...
0
votes
0answers
83 views

Does installing Apache overwrite ALL (including mounts) www folders? [duplicate]

I have a old hard drive (with Ubuntu 32b) that was running my website. The site was located in /var/www/vhosts/debug.onlinelabtests.com I removed the hard drive, and dropped in a new one. Install ...
5
votes
1answer
10k views

Easy way to change apache www location

instead of chaning permissions to /var/www, installing nautilus permission related extensions or having to execute gksu i want to know an easy to do way of changing /var/www to another place like ...
38
votes
2answers
15k views

Why shouldn't /var/www have chmod 777

When developing a page on a localhost, I sometimes get a "Permission denied" error which I can solve by running chmod -R 777 /var/www. However, people are telling me that this is a bad idea for ...