lampTermux icon indicating copy to clipboard operation
lampTermux copied to clipboard

Can't find php.ini file

Open mondij opened this issue 1 year ago • 2 comments

Where is the php.ini located? I need to make some modifications.

mondij avatar Dec 23 '24 09:12 mondij

mkdir -p /data/data/com.termux/files/usr/tmp chmod 777 /data/data/com.termux/files/usr/tmp mkdir -p /data/data/com.termux/files/usr/etc/php nano /data/data/com.termux/files/usr/etc/php/php.ini

[PHP] error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off display_startup_errors = Off log_errors = On error_log = /data/data/com.termux/files/usr/var/log/php_errors.log max_execution_time = 300 memory_limit = 128M output_buffering = 4096 session.save_handler = files session.save_path = "/data/data/com.termux/files/usr/tmp" upload_max_filesize = 2M post_max_size = 8M date.timezone = "UTC"

can you try it

daffycodebug avatar Dec 25 '24 22:12 daffycodebug

mkdir -p /data/data/com.termux/files/usr/tmp chmod 777 /data/data/com.termux/files/usr/tmp mkdir -p /data/data/com.termux/files/usr/etc/php nano /data/data/com.termux/files/usr/etc/php/php.ini

[PHP] error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off display_startup_errors = Off log_errors = On error_log = /data/data/com.termux/files/usr/var/log/php_errors.log max_execution_time = 300 memory_limit = 128M output_buffering = 4096 session.save_handler = files session.save_path = "/data/data/com.termux/files/usr/tmp" upload_max_filesize = 2M post_max_size = 8M date.timezone = "UTC"

can you try it

Didn't work sir I need php.ini to increase max upload size in phpmyadmin

elias0esmail avatar Apr 18 '25 12:04 elias0esmail