LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2006, 06:11 AM   #1
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Rep: Reputation: 9
Apache 2.2 problem


i installed Apache . It iwas installed and working fine. I was able to get the default web page of apache. I made a website and installed it in /var/www/html/ . I was able to see the website.
Then i changed the website path /home/mywebsite/ . It gives 403 error. Says forbidden. I checked the error log it says permission denied on /home/mywebsite/.
I canged the permissions also it gives me the same error.
I would be very thankful for your help
 
Old 03-28-2006, 06:25 AM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
this might be a dumb idea, but have you restarted apache

/etc/init.d/httpd restart

i see you've only made one post so i'll make sure you know how to change permissions

chown apache:apache -R /home/mywebsite

chmod a+rwx -R /home/mywebsite

have you enabled apache's access to home directories or have you just made the root directory of your apache server /home/mywebsite?

check out mywebsite listed below, there is a bit of information on apache, mostly 2.0, i'm just getting started on 2.2
 
Old 03-29-2006, 06:02 AM   #3
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
Thanks Paul,

I did whatever you suggested but I could not solve this problem. My directory is under root i.e. /home/mywebsite/
 
Old 03-29-2006, 06:12 AM   #4
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
Thanks Paul,

I did whatever you suggested but I could not solve this problem. My directory is under root i.e. /home/mywebsite/
 
Old 03-29-2006, 06:37 AM   #5
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
what do you mean by /home/mywebsite/? have you changed the httpd.conf file to make the root directory of your apache server /home/mywebsite/? or is your website just at /home/mywebsite/ and your trying to access it?

if you are you'd probably want to add something like this into your httpd.conf

Alias /mywebsite "/home/mywebsite/"

so you can go to http://ip-address-of-apache-server/mywebsite

or change

DocumentRoot /var/www/html
to
DocumentRoot /home/mywebsite

Last edited by paul_mat; 03-29-2006 at 06:40 AM.
 
Old 03-30-2006, 04:33 AM   #6
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
Thank you Paul for being patient with me. What I did that I gave the DocumentRoot path to /home/mywebsite.Then also It gave the same message. I deleted the apache and httpd directory by mistake. Now I have to reinstall Linux once again as my httpd is gone.
Can you please tell me the dummy way that if I want to put my website to some directory other than the default /var/www/html say /home/mywebsite how I should proceed. i am working on Red Hat Linux enterprise 4.0
Thanks so much.
 
Old 04-02-2006, 08:17 AM   #7
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
I reinstalled linux and changed the path of documentroot and now it is running fine.
 
  


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
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache problem Baltasar Linux - Software 2 08-28-2004 04:31 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration