[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [NOVICE] apache rettigheder



morten skovborg skrev:
Hej med jer
Jeg har fundet et galleri der er ret godt, det eneste problem er bare at
apache ikke har rettigheder til at skrive i mappen.
Hvor sætter jeg rettighederne til apache?


Hej Morten

Her er et forslag til løsning

1. Først skal vi finde ud hvad brugernavnet er for apache og hvilken gruppe apache tilhører 1.a Finder brugeren: fra kommandolinien kør "getent passwd | grep apache" hos mig giver det:
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
altså kan vi se at apache kører som brugeren wwwrun
1.b Finder gruppen "getent group | grep 8" (8 fordi det er den 4. værdi i password filen, som angiver gruppen) hos mig giver det:
www:x:8:

Altså ved vi at apache kører som brugeren wwwrun og er medlem af gruppen www

2. Vi skal give de rigtige rettigheder.
Du ved hvilken sti mappen har eks. "/var/www/galleri"

for at give rettigheder så skal du med tilstrækkelige rettigheder (eks. root)køre: "chown -R wwwrun:www /var/www/galleri"

/Rune


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-03-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *