elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


+  Foro de elhacker.net
|-+  Sistemas Operativos
| |-+  GNU/Linux
| | |-+  Unix/Unix-Like
| | | |-+  Problema instalacion php5 en apache22 FreeBSD
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: 1 [2] 3 4 5 6 Ir Abajo Respuesta Imprimir
Autor Tema: Problema instalacion php5 en apache22 FreeBSD  (Leído 29,623 veces)
zhyzura
Colaborador
***
Desconectado Desconectado

Mensajes: 2.503



Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #10 en: 2 Diciembre 2010, 17:00 pm »

solo ejecuta:
Código:
 chmod 777 index.html
en caso de querer aplicarlos a una carpeta junto con su contenido solo ejecuta:
Código:
 chmod -R 777 carpeta


saludos


En línea

manyblue

Desconectado Desconectado

Mensajes: 39


Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #11 en: 2 Diciembre 2010, 18:36 pm »

Vale enterado.
El foro de freeBSD ya lo he dejado solo me critican por hablar poco ingles y no me dan solucion.
No se si esto me solucionara el problema, ya te cuento.
Acabo de llegar a casa. FreeBSD ya esta instalado, apache22 tambien y parece que funciona. Ahora estoy con mysql y php.
Cuendo acabe de instalar todo y configurarlo ya te digo y hacemos las pruebas pertinentes, te parece bien ??????

Lo unico que se es que aqui me han atendido muy muy bien, en cuatro o cinco post ya vamos descartanto y llegando a la solucion. En el foro de BSD 38 post y aun no saben por donde van los tiros y esto no es problema del idioma pues dije poco pero hablo bastante ingles lo que escribirlo aveces me cuesta pero ..........

Si conseguimos solucionar el problema que me acucia me convertire en un asiduo de este foro seguro. Podria ayudar pues tengo conocimientos de muchas muchas cosas para por lo menos ayudar a los novatos.

Seguro que ya estaras cansado de tantas gracias pero como es de rigor y correcto talante, mi hermano GRACIAS por tu ayuda.

Un saludo

PD: en el foro de bsd me dicen que estos permisos no tienen nada que ver con lo que me pasa ???????????


En línea

manyblue

Desconectado Desconectado

Mensajes: 39


Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #12 en: 2 Diciembre 2010, 22:20 pm »

bueno, ya he terminado de instalar apache php y mysql.
estoy acabando con php.

Ya he añadido a httpd.conf

Código:
DirectoryIndex index.php index.html

AddType aplication/x-httpd-php .php .html
AddType aplication/x-httpd-php-source .phps

lo de AddType aplication/x-httpd-php .php .htm  es para poder usar documentos php puros ó documentos php dentro de html.
Nota que la instalacion no me ha metido en DirectoryIndex index.htm cosa que antes si me hacia. Lo puedo añadir por el morro???

Ahora mismo estoy parado en

Código:
# cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini

Aqui tengo un problema pues php.ini-dist no existe en el directorio

Código:
/usr/local/etc/ 
 

en este directorio solo hay

Código:
devd
man.d
pam.d
php
php.conf
php.ini-development
php.ini-production
rc.d
xml2Conf.sh
xlstConf.sh
apache22

imagino que sera

Código:
# cp /usr/local/etc/php.ini-development  /usr/local/etc/php.ini

se me olvidaba tambien esta ya cargado el modulo de php en httpd.conf

dime algo............... estoy parado aqui.

al final de todo probamos los html y los php cuando acabe esta configuracion y copie.

con respecto a mysql es solo instalarlo y hacer esto

generamos las tablas de permisos para mysql

Código:
# /usr/local/bin/mysql_install_db      enter

cambiamos el propietario y frupo del directorio de datos

Código:
# chown -R mysql:mysql /var/db/mysql/

luego

Código:
# vi /etc/rc.conf

y añadimos

Código:
mysql_enable="YES"

reboot para que se reinicie y arranque mysql se puede hacer con el comando start pero para evitar errores yo reinicio reboot

luego añadimos los permisos de root

Código:
# /usr/local/bin/mysqladmin root password (tu pass)   enter

para comprobarlo hacemos

Código:
# mysql -u root -p
# pass:
>

por lo que esta bien me deja entrar etc pienso correcto con mysql -u root  ya no te deja entrar ok.

las instalaciones de todo ninguna me ha dado error eso es importante.

Un saludo amigo
En línea

zhyzura
Colaborador
***
Desconectado Desconectado

Mensajes: 2.503



Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #13 en: 3 Diciembre 2010, 02:49 am »

 pues efectivamente el comando a ejecutar es:
Código:
 [font='courier new', 'times new roman', monospace]# cp /usr/local/etc/php.ini-development /usr/local/etc/php.ini[/font]

pero mi pregunta antes de continuar es si ya pudiste colocar cualquier otro html y lo has visualizado correctamente ???


(recuerda que tambien tienes que modificar el httpd.conf para que cargue el modulo de php, me supongo ya hiciste esos pasos verdad??)


Antes de continuar con mysql lo mejor es primero terminar con estos problemas antes de toparnos con mas xD


saludos y espero tus avances :P


P.D: por lo visto eres de espa*a asi de que va a estar algo dificil que te conteste en cuanto tu posteas xD (yo estoy en mexico)
En línea

manyblue

Desconectado Desconectado

Mensajes: 39


Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #14 en: 3 Diciembre 2010, 03:37 am »

No no he subido ningun html mio por que aun no tengo instalado pure-ftp para subirlo tendre que hacerlo a mano con vi. Ya e hecho esto

Código:
# cp /usr/local/etc/php.ini-development  /usr/local/etc/php.ini

y nada mira

http://manyblue.homeunix.com
http://manyblue.homeunix.com/test.php

Ya chequeamos los html primero que abra los php OK por que siguen sin abrir los php, he montado todo correctamente segun el manual, ya no se donde esta el fallo. Sera cosa de los permisos, por que logicamente pienso que el de fuera tiene que poder lerr y ejecutar pero escribir no, no te parece ????? o sera que en vez de copiar php.ini-development habra que coger  php.ini-production  ?????  o sera que hay que modificar algo en el archivo php.ini que he creado  ???????

Gracias mi hermano desde Canarias

Pos se agradece bernardo .............................................

PD: Ha aparecido un individuo nuevo que no conocia en los foros oficiales de freeBSD y me ha preguntado algo nuevo mira los post  #40 y #41

http://forums.freebsd.org/showthread.php?t=19615&page=2

perdona por tanta modificacion pero se me olvidaba que despues de instalar php sin configurar he instalado tambien
php5-extensions
php5-mysql
php5-session
php5-gd
« Última modificación: 3 Diciembre 2010, 04:16 am por manyblue » En línea

manyblue

Desconectado Desconectado

Mensajes: 39


Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #15 en: 3 Diciembre 2010, 04:26 am »

ya he subido un archivo html creado por mi con vi que imprime HOLA mira

http://manyblue.homeunix.com/prueba.html

un saludo
« Última modificación: 3 Diciembre 2010, 04:28 am por manyblue » En línea

zhyzura
Colaborador
***
Desconectado Desconectado

Mensajes: 2.503



Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #16 en: 3 Diciembre 2010, 04:53 am »

 (no me habia fijado que cuando inserto lineas de codigo, tambien se agregan lineas de tipo de letra y esas cosas.... procurare arreglarla para que se entienda lo que menciono je)


Pues mira que ya vamos de gane, ya se abren otros html y el php tambien (solo como codigo pero por lo visto tu php ya esta funcionando bien, solo falta cargarlo correctamente en apache).


tienes tu httpd.conf que yo puediera verlo?? (asi en lugar de descargar un video mejor me descargo el achivo completo y le veo mas rapido je)


saludos


P.D: si cambias la linea donde creas el archivo php.ini por el otro, dudo mucho se solucione :P
En línea

manyblue

Desconectado Desconectado

Mensajes: 39


Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #17 en: 3 Diciembre 2010, 07:34 am »

LLevo toda la noche en vela con esta movida me tiene el coco absorvido ya no puedo ni trabajar sin solucionar esto.

1) Desde  un principio  siempre he llegado  hasta aqui OK, no e hecho nada nuevo OK siempre me funciona php lo que nunca me cargo en apache ok.

2) Si te lo puedo mandar via como hago en los foros de FreeBSD  aprovechare el tiron de la amanecidad para hacer el video cambiarlo de formato y subirlo al host privado de un cliente, como se entere me denuncia mira que son abogados su pagina  esta hecha pero no subida no pagan ????? que cabrones son cuanto mas pasta tienen mas quieren y mas agarrados se vuelven, asi es la vida.

3) Aprovechare para tambien montar pure-ftp que no tengo problemas en realidad nunca tuve problemas con nada de freeBSD excepto con el modulo de apache para php.

Mi hermano vamos por buen camino y a los foros de BSD que les den y perdona la expresion pero me sale del alma 41 post y aun no saben ni por donde voy y esto no es problema del ingles pues les dije tu pide y yo te doy les he dado todo configuraciones de httpd.conf rc.conf loader.conf etc etc etc y en vidio tio que mas quieren.

Como siempre Gracias Gracias Gracias y se agradeceras mucho mas Zhyzura


PD: esta instalacion me esta costando sangre y sudor como novato en freeBSD por eso entiendo las posturas de los que usan windows pero no las comparto, del 100% de nuevos adeptos a BSD el 90% abandonan por desanimos o por que se les hace demasiado complicado YO NO ABANDONO

Como lo prometido es deuda, hare el manual del server total para tontos como yo que si sabemos apreciar un buen manual y te digo esto por que esta instalacion ha empezado con mal pie desde el router por que??? pues por que uso el router de telefonica Zyxel que aqui la llamamos teleruina por sus precios.
No habia manera de abrirle el puerto 80 y redirigirlo a la ip del server, me decia puerto 80 en uso y no tenia ningun programa usandolo joder valla lio, total me puse a investigar y llege a la conclusion que los routers de telefonica estan preparado para imagenio por lo que tren unos filtros para cerrar los puertos 20,21 y 80 por lo que hay que entrar por telnet y desactivarlos por eso creo que hare un buen manual de referencia para novatos con muchas imagenes etc.
« Última modificación: 3 Diciembre 2010, 07:41 am por manyblue » En línea

manyblue

Desconectado Desconectado

Mensajes: 39


Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #18 en: 3 Diciembre 2010, 08:00 am »

http://www.abogadosodaly14.com/httpd_conf.avi

estoy agotado por el momento me voy a dormir que creo que me lo merezco
ricura que diga Zhyzura  jajajajajaja es una broma pa romper el hielo estoy casado con dos niñas hermosas.

lo de siempre GRACIAS GRACIAS GRACIA mi hermano

Un saludo para Mexico desde Canarias por cierto he estado en tu pais y ademas tengo familia emigrate ahi asi que es un pais que aprecio mucho y ademas unos fenomenos en esto de la informatica por que la mayor parte de mis problemas me la han resuelto mexicanos por ejemplo un foro que veo que ahora esta un poco parado UNIXMEXICO

http://www.unixmexico.org/index.php
« Última modificación: 3 Diciembre 2010, 08:18 am por manyblue » En línea

manyblue

Desconectado Desconectado

Mensajes: 39


Ver Perfil
Re: Problema instalacion php5 en apache22 FreeBSD
« Respuesta #19 en: 3 Diciembre 2010, 22:53 pm »

Código:
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/foo_log"
# with ServerRoot set to "/usr/local" will be interpreted by the
# server as "/usr/local//var/log/foo_log".

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/usr/local"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
file "/usr/local/etc/apache22/httpd.conf", 464 lines
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/foo_log"
# with ServerRoot set to "/usr/local" will be interpreted by the
# server as "/usr/local//var/log/foo_log".

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/usr/local"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
LoadModule dumpio_module libexec/apache22/mod_dumpio.so
LoadModule reqtimeout_module libexec/apache22/mod_reqtimeout.so
LoadModule include_module libexec/apache22/mod_include.so
LoadModule filter_module libexec/apache22/mod_filter.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dav_module libexec/apache22/mod_dav.so
LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_module        libexec/apache22/libphp5.so

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User www
Group www

</IfModule>
</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin armando12347@yahoo.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName manyblue.homeunix.com:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/www/apache22/data"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
   AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/usr/local/www/apache22/data">
    #
    # 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 None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
   DirectoryIndex index.php index.html
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "/var/log/httpd-error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
#CustomLog "/var/log/httpd-access.log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "/var/log/httpd-access.log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
#
    #Scriptsock /var/run/cgisock
</IfModule>

#
# "/usr/local/www/apache22/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/www/apache22/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig etc/apache22/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
# If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    AddType aplication/x-httpd-php .php .html
    AddType aplication/x-httpd-php-source .phps

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile etc/apache22/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the etc/apache22/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.

# Server-pool management (MPM specific)
#Include etc/apache22/extra/httpd-mpm.conf

# Multi-language error messages
#Include etc/apache22/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include etc/apache22/extra/httpd-autoindex.conf

# Language settings
#Include etc/apache22/extra/httpd-languages.conf

# User home directories
#Include etc/apache22/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include etc/apache22/extra/httpd-info.conf

# Virtual hosts
#Include etc/apache22/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include etc/apache22/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include etc/apache22/extra/httpd-dav.conf

# Various default settings
#Include etc/apache22/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include etc/apache22/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
« Última modificación: 4 Diciembre 2010, 00:15 am por manyblue » En línea

Páginas: 1 [2] 3 4 5 6 Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Manual de instalacion y uso de FreeBSD en español.
Unix/Unix-Like
B€T€B€ 3 7,696 Último mensaje 28 Agosto 2010, 01:06 am
por B€T€B€
FreeBSD - Instalación « 1 2 3 4 5 »
Unix/Unix-Like
leogtz 47 24,234 Último mensaje 14 Julio 2011, 00:30 am
por leogtz
FreeBSD no inicia luego de hacer instalacion por red
Unix/Unix-Like
Makiaveluz 4 3,679 Último mensaje 23 Noviembre 2012, 21:29 pm
por Foxy Rider
[Resuelto] instalacion xampp con php5 y mi aplicación funciona en php4
Desarrollo Web
OssoH 4 2,720 Último mensaje 14 Julio 2015, 20:35 pm
por OssoH
Error instalacion php5-cgi [SOLUCIONADO]
Wireless en Linux
ivanowski 0 1,935 Último mensaje 31 Julio 2015, 13:58 pm
por ivanowski
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines