LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2007, 08:10 PM   #1
czy11421
LQ Newbie
 
Registered: Apr 2004
Posts: 28

Rep: Reputation: 15
apache server, user files.


My apahce2 server has some problem. It could see php files in /srv/www/htdocs. But I copy php files to /home/username/public_html, and I type http://localhost/~username/my.php, it can't find it.

some setting is missing.

Thanks.
 
Old 07-04-2007, 10:11 PM   #2
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
Looks like you are accessing your webserver (through browser) as a web-user. Would you really want a web-user (from the internet) to be able to access your home folder?

Seems to be a permissions problem.

Can you open up the "my.php" with a web browser?
 
Old 07-04-2007, 10:32 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have UserDir public_html in your httpd.conf file? If so, does the user that Apache is running as (the User and Group settings) have permissions to view the contents at /home/username/public_html? You'll probably need permissions of 0755 on each of /home, /home/username and /home/username/public_html.

Also, make sure that the rest of the files/directories under /home/username don't have permissions set that anyone else can view them.
 
  


Reply



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
Preserving user accounts/files on server migration. linmaster Linux - Server 1 05-18-2007 03:08 PM
FC5 Apache won't server up files on symlink bricox Fedora 6 05-11-2006 09:26 AM
Apache Server won't serve up large files perrond Linux - Networking 4 06-21-2004 10:53 AM
Can't view apache server files on lan Remy Avril Jr. Linux - Newbie 18 10-20-2003 08:38 AM
Apache portal to files on NT server josephswagner Linux - Software 5 03-31-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 PM.

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