Home | Community | Message Board


SoulSpeciosa Kratom
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,285
Loc: oakland
apache/.htaccess help!
    #4383906 - 07/08/05 02:37 PM (12 years, 11 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,311
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 hours, 42 minutes
Re: apache/.htaccess help! [Re: Krishna]
    #4384005 - 07/08/05 03:00 PM (12 years, 11 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,311
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 hours, 42 minutes
Re: apache/.htaccess help! [Re: Krishna]
    #4384022 - 07/08/05 03:04 PM (12 years, 11 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,311
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 hours, 42 minutes
Re: apache/.htaccess help! [Re: Krishna]
    #4384043 - 07/08/05 03:12 PM (12 years, 11 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,311
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 hours, 42 minutes
Re: apache/.htaccess help! [Re: MAIA]
    #4384065 - 07/08/05 03:20 PM (12 years, 11 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,285
Loc: oakland
Re: apache/.htaccess help! [Re: MAIA]
    #4384084 - 07/08/05 03:24 PM (12 years, 11 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,311
Loc: Erra - 20 Tauri - M45 Sta...
Last seen: 6 hours, 42 minutes
Re: apache/.htaccess help! [Re: Krishna]
    #4384109 - 07/08/05 03:28 PM (12 years, 11 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
* Free subdomains (suporting dynamic IPs) ? OJK 282 0 04/14/06 03:54 PM
by OJK
* content.IE5 @cro 1,243 4 12/20/03 07:17 PM
by @cro
* Having issues with .htaccess file Warrior 645 1 06/16/11 09:36 AM
by Warrior
* Xp, Coldfusion, + Apache nugsarenice 616 8 08/25/05 08:30 PM
by nugsarenice
* Unlocking a windows directory? tak 1,370 12 04/13/07 07:01 AM
by OJK
* Proftpd user directory help daytripper05 526 1 07/04/08 01:15 PM
by blink
* Please help, reverse cellphone directory distortion 553 2 02/18/05 10:55 PM
by chocbruce
* setting up apache Vvellum 652 4 03/25/06 05:05 AM
by Seuss

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

Copyright 1997-2018 Mind Media. Some rights reserved.

Generated in 0.027 seconds spending 0.004 seconds on 19 queries.