System: redhat
Configure:
./configure --prefix=/path/to/php/share/php --with-apxs2=/path/to/apache2/bin/apxs --with-mysql --with-libdir=lib64 --with-ldap --with-ldap-sasl --with-config-file-path=/path/to/php/share/php.ini
In php.ini i set upload_max_filesize to 50 and restart apache.
I use
<?php
phpinfo();
?>
to check. The configuration file (php.ini)path is correct but upload_max_filesize is still 2M.
Does anyone know why the configure failed? Thanks.
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 50M
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Shanghai
I don’t have access to my server, so I cannot check it now, but you can try to follow the directions in this link and see if solves your problem. – bacchus
Thanks bacchus. The .htaccess works! But I still can’t understand why the php.ini doesn’t work.