Best Configurations
for PHP.ini in
Wordpress
Resource Person: JAMES ANGELO V. AVES
PHP.ini
memory_limit
Memory_limit, as you can probably guess by
its name is the command that limits the
memory usage of PHP within WordPress.
The memory_limit value that you set must be
greater than the file that you are trying upload.
This is the amount of memory required to
upload files or run commands. The
recommended limit is 128 MB.
max_execution_time
This command defines the time it takes to
execute each script. This command tells the
server how long it takes to execute the
commands.
It will take longer if you upload large files to
the server. You can either increase or reduce
the execution time.
post_max_size
This command sets the maximum data that a
post can contain. This value can be changed
to zero to remove the restriction. You can call
the server post using the POST method.
upload_max_filesize
This command sets the maximum file that you
can upload to WordPress. You've probably
seen the WordPress gallery limit on the
number of files you can upload. This command
defines the limit.
You must either remove or increase the
memory limit exhaust error if it occurred.
maximum_input_time
This command specifies the time it takes to
analyze each data. Data such as POST and
GET.
The command requests PHP from the server.
The time ends when the command begins.
The default value for this parameter is 1. This
limitation can be eliminated by setting the
value to 0.
Other PHP.ini configurations
short_open_tag
Short open tags look like this: <? ?>. This
option must be set to Off if you want to use
XML functions.
error_reporting
The default value is E_ALL & ~E_NOTICE, all
errors except notices. Development servers
should be set to at least the default; only
production servers should even consider a
lesser value
mysql.default_host
The default server host to use when
connecting to the database server if no other
host is specified.
mysql.default_user
The default user name to use when
connecting to the database server if no other
name is specified.
mysql.default_password
The default password to use when connecting
to the database server if no other password is
specified.

PHP ini Configuration.pptx

  • 1.
    Best Configurations for PHP.iniin Wordpress Resource Person: JAMES ANGELO V. AVES PHP.ini
  • 2.
    memory_limit Memory_limit, as youcan probably guess by its name is the command that limits the memory usage of PHP within WordPress. The memory_limit value that you set must be greater than the file that you are trying upload. This is the amount of memory required to upload files or run commands. The recommended limit is 128 MB.
  • 3.
    max_execution_time This command definesthe time it takes to execute each script. This command tells the server how long it takes to execute the commands. It will take longer if you upload large files to the server. You can either increase or reduce the execution time.
  • 4.
    post_max_size This command setsthe maximum data that a post can contain. This value can be changed to zero to remove the restriction. You can call the server post using the POST method.
  • 5.
    upload_max_filesize This command setsthe maximum file that you can upload to WordPress. You've probably seen the WordPress gallery limit on the number of files you can upload. This command defines the limit. You must either remove or increase the memory limit exhaust error if it occurred.
  • 6.
    maximum_input_time This command specifiesthe time it takes to analyze each data. Data such as POST and GET. The command requests PHP from the server. The time ends when the command begins. The default value for this parameter is 1. This limitation can be eliminated by setting the value to 0.
  • 7.
  • 8.
    short_open_tag Short open tagslook like this: <? ?>. This option must be set to Off if you want to use XML functions.
  • 9.
    error_reporting The default valueis E_ALL & ~E_NOTICE, all errors except notices. Development servers should be set to at least the default; only production servers should even consider a lesser value
  • 10.
    mysql.default_host The default serverhost to use when connecting to the database server if no other host is specified.
  • 11.
    mysql.default_user The default username to use when connecting to the database server if no other name is specified.
  • 12.
    mysql.default_password The default passwordto use when connecting to the database server if no other password is specified.