|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|