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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-08-2007, 04:15 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 25
Rep:
|
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
|
|
|
11-08-2007, 04:22 PM
|
#2
|
Member
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89
Rep:
|
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.--
|
|
|
11-08-2007, 04:26 PM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 25
Original Poster
Rep:
|
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
|
|
|
11-08-2007, 04:45 PM
|
#4
|
Member
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89
Rep:
|
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.--
|
|
|
11-08-2007, 05:02 PM
|
#6
|
Member
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89
Rep:
|
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 05:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|