Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

need help with apache

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Related Topics:
Subversion LDAP config Apache 2 vs Apache 2.2 - Hello! I just spent about 6 hours solving a problem under Apache 2.2 and wanted to record the solution for the benefit of the hive mind. This is the error I saw in my Apache log: [LDAP: contact LDAP..

Apache 2 + PHP - Hello, are there still any issues about using Apache 2 with PHP? Is there a list somewhere around? Thanks, Florian -- ++ +++

Apache::ASP - Has anybody used On what platforms is it Is it working with COM

Apache and php - I have just Mandrake 9.1, Apache2 and php 4.3.0. I have added a line in - The line is in the end of the Would this be enough to get php to work? I can't read and I am..

apache 'n' xml-rpc - hi I would want to know as he configure Xml-Rpc server on apache.
Next:  Apache: mod_speling_Funktionalität_für_per_Map_definierte_  
Author Message
shahin

External


Since: Feb 01, 2008
Posts: 5



(Msg. 1) Posted: Fri Feb 01, 2008 4:31 am
Post subject: need help with apache
Archived from groups: alt>apache>configuration (more info?)

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/sourceforge/typo3/dummy-4.1.2.tar.gz

and secound one:

wget http://heanet.dl.sourceforge.net/sourceforge/typo3/dummy-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

 >> Stay informed about: need help with apache 
Back to top
Login to vote
Cameron Walsh

External


Since: Dec 10, 2007
Posts: 5



(Msg. 2) Posted: Sat Mar 08, 2008 9:39 am
Post subject: Re: need help with apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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/core.html#directory

Hope that helps,

Cameron.

 >> Stay informed about: need help with apache 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]