RE: [PHP-ES] Cambios en php.ini sin efecto

[email protected] ("Gorka")
Newsgroups php.general.es
Message-ID <[email protected]>

> > > Pues me devuelve "Syntax OK".
> > > Según se mire, no ha habido suertecilla.
> > > No me lo puedo creer. Si esto es 2+2=4. He hecho todo tal y como
> > > comentas y sigo sin ver los valores de las variables cambiados en el
> > > phpinfo(). Debería funcionar.
> > > ¿Alguna idea más?
> >
> > A ver, esto es una tontería... pero igual te sirve Cuando sacas el
> > phpinfo
> mira
> > lo siguiente.
> >
> > Configuration File (php.ini) Path
> 
> /etc/php5/apache2
> 
> > Loaded Configuration File
> 
> /etc/php5/apache2/php.ini
> Aquí es donde tengo, por ejemplo, ...
> upload_max_filesize = 24M
> ... pero en el phpinfo() me sigue saliendo ...
> upload_max_filesize	2M
> 
> > Scan this dir for additional .ini files
> 
> /etc/php5/apache2/conf.d
> Aquí hay varios ficheros, pero ninguno de ellos es php.ini ...
> gd.ini  mcrypt.ini  mssql.ini  mysqli.ini  mysql.ini  pdo_dblib.ini
pdo.ini
> pdo_mysql.ini  suhosin.ini
> 
> > Additional .ini files parsed
> 
> /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mcrypt.ini,
> /etc/php5/apache2/conf.d/mssql.ini, /etc/php5/apache2/conf.d/mysql.ini,
> /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini,
> /etc/php5/apache2/conf.d/pdo_dblib.ini,
> /etc/php5/apache2/conf.d/pdo_mysql.ini,
> /etc/php5/apache2/conf.d/suhosin.ini
> Ninguno de estos repositorios es php.ini.
> 
> >
> > A ver qué te devuelven, por si hubiese que revisar algun .ini adicional.
> >
> 
> Una búsqueda de la variable en /etc/ me da lo siguiente ...
> # grep -r upload_max_filesize ./
> ./php5/cli/php.ini:upload_max_filesize = 24M
> ./php5/apache2/php.ini:upload_max_filesize = 24M Coincidencia en el
> fichero binario ./alternatives/php
> 
> La última línea no sé qué es, pero vamos, ... que no parece haber más
> php.ini, ¿verdad?
> ¿Por qué se empeña entonces en mantener ...
> upload_max_filesize	2M
> ?

En /etc/apache2/sites-enabled/000-default he puesto, para probar, lo mínimo
posible ...

<VirtualHost *:80>
ServerName 10.0.0.100
DocumentRoot /var/www/
ServerAdmin webmaster@localhost
DirectoryIndex index.php index.html index.htm default.html default.htm
<Directory /var/www/>
        Options -Indexes FollowSymLinks -MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
</Directory>
TransferLog /var/log/apache2/10.0.0.100-access.log
ErrorLog /var/log/apache2/10.0.0.100-error.log
</VirtualHost>

... y sigue igual.

En fin. Si algún día consigo solucionar este misterio lo publicaré, por si
le sirve a alguien más.
Hasta entonces, un saludo y ... Alex, David, Eduardo, ... gracias a todos
igualmente.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.