The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Apache start problem maheshsri SUN Solaris 1 03-13-2006 06:07 AM
Apache with SSL problem b_manu78 SUN Solaris 2 03-23-2005 06:13 PM
Problem loading php.mod on apache 2.0 moxxx68 UNIX for Advanced & Expert Users 2 01-07-2005 11:12 PM
problem when install apache in AIx4.2 chiyx UNIX for Dummies Questions & Answers 3 09-07-2001 09:37 AM
apache-ssl https-problem? loitschix UNIX for Dummies Questions & Answers 1 07-23-2001 01:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-20-2007
mjdousti's Avatar
mjdousti mjdousti is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 60
Apache 2.2 problem

Hi all,
I'm a user of Debian 4.0. I installed apache 2.2 and add the functionality to support ~/public_html for each user. This is the permission of my public_html:
drwxr-xr-x 4 mj test 4096 2007-12-20 20:17 public_html
When I wanted to go through it and list the directory via my browser, it told me:
Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
But when I put index.htm in the public_html the browser can load it.
Where is the problem?
  #2 (permalink)  
Old 12-20-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
That seems to suggest directory listing is prohibited. For security reason, this is typically the default.

core - Apache HTTP Server

Look at the "Indexes" option.
  #3 (permalink)  
Old 12-21-2007
mjdousti's Avatar
mjdousti mjdousti is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 60
I put this in /etc/apache2/mods-enabled and restarted the apache server.
lrwxrwxrwx 1 root root 32 2007-12-21 10:46 autoindex.load -> ../mods-available/autoindex.load
But nothing changed!
  #4 (permalink)  
Old 12-21-2007
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 208
IIRC you need to add the Indexes option to the <Directory *> part of http.conf (or the conf file for your server - on Debian it may be under sites-{available|enabled}.

also, (I'm nowhere near a Debian system at the momen, so this may be wrong) I think the symlink you created has to start with a number, so try making it:

01-autoindex.load -> ../mods-available/autoindex.load
  #5 (permalink)  
Old 12-21-2007
mjdousti's Avatar
mjdousti mjdousti is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 60
My problem was in file /etc/apache2/mods-available/userdir.conf
I put <Directory /home/*/*/public_html> from my previous server. And now I replaced it with <Directory /home/*/public_html> and every things becomes OK.

Thanx to all.
  #6 (permalink)  
Old 12-21-2007
mjdousti's Avatar
mjdousti mjdousti is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 60
I've faced another problem with my Apache server.

I installed php5 php5-common php5-cli libapache2-mods-php.
After restarting apache, I couldn't run any php on my server. (even phpinfo())
It showed me:
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: test.php

If you think this is a server error, please contact the webmaster.
Error 500
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0