India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Türkiye Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Canada English
Canada Français
Netherlands Nederlands

What is php.ini and what is its importance

PHP.INI is a special configuration file in PHP and its folks like SU PHP. Php.ini can be confused with an ordinary text file since it is a normal test file with an .ini extension.

Functionality/ Importance

Allocating special set of resources to a given directory irrespective of the server configurations

Get a .co.ke domain from KSh 299

Search for your business name to see which extensions are available.

First-year price for eligible registrations.

  • 500+ domain extensions
  • Low registration and renewal prices
  • One-click push to Cloudflare

Guarding overexploitation of server resources by executing scripts

Show/Hide errors in the website/script

Security- restricts or grants access to certain directories

How to Create a Php.ini file

Go to the directory that settings within php.ini should affect e.g. /home/TrueHost (your username)/public_html/

If placed under the above directory, everything placed under public_html directory will be subject to the settings in the php.ini.

  • Create a text file and name it php.ini
  • Open the php.ini with a code editor or html editor
  • Write down the standard php.ini commands

 

Example

If you wish to increase the maximum upload size of your script (website) from the default size of 2MB

  • Create a php.ini file within www
  • Input the following commands
  • upload_max_filesize = 10M
  • post_max_size = 10M
  • Save and close.

The website will be able to upload up to a maximum of 10MB

 Note a few settings cannot be changed in reseller and shared hosting

e.g.

  • Enabling or disabling safe mode

Memory and upload sizes modification beyond the global server settings.

Start With This

Billing cycle

Best value compares each plan's lowest monthly equivalent; contract lengths can differ.

WebHosting Starter

Kshs 500/moSave 62%

Kshs 188/mo

Kshs 6,768 billed every 3 yearsSave KES 11,232

Order Now

Renews at Kshs 188/month

  • Hosts 10 Websites
  • WordPress Hosting & other CMS
  • ~25 000 visits monthly
  • Free Website Migrations
  • 30 GiB SSD Storage
  • 1-click Installer
  • Free automated SSL
  • Unlimited bandwidth
  • Unlimited Email Accounts
  • Free Daily backups
  • Free Website Builder
  • Free Website Templates
  • Python and NodeJS Support
  • Shared IP Address
  • Powered by Cpanel
See all plans

Compare hosting options for your website when you’re ready.

See plans and pricing

Leave a comment

Your email address will not be published. Required fields are marked *