LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2001, 04:57 PM   #1
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
Question apache question


i have (what i would hope to be) a small problem with apache. i changed my DocumentRoot directory to /home/user/www/ so that i can more efficiently use virtual hosts. however, when attempting to access my new DR via the web (http://my_ip/) i get a 403 Forbidden error. yet, when i type in the full url (http://mp_ip/index.php) the file is executed as it should be. i've changed the permissions of the file and the directory to 755, but the problem still persists. any and all help is appreciated. :-)
 
Old 08-22-2001, 06:21 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
in your config file.. you need to specify that index.php is a valid index type page..
it should be where you see index.htm and index.html.... as document start pages or whatever... that i think could be the problem.
 
Old 08-22-2001, 06:41 PM   #3
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Original Poster
Rep: Reputation: 30
i looked into that, but apparantly that wasn't the problem. my /var/www/html/ directory is browsable when i remove or rename the index.html file. however my /home/user/www/ folder is not browsable (both via browser). when an index.html file is placed in there, the server will display that page, however i use php and not html extensions. i *could* have my index.html file point to its php counterpart, but that seems tedious to me. plus i would like to have browsable directories.

i've checked, and both my /var/www/html/ and /home/user/www/ directories have the same permissions. any suggestions?
 
Old 08-22-2001, 06:49 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
i am not talking about the actual file of our index.php.. i am talking about in http.conf, there is the configuration of what it looks for in looking for a default page.... you should add the extension .php as a valid start page or index type page.
 
Old 08-22-2001, 07:31 PM   #5
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Original Poster
Rep: Reputation: 30
yes, i know what you're talking about with the httpd.conf file. i just a few minutes ago enabled the DirectoryIndex of my virtual host, and now it defaults to index.php as well as index.html.

however, my original problem is not being able to browse directories still persists... any and all suggestions are, as always, appreciated.
 
Old 08-23-2001, 10:13 AM   #6
ektoric
LQ Newbie
 
Registered: Jun 2001
Location: Austin, TX
Distribution: FC5/6
Posts: 23

Rep: Reputation: 15
You mentioned you changed the DocumentRoot, did you change the <Directory > directive?

If you look at httpd.conf, search for DocumentRoot, the section right below that should be the default directory permissions
<Directory />
...
</Directory>

Then following that, should be the permissions for your documentroot
<Directory "[DocumentRoot]">
...
</Directory>

Also, remember to update your path to your icon and cgi-bin aliases.. Those are under
<IfModule mod_alias.c>

hmm.. i just used some gt/lt symbols.. i wonder if they'll be interpreted as html for this forum.. heeheh...
 
Old 08-23-2001, 10:39 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by ektoric
hmm.. i just used some gt/lt symbols.. i wonder if they'll be interpreted as html for this forum.. heeheh...
Nope HTML won't show up... but vb Code is turned on.
 
Old 08-23-2001, 04:10 PM   #8
Teller_30
LQ Newbie
 
Registered: Aug 2001
Location: Oregon Coast
Distribution: RH7.2
Posts: 27

Rep: Reputation: 15
Unhappy /etc permissions

I had a similiar problem... my fix was to change the permissions on the /etc directory from 754 to 755...

It worked for me...

You might try changing the permissions on any other dir that you think could be the culput.
 
Old 08-23-2001, 06:14 PM   #9
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Original Poster
Rep: Reputation: 30
success! the problem was, in fact, that i did not have the following syntax in my virtualhost configuration:

<Directory /home/user/www/>
Options Indexes
</Directory>

though i'm still confused as to why my /var/www/html/ folder had indexing enabled, when the indexing option appeared nowhere in my httpd.conf file. odd. oh well... my problem is solved. thanx everyone for your help. :-)
 
  


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
Question - (apache?) pylon42 Linux - General 7 03-23-2005 08:55 AM
Apache Question Sideshow Linux - Networking 6 02-13-2004 06:31 PM
another apache question peteABK Linux - Software 8 05-27-2003 03:58 AM
Apache question plisken Linux - Software 1 02-25-2003 03:40 PM
apache question davsingl67 Linux - Newbie 1 12-11-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:53 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