LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2007, 04:15 PM   #1
antinull
LQ Newbie
 
Registered: Oct 2007
Posts: 25

Rep: Reputation: 15
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
 
Old 11-08-2007, 04:22 PM   #2
griffey
Member
 
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89

Rep: Reputation: 15
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.--
 
Old 11-08-2007, 04:26 PM   #3
antinull
LQ Newbie
 
Registered: Oct 2007
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 11-08-2007, 04:45 PM   #4
griffey
Member
 
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89

Rep: Reputation: 15
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.--
 
Old 11-08-2007, 04:49 PM   #5
antinull
LQ Newbie
 
Registered: Oct 2007
Posts: 25

Original Poster
Rep: Reputation: 15
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?
 
Old 11-08-2007, 05:02 PM   #6
griffey
Member
 
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89

Rep: Reputation: 15
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.--
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debain Etch remote server xfce4 setup tethead Debian 2 04-29-2007 01:50 PM
how to copy files from a remote server man1979 Linux - General 3 08-16-2005 07:08 AM
How do I dial in to a remote server and transfer files? yilez Linux - Networking 1 05-18-2004 11:40 AM
copy files using SSH from a server to another..both remote Santosh_d Linux - Networking 6 03-11-2004 12:02 AM
copy files from a server to another..both remote Santosh_d Linux - Networking 1 03-09-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration