Problema com aleitura de imagens no Apache2 Ubuntu 12.10

1. Problema com aleitura de imagens no Apache2 Ubuntu 12.10

Francisco
FSnet4S

(usa Ubuntu)

Enviado em 09/04/2013 - 07:59h

Ola pessoal, eu instalei o apache2 no meu Ubuntu 12.10, mas acontece que quando abro o meu site no loval, ele abre bem, mas nao esta abrir as imagens.

O que pode possa fazer para resolver este problema? Obrigado.


  


2. Re: Problema com aleitura de imagens no Apache2 Ubuntu 12.10

Perfil removido
removido

(usa Nenhuma)

Enviado em 09/04/2013 - 08:15h

Já analisou os logs do apache?

Deixe escutando e abra a página para você visualizar os detalhes.

# tail -f /var/log/apache2/error.log


3. A resultado

Francisco
FSnet4S

(usa Ubuntu)

Enviado em 09/04/2013 - 08:23h

Meti a escutar deu-me este erro:

[Tue Apr 09 13:11:34 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /polices/dayrom.svg denied, referer: http://127.0.0.1/index2.php
[Tue Apr 09 13:20:32 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /images/zozor_logo.png denied, referer: http://127.0.0.1/index2.php
[Tue Apr 09 13:20:32 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /images/flecheblanchedroite.png denied, referer: http://127.0.0.1/index2.php
[Tue Apr 09 13:20:32 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /images/bulle.png denied, referer: http://127.0.0.1/index2.php
[Tue Apr 09 13:20:32 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /images/linda.jpg denied, referer: http://127.0.0.1/index2.php ....



4. CONSEGUI!!!!! Funcionou!!!!!!!!!!!!

Francisco
FSnet4S

(usa Ubuntu)

Enviado em 09/04/2013 - 08:38h

Funcionou, muito amarildosertorio, a partir do teu comando percebi que era problema das permisoes e apenas fique verificando as permisoes nao pastas e ate nas imagens, e faltava a permisao de "x" nas imagens, os comandos são estes:



root@ubuntu:~# cd /var/www
root@ubuntu:/var/www# ls -l
total 108
-rw-rw-rw- 1 fragana fragana 164 mars 20 21:47 aaaa.htm
-rw-rw-rw- 1 fragana fragana 166 avril 9 11:26 aaaa.php
-rw-rw-rw- 1 fragana fragana 4758 sept. 15 2012 Cadastre.html
drwxrw-rw- 2 fragana fragana 4096 sept. 14 2012 Exe
drwxrw-rw- 2 fragana fragana 4096 avril 9 11:28 FSnet4S
drwxrw-rw- 2 fragana fragana 4096 avril 8 11:46 images
-rw-rw-rw- 1 fragana fragana 6470 avril 8 11:46 index2.html
-rw-rw-rw- 1 fragana fragana 6470 avril 8 16:32 index2.php
-rw-rw-rw- 1 fragana fragana 6038 mars 20 14:22 index.htm
-rw-rw-rw- 1 fragana fragana 12421 oct. 4 2012 index.html
-rw-rw-rw- 1 fragana fragana 20 avril 9 11:00 info.php
drwxrw-rw- 2 fragana fragana 4096 sept. 14 2012 Linux
lrwxrwxrwx 1 fragana fragana 21 avril 9 11:20 phpmyadmin -> /usr/share/phpmyadmin
drwxrw-rw- 2 fragana fragana 4096 mars 20 21:18 polices
drwxrw-rw- 4 fragana fragana 4096 sept. 15 2012 Programaçao
-rw-rw-rw- 1 fragana fragana 6645 mars 21 00:52 style2.css
-rw-rw-rw- 1 fragana fragana 6551 mars 20 21:34 style.css
drwxrw-rw- 2 fragana fragana 4096 sept. 14 2012 Telecom
-rw-rw-rw- 1 fragana fragana 0 sept. 14 2012 traitement.php
drwxrw-rw- 5 fragana fragana 4096 mars 27 06:47 wamp
root@ubuntu:/var/www# cd images
root@ubuntu:/var/www/images# ls -l
total 504
-rw-rw-rw- 1 fragana fragana 1197 oct. 25 2011 bulle.png
-rw-rw-rw- 1 fragana fragana 2038 oct. 25 2011 facebook.png
-rw-rw-rw- 1 fragana fragana 997 oct. 25 2011 flecheblanchedroite.png
-rw-rw-rw- 1 fragana fragana 1840 oct. 25 2011 flickr.png
-rw-rw-rw- 1 fragana fragana 964 oct. 25 2011 fond_degraderouge.png
-rw-rw-rw- 1 fragana fragana 3963 oct. 25 2011 fond_jaune.png
-rw-rw-rw- 1 fragana fragana 3367 oct. 25 2011 ico_epingle.png
-rw-rw-rw- 1 fragana fragana 1034 oct. 25 2011 ico_liensexterne.png
-rw-rw-rw- 1 fragana fragana 2201 oct. 25 2011 ico_top.png
-rw-rw-rw- 1 fragana fragana 231642 mai 19 2011 linda.jpg
-rw-rw-rw- 1 fragana fragana 1906 oct. 25 2011 ombre.png
-rw-rw-rw- 1 fragana fragana 9413 oct. 25 2011 photo1.jpg
-rw-rw-rw- 1 fragana fragana 11856 oct. 25 2011 photo2.jpg
-rw-rw-rw- 1 fragana fragana 7779 oct. 25 2011 photo3.jpg
-rw-rw-rw- 1 fragana fragana 11412 oct. 25 2011 photo4.jpg
-rw-rw-rw- 1 fragana fragana 3071 oct. 25 2011 rss.png
-rw-rw-rw- 1 fragana fragana 155595 oct. 25 2011 sanfrancisco.jpg
-rw-rw-rw- 1 fragana fragana 1324 oct. 25 2011 separateur.png
-rw-rw-rw- 1 fragana fragana 2271 oct. 25 2011 twitter.png
-rw-rw-rw- 1 fragana fragana 2350 oct. 25 2011 vimeo.png
-rw-rw-rw- 1 fragana fragana 12621 oct. 25 2011 zozor_classe.png
-rw-rw-rw- 1 fragana fragana 5183 oct. 25 2011 zozor_logo.png
root@ubuntu:/var/www/images# cd
root@ubuntu:~# chmod -R g+xrw /var/www
root@ubuntu:~# chmod -R x+xrw /var/www
chmod: mode non valide : «x+xrw»
Saisissez « chmod --help » pour plus d'informations.
root@ubuntu:~# chmod -R o+xrw /var/www
root@ubuntu:~# chmod -R u+xrw /var/www
root@ubuntu:~#

ESTE é o melhor FURUM que jà estive, waaaoo! Génial






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts