Problemer med rettigheter under /var/www

Problemer med rettigheter under /var/www

Innleggav garyoak » fre 08.07.2011 11:48

Hei

Driver å setter opp en LAMP server under Ubuntu 11.04, og har noen problemer med rettighetene i /var/www.

Slenger med en dump av /etc/apache2/error.log

Kode: Merk alt
 [Fri Jul 08 10:55:57 2011] [notice] caught SIGTERM, shutting down
[Fri Jul 08 10:56:18 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch configured -- resuming normal operations
[Fri Jul 08 10:56:36 2011] [error] [client 10.144.37.196] PHP Warning:  require_once(Connections/sql.php): failed to open stream: Permission denied in /var/w$
[Fri Jul 08 10:56:36 2011] [error] [client 10.144.37.196] PHP Fatal error:  require_once(): Failed opening required 'Connections/sql.php' (include_path='.:/u$
[Fri Jul 08 10:58:39 2011] [error] [client 10.144.37.196] PHP Warning:  require_once(Connections/sql.php): failed to open stream: Permission denied in /var/w$
[Fri Jul 08 10:58:39 2011] [error] [client 10.144.37.196] PHP Fatal error:  require_once(): Failed opening required 'Connections/sql.php' (include_path='.:/u$
[Fri Jul 08 10:58:40 2011] [error] [client 10.144.37.196] PHP Warning:  require_once(Connections/sql.php): failed to open stream: Permission denied in /var/w$
[Fri Jul 08 10:58:40 2011] [error] [client 10.144.37.196] PHP Fatal error:  require_once(): Failed opening required 'Connections/sql.php' (include_path='.:/u$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /css/tekst.css denied, referer: http://10.144.32.5/login.php?acces$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /css/meny.css denied, referer: http://10.144.32.5/login.php?access$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationPassword.js denied, referer: http://10.1$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationTextField.js denied, referer: http://10.$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationPassword.css denied, referer: http://10.$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationTextField.js denied, referer: http://10.$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 10:59:58 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationPassword.css denied, referer: http://10.$
[Fri Jul 08 10:59:59 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationTextField.css denied, referer: http://10$
[Fri Jul 08 11:00:24 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 11:00:24 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 11:03:54 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 11:03:54 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 11:05:09 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 11:05:09 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php?acc$
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /css/tekst.css denied, referer: http://10.144.32.5/login.php
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /css/meny.css denied, referer: http://10.144.32.5/login.php
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationPassword.js denied, referer: http://10.1$
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationTextField.js denied, referer: http://10.$
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationPassword.css denied, referer: http://10.$
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationTextField.css denied, referer: http://10$
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /img/img_top.jpg denied, referer: http://10.144.32.5/login.php
[Fri Jul 08 11:06:21 2011] [error] [client 10.144.37.196] (13)Permission denied: access to /SpryAssets/SpryValidationPassword.css denied, refere



Fint om noen kan dirigere meg i riktig retning, takker på forhånd for alle svar :-)
medlem i 133 måneder
 

Re: Problemer med rettigheter under /var/www

Innleggav steinmb » lør 09.07.2011 14:30

Det enkleste er bare å sette eierskap på filer og undermapper til /var/www til samme bruker som webserveren kjører som. På Debianbaserte systemer er det vanligvis www-data

Brukerens avatar
medlem i 211 måneder
 


Returner til Ubuntu



Hvem er i Forumene

Registrerte brukere: Google [Bot]