PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > need with apache
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

need with apache

Réponse
 
LinkBack Outils de la discussion
Vieux 01/02/2008, 12h31   #1
shahin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut need with apache

Hi I am newbie,

I did setup my first Debian with apache+mysql-server and PHP, and
every thing working as I want, when type the ip address of my server
and point it to a map in /var/www I can open my test web site.

here is the problem,

I did connect to my server via ssh and then try to down load 2 files
from a site with wget

wget http://heanet.dl.sourceforge.net/sou...y-4.1.2.tar.gz

and secound one:

wget http://heanet.dl.sourceforge.net/sou...y-3.6.2.tar.gz

after download
-rw-r--r-- 1 root root 241227 2004-07-13 01:49
dummy-3.6.2.tar.gz
-rw-r--r-- 1 root root 9424 2007-07-16 21:25
dummy-4.1.2.tar.gz

when I run the
tar xzf dummy-4.1.2.tar.gz

I get this:
drwxr-xr-x 6 root root 4096 2008-02-01 13:22 dummy-4.1.2

and for

tar xzf dummy-3.6.2.tar.gz

I get this:

drwxr-xr-x 6 www-data www-data 4096 2008-02-01 13:24 dummy-3.6.2

why after runing untar one has root as owner and group and othere one
has www-data as group and ownder

here is the real problem when I move both of this 2 files to my /var/
www I can open deummy 4 in the web browser but when I try to open
dummy 3 I get this error;

Forbidden
You don't have permission to access /shahin/ on this server.


--------------------------------------------------------------------------------

Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 Server at 132.229.35.233 Port
80

I did run:

chown -R root:root dummy-3.6.2

but still not able to open it from web browser.

Any Idea what is going on here?

Thanks shahin



  Réponse avec citation
Vieux 07/03/2008, 22h39   #2
Cameron Walsh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need with apache

shahin wrote:
> here is the real problem when I move both of this 2 files to my /var/
> www I can open deummy 4 in the web browser but when I try to open
> dummy 3 I get this error;
>
> Forbidden
> You don't have permission to access /shahin/ on this server.
>
>
> --------------------------------------------------------------------------------
>
> Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 Server at 132.229.35.233 Port
> 80
>
> I did run:
>
> chown -R root:root dummy-3.6.2
>
> but still not able to open it from web browser.
>
> Any Idea what is going on here?


The error message means that your Apache server is not configured to
allow access to the /shahin/ folder. Presumably you tried to access
something like http://127.0.0.1/shahin/ ?

Make sure apache can read the shahin folder.

You now need to edit your apache config file, which is probably in
/etc/httpd/httpd.conf or /etc/httpd/conf/httpd.conf or similar. There
will be a number of <directory> entries. Find the one with the
following comment above it:

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory /var/www/htdocs/>

and make sure the directory does point to your document root (defined
earlier in the config file). Copy this <directory>...</directory>
section for your subdirectories if you want the permissions or other
directives to be different for those subdirectories. Also make sure the
"Allow from" directive is allowing the correct users, e.g. "Allow from
all" or "Allow from 192.168.".

See the directory documentation at
http://httpd.apache.org/docs/2.2/mod...html#directory

Hope that s,

Cameron.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10770 seconds with 10 queries