Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/07/2011, 18:39
Avatar de manyblue
manyblue
 
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años, 1 mes
Puntos: 10
Respuesta: Problema Ubuntu Lamp php

Creo que por aqui van los tiros, decidme si es asi o no.
Lo hare manaña por la noche para comprobarlo.


1º - Lo primero, abrir el archivo php.ini (está en /etc/php5/apache2/php.ini) y buscar el texto que pone:

; You should do your best to write your scripts so that they do not require
; register_ to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off

Para que cuando vayamos a usar los métodos POST y GET funcionen correctamente es necesario poner:

register_globals = On

2º - La segunda y última modificación que vamos a hacer sobre el php.ini es esta; buscar este texto:

[mail function]
; For Win32 only.
SMTP =

Bien vamos a modificar el valor de smtp poniendo el servidor de correo saliente que tengamos, por ejemplo:

SMTP = mailhost.terra.es



Mi register_global esta en Off lo pondre en On e intentare mandar formulario a ver que pasa pues si manda formulario tambien email de confirmacion de usuarios.
Ya os contare pero mira que me he artado de buscar al final encontre esta pa ruindows pero nos saltaremos el paso de windows, os dije y sigo diciendo que es problema de mi php.ini en ubuntu.

Lo dejare asi a probar:

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = [email protected]

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
;mail.add_x_header = On la comento

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =

Mas buscar y dejar asi estas lineas:

; You should do your best to write your scripts so that they do not require
; register_ to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off