Change upload_max_filesize via .htaccess
#1
Change upload_max_filesize via .htaccess
Make a file name .htaccess

inside the .htaccess

wirte

//Change default upload size
Code:
php_value post_max_size XXM php_value upload_max_filesize XXM
Save and upload
How to i test it ??
make a php file and type
Code:
<?php echo ini_get('upload_max_filesize'); ?>
and upload to server and see Smile
Sentora 1.0.3 on [Image: DO_Logo_Horizontal_Blue-3db19536.png]

-= Github =-  -= My Repo =-

My Modules
Reply
#2
RE: Change upload_max_filesize via .htaccess
Nice, very simple. Smile
Reply
#3
RE: Change upload_max_filesize via .htaccess
It's isn't unsecure?
If I remember, one of changes when we make to improve security of server, is disable some functions, like shell_exec, ini_exec, and some others, no?
Reply
#4
RE: Change upload_max_filesize via .htaccess
yes, it is safe.
This guide teaches to increase the file size to upload.
 By: Cantalupo
Reply
#5
RE: Change upload_max_filesize via .htaccess
Cantalupo, I asked about the enabling ini functions when change the default config for a some domain to a different config when as defined at the php.ini. If I can change a simple config (like upload file size), is possible to change more configs, no? So, this option isn't turn the server unsecure?
In various webhostings that I used, this option is disabled for security reasons (change php configuration with php functions or php.ini special config for a one domain).
Reply
#6
RE: Change upload_max_filesize via .htaccess
(02-06-2015, 02:39 AM)rafaht Wrote: It's isn't unsecure?
If I remember, one of changes when we make to improve security of server, is disable some functions, like shell_exec, ini_exec, and some others, no?

This doesn't override the disabled functions. This is a setting for a php environement variable. You can't enable back function lice exec once you blacklisted then in main php.ini.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#7
RE: Change upload_max_filesize via .htaccess
First of all, I am new to sentora.
Where should I put .htaccess ? Do I need to put it in each phpmyadmin, filemanager etc. ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Change Panel Sub-domain TGates 7 41 ,710 06-12-2017, 08:27 AM
Last Post: TGates
How do I Change Default Username from zadmin to somewhat alikhan88 11 42 ,590 02-17-2017, 04:24 AM
Last Post: TGates
Is there a way to change the default admin name "zAdmin" dsmarter 3 11 ,740 02-12-2017, 01:42 PM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)