LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debain server permissions on new files dont alow remote viewing HELP! (https://www.linuxquestions.org/questions/linux-newbie-8/debain-server-permissions-on-new-files-dont-alow-remote-viewing-help-598145/)

antinull 11-08-2007 03:15 PM

Debain server permissions on new files dont alow remote viewing HELP!
 
Okay,
I have a debian server with apache, php , mysql ect
Everytime i add a new file i have to do chown and chmod on my /var/www directory just to alow it to be shown remotely is there a way to automatically make new files visible?

i get this error
"Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/www/test/today2.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0"

after i chown and chmod the /var/www directory the page opens fine
Any help would be appreiciated... this is making page testing difficult

griffey 11-08-2007 03:22 PM

What are the permissions set at on your /var/www/ directory normally?

And are you saying the permissions change when you copy a file to that directory?

(FWIW, my /var/www/ is owned by user root, and group root, and has permissions of 755....)

G.--

antinull 11-08-2007 03:26 PM

okay my ownership is one of my users not root and permissions is 755
every time i upload a file i cannot read it from a web browser remotely
thats the problem im having

griffey 11-08-2007 03:45 PM

Well if the permissions on the file all include read-only, and so do the permissions of the directories above it, it should work.

You said that every time you add a file, you have to go back and change the permissions, or did I misunderstand that from your first post. What were the permissions before you changed them so that they work, and what did you change them to?

G.--

antinull 11-08-2007 03:49 PM

http://www.antinul.com/test/today (did changes after adding)
http://www.antinul.com/test/today2( did not change permissions after adding)
my main computer is a windows pc and im ftping the files over
does that make sence?

griffey 11-08-2007 04:02 PM

I assume you changed permissions on the first one, and didn't change permissions on the second one?

If that's the case, I would guess that your Windows FTP client is putting wonky permissions on the files you FTP over to your server.

You might try downloading something like PuTTy and using it in SSH/SFTP mode, to guarantee that your files that you are copying over are owned by the account that you log in with.

I don't have a lot of experience with FTP clients on Windows--sorry.

Good luck.

G.--


All times are GMT -5. The time now is 04:26 AM.