OVH Community, your new community space.

Error 403 Forbidden


chilindron
18/12/2014, 21:11
Como te dice diablo es la mejor opción, te puedes marear mucho haciendo eso

Diablo48
27/09/2012, 11:00
En vez de andar probando a ciegas yo te recomiendo que te veas el log de errores de apache y de php para ver porque da el forbidden.
Poner 755 no es bueno, si el servidor se esta ejecutando con suPHP no te va a dejar ejecutar los scripts te dara access forbidden si le pones esos permisos, o 777, etc

Lo dicho creo que mejor que ir provando a ciegas es volver a la version original y ver el error de apache y php y corregirlo.

Un saludo

hhgranada
27/09/2012, 10:28
Bueno he borrado las lineas donde se define el acceso a index.php index.html y funciona, pero ahora la pagina sale en blanco xD
Seguire informando

hhgranada
27/09/2012, 10:05
Buenos dias
He instalado newscoop para probarlo (para quien no lo sepa es un editor de periodicos/revistas online abierto)
El caso es que no puedo acceder por que me sale el error 403 forbidden, no es un error de permisos ya que he cambiado todos los archivos a 755 (si, un poco basto, pero por probar si funcionaba).
En la guia de instalación dice que es posible que se arregle "fijando una instrucción en una página predeterminada para apuntar al archivo index.php en el directorio web raíz de tu configuración Apache."

.htaccess
Código:
SetEnv PHP 5_3
# There might be no access to apache config, set options here

DirectoryIndex index.php index.html
Options -Indexes FollowSymLinks -MultiViews

AddType video/ogg .ogm
AddType video/ogg .ogv
AddType audio/ogg .ogg
AddType video/mp4 .mp4
AddType video/webm .webm

# Options might not allowed here, use Rewrite rules instead

    RewriteEngine On

    RewriteCond %{REQUEST_URI} /+get_img$
    RewriteRule . get_img.php [L]

    RewriteCond %{REQUEST_URI} /+attachment/+
    RewriteRule . attachment.php [L]

    RewriteCond %{REQUEST_URI} /+images/+cache
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . index.php [L]

    RewriteCond %{REQUEST_URI} !\.php$
    RewriteCond %{REQUEST_URI} !\.html$
    RewriteCond %{REQUEST_URI} !\.css$
    RewriteCond %{REQUEST_URI} !\.js$
    RewriteCond %{REQUEST_URI} !\.ico$
    RewriteCond %{REQUEST_URI} !/+admin
    RewriteCond %{REQUEST_URI} !/+install
    RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+js
    RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+css
    RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+images
    RewriteCond %{REQUEST_URI} !/+themes
    RewriteCond %{REQUEST_URI} !/+videos
    RewriteCond %{REQUEST_URI} !/+pdf
    RewriteCond %{REQUEST_URI} !/+images/+cache
    RewriteRule . index.php [L]

    RewriteCond %{REQUEST_URI} .tpl$
    RewriteRule . index.php [L]

    RewriteCond %{REQUEST_URI} /+admin$|/+admin/+.*|/+admin-files
    RewriteRule . admin.php [L]



# Uncomment it for gui backup/restore process
# NOTE: It can be incompatible on some shared hosting
#php_value output_buffering Off