12.04 LTS Apache2 writing files from webpage at runtime has no effect - possible read/write permissions?

Posted by J Green on Ask Ubuntu See other posts from Ask Ubuntu or by J Green
Published on 2012-07-03T13:01:11Z Indexed on 2012/07/03 15:24 UTC
Read the original article Hit count: 177

Filed under:
|
|

I'm running 12.04LTS with Apache and Mono in VirtualBox, with the goal of hosting a web app (coded in ASP.NET and C#) on my local network. The scripts on the page are able to successfully read from text files in the same directory as my site (/var/www/mysite/) but do not seem to be able to write. I'm sure the code works, because it did with my testing in Visual Web Developer on Windows. I don't get any errors, but when I click the button on the loaded webpage, the text file in question does not change.

I'm fairly new to Linux in general, so I'm not too familiar with how to set permissions properly, and it may be a permissions issue. Unfortunately, I have searched all over the internet and haven't found a solution that worked, but I've tried (perhaps incorrectly) changing the owner of the files in question to www-root, changing the mode to a+rw, but sadly to no avail.

I have tried everything here but it doesn't work:

I hope someone can help me out.

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about apache