Modify php Upload restrictions modify phpmyadmin restrictions

Source: Internet
Author: User
Modify php Upload restrictions modify phpmyadmin restrictions

  1. // Find

  2. Options FollowSymLinks
  3. AllowOverride None
  4. // Change

  5. Options FollowSymLinks
  6. AllowOverride All
  7. // You can.

Create a new. htaccess file in the directory. this is not allowed in windows by default. you can create a file under Dreamweaver file management. Write in. htaccess

  1. Php_value post_max_size 12 m
  2. Php_value upload_max_filesize 12 m
  3. Php_value max_execution_time 120
  4. Php_value max_input_time 240

You can. Supplement: The method of using ini_set ("post_max_size", "80 M"); does not work. The modifiable range of post_max_size is PHP_INI_PERDIR. PHP_INI_PERDIR is a domain command that can only be modified in the php. ini, httpd. conf, or. htaccess file, so it does not work. Php_value name value indicates the value of the specified command. Only commands of the PHP_INI_ALL and PHP_INI_PERDIR types can be used. To clear the previous set value, set the value to none. Note: Do not use php_value to set a Boolean value. Php_flag should be used (see below. Php_flag name on | off is used to set configuration commands of the Boolean type. Only commands of the PHP_INI_ALL and PHP_INI_PERDIR types can be used. Php_admin_value name value indicates the value of the specified command. It cannot be used in the. htaccess file. Any value set in php_admin_value cannot be overwritten by commands in. htaccess or virtualhost. To clear the previous set value, set the value to none. Php_admin_flag name on | off is used to set configuration commands of the Boolean type. It cannot be used in the. htaccess file. Any value set in php_admin_flag cannot be overwritten by commands in. htaccess or virtualhost.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.