Home | Community | Message Board


Sporeworks
Please support our sponsors.

General Interest >> Science and Technology

Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Jump to first unread post. Pages: 1
InvisibleKrishna
कृष्ण,LOL
 User Gallery

Registered: 05/08/03
Posts: 23,284
Loc: oakland
apache/.htaccess help!
    #4383906 - 07/08/05 02:37 PM (11 years, 5 months ago)

ok this is very frustrating...

i've got an internal server running on my machine, through apache/mod_perl/blah-blah-blah.

anyway, i'm trying to set up a new site.

here is the def that is in /etc/httpd/conf/vhosts.conf

Code:

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /home/sites/mckinneyfoto.com/web-admin/source
Alias /admin-content /home/sites/mckinneyfoto.com/web-admin/content
Alias /content /home/sites/mckinneyfoto.com/web-public/content
ServerName admin.mkf.krishnaland.net
ErrorLog logs/error_log
CustomLog logs/access_log common
</VirtualHost>



(note i've left out all the other stuff in that file, since all the other VirtualHost defs work fine)

however, when i try to access admin.mkf.krishnaland.net i get a forbidden error. a look at the error_log shows me this

Code:
[Fri Jul 08 20:15:25 2005] [crit] [client 127.0.0.1] (13)Permission denied: /home/sites/mckinneyfoto.com/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable



now, as you see, it is looking in /home/sites/mckinneyfoto.com/ for the .htaccess, instead of /home/sites/mckinneyfoto.com/web-admin/source/ as it should (that is the path defined as DocumentRoot in vhosts.conf). it isn't a permissions problem, since i've made sure to chmod 777 the whole freaking directory... i basically have no idea why it is looking in the wrong place!

my boss isn't currently online, and i'm kind of stuck until i can resolve this problem - need to check out the development i've been doing before i can do more, and to do that, need to get the site to view properly.

anybody out there have any ideas as to what this might be?


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




Post Extras: Print Post  Remind Me! Notify Moderator
OfflineMAIA
World-BridgerKartikeya (DftS)
Male User Gallery

Registered: 04/27/01
Posts: 7,275
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 months, 8 days
Re: apache/.htaccess help! [Re: Krishna]
    #4384005 - 07/08/05 03:00 PM (11 years, 5 months ago)

Do a chmod 755 to the parent directory where the file is located.

MAIA


--------------------
Spiritual being, living a human experience ... The Shroomery Mandala



Use, do not abuse; neither abstinence nor excess ever renders man happy.
Voltaire


Post Extras: Print Post  Remind Me! Notify Moderator
OfflineMAIA
World-BridgerKartikeya (DftS)
Male User Gallery

Registered: 04/27/01
Posts: 7,275
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 months, 8 days
Re: apache/.htaccess help! [Re: Krishna]
    #4384022 - 07/08/05 03:04 PM (11 years, 5 months ago)

Btw,
Alias /content /home/sites/mckinneyfoto.com/web-public/content
should be
Alias /content/ "/home/sites/mckinneyfoto.com/web-public/content"

i think ...

MAIA


--------------------
Spiritual being, living a human experience ... The Shroomery Mandala



Use, do not abuse; neither abstinence nor excess ever renders man happy.
Voltaire


Post Extras: Print Post  Remind Me! Notify Moderator
OfflineMAIA
World-BridgerKartikeya (DftS)
Male User Gallery

Registered: 04/27/01
Posts: 7,275
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 months, 8 days
Re: apache/.htaccess help! [Re: Krishna]
    #4384043 - 07/08/05 03:12 PM (11 years, 5 months ago)

Also check your root directory permissions

<Directory "/">
AllowOverride None
Options None FollowSymLinks
Order allow,deny
Allow from all
</Directory>

Btw, are you working with just virtual hosts ?

MAIA


--------------------
Spiritual being, living a human experience ... The Shroomery Mandala



Use, do not abuse; neither abstinence nor excess ever renders man happy.
Voltaire


Post Extras: Print Post  Remind Me! Notify Moderator
OfflineMAIA
World-BridgerKartikeya (DftS)
Male User Gallery

Registered: 04/27/01
Posts: 7,275
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 months, 8 days
Re: apache/.htaccess help! [Re: MAIA]
    #4384065 - 07/08/05 03:20 PM (11 years, 5 months ago)

Anyway, check this out. It probably has a solution for your problem.

http://www.webhostingtalk.com/archive/thread/262153-1.html

Quote:


You can't have a .htaccess file in any higher directory. Or this file would need to be world readable, which wouldn't be as secure.



So, check



/

/home

/home/httpd

/home/httpd/vhosts

/home/httpd/vhosts/domain.ext

/home/httpd/vhosts/domain.ext/subdomains

/home/httpd/vhosts/domain.ext/subdomains/subdomain

/home/httpd/vhosts/domain.ext/subdomains/subdomain/httpdocs



If there's a .htaccess file in any of them, that will create the error you got.



I'll need to check the required directive, I don't know it off the top of my head, but it could be added to



/home/httpd/vhosts/domain.ext/conf/vhost.conf



to correct this if the .htaccess creating the problem is required (which shouldn't be the case) or if you're sharing a server and can't access anything higher than /home/httpd/vhosts/domain.ext/.





It makes sense ...

MAIA


--------------------
Spiritual being, living a human experience ... The Shroomery Mandala



Use, do not abuse; neither abstinence nor excess ever renders man happy.
Voltaire


Post Extras: Print Post  Remind Me! Notify Moderator
InvisibleKrishna
कृष्ण,LOL
 User Gallery

Registered: 05/08/03
Posts: 23,284
Loc: oakland
Re: apache/.htaccess help! [Re: MAIA]
    #4384084 - 07/08/05 03:24 PM (11 years, 5 months ago)

doy that was a simple problem! just needed to chmod /home/sites/mckinneyfoto.com - i had chmod'ed everything inside of it, but not that directory itself.

thanks for the help! :sun:


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




Post Extras: Print Post  Remind Me! Notify Moderator
OfflineMAIA
World-BridgerKartikeya (DftS)
Male User Gallery

Registered: 04/27/01
Posts: 7,275
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 months, 8 days
Re: apache/.htaccess help! [Re: Krishna]
    #4384109 - 07/08/05 03:28 PM (11 years, 5 months ago)

:wink::sun:
My first guess was right then :grin:

MAIA


--------------------
Spiritual being, living a human experience ... The Shroomery Mandala



Use, do not abuse; neither abstinence nor excess ever renders man happy.
Voltaire


Post Extras: Print Post  Remind Me! Notify Moderator
Jump to top. Pages: 1

General Interest >> Science and Technology

Similar ThreadsPosterViewsRepliesLast post
* Xp, Coldfusion, + Apache nugsarenice 582 8 08/25/05 08:30 PM
by nugsarenice
* setting up apache Vvellum 631 4 03/25/06 05:05 AM
by Seuss
* Post deleted by Administrator Anonymous 430 1 02/08/03 08:08 PM
by darkfly
* quick apache question Kremlin 310 0 12/10/04 11:06 PM
by Kremlin
* Please help me today I registered my first domain *DELETED* T0aD 920 10 12/24/02 04:27 AM
by T0aD
* deleting ht.access files thru ftp ChromeCrow 855 4 07/14/05 05:51 PM
by delta9
* Now about password protected pages. TackleBerry 603 4 02/15/03 03:10 PM
by TackleBerry
* getting apache2 running sherm 364 2 02/17/05 02:58 PM
by sherm

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Lana, trendal, Diploid, automan
814 topic views. 0 members, 1 guests and 1 web crawlers are browsing this forum.
[ Toggle Favorite | Print Topic | Stats ]
Search this thread:
Crestline Sales - MycoPath
Please support our sponsors.

Copyright 1997-2016 Mind Media. Some rights reserved.

Generated in 0.043 seconds spending 0.003 seconds on 14 queries.