viernes, abril 02, 2010

Habilitar Acceso desde otra PC a Drupal en Windows

Tomado de:
http://www.lawebdelprogramador.com/news/mostrar_new.php?id=116&texto=Apache&n1=344368&n2=4&n3=0&n4=0&n5=0&n6=0&n7=0&n8=0&n9=0&n0=0

Ese problema lo puedes solucionar sencillamente con modificar una línea del archivo HTTPD.CONF que encuentras en el directorio CONF de tu instalacion de APACHE.
La configuración de Apache por defecto retringe el acceso a directorios de tu instalación, para cambiar esto abrimos el archivo referido HTTPD.CONF y buscamos la parte donde viene esto :


Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all


y simplemente cambiamos Deny from all por Allow from all , quedando así


Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all <---Esta línea es la que cambió
Satisfy all


Buscas las Siguientes lineas en el mismo archivo, modificas exactamente como queda lo siguiente:
#
# This should be changed to whatever you set DocumentRoot to.
#


#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
# Deny from all
Allow from all
Satisfy all
Allow from 127.0.0.1 , 192.168.0.201





Reinicia el Apache y correrá PHP. Como vez no es problema del PHP, solamente son permisos del Apache.

Además te recomiendo que agregues un index predeterminado en cada folder para que no puedan accesar al contenido de estos.

No hay comentarios: