How to create custom php.ini file in CPanel?

How to create custom php.ini file in CPanel?

In this post, i will show you how it easy to create custom php.ini file with change default value of php ini file.

Originally published by Hardik Savani at https://itsolutionstuff.com

We can create our own php.ini file in godaddy cpanel and other hosting too. We can increase upload_max_filesize, post_max_size, max_file_uploads, memory_limit, max_execution_time etc in PHP ini file in cpanel.

So basically, Almost server like godaddy server, a2hosting server, hosting raja server that provide basic configuration in default php ini file. so some time we need to increase it with maximum upload file size, memory limit etc. Every server have different way to creating custom php ini file creation. I will give two example that will help you.

In this post, I will show you how it easy to create custom php.ini file with change default value of php ini file.

I checked on my GoDaddy Project.

I created .user.ini file with following changes. You need to put on your root directory so it effect only that project:

Path: public_html/mypro.com/index.php

Create File Path: public_html/mypro.com/.user.ini

memory_limit = 148M
max_input_vars = 4000
upload_max_filesize = 120M
post_max_size = 120M
max_execution_time = 250

If above solution not work then you can also try this one:

Create File Path: public_html/mypro.com/php.ini

memory_limit = 148M
max_input_vars = 4000
upload_max_filesize = 120M
post_max_size = 120M
max_execution_time = 250

Then last you can check with this:

<?php phpinfo(); ?>

I hope it can help you...

Thanks for reading

If you liked this post, share it with all of your programming buddies!

Follow us on Facebook | Twitter

Learn More

PHP for Beginners - Become a PHP Master - CMS Project

Learn Object Oriented PHP By Building a Complete Website

PHP OOP: Object Oriented Programming for beginners + Project

Laravel PHP Framework Tutorial - Full Course for Beginners (2019)

Symfony PHP Framework - Full Course

What is a Full Stack Developer?

Build RESTful API In Laravel 5.8 Example

Laravel 5.8 Tutorial from Scratch for Beginners

Build a CRUD Operation using PHP & MongoBD

php laravel web-development

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

PHP Web Application Development Company

As a top **PHP Web Application Development Company in USA**[https://www.dataeximit.com/php-development-services/](https://www.dataeximit.com/php-development-services/ "https://www.dataeximit.com/php-development-services/"), we at Data EximIT have...

PHP Website Development

Skenix Infotech is a leading PHP Web Development Company that helps companies get results with industry best practices. Get affordable PHP Development Services.

Laravel Development Company

Skenix Infotech is a top Laravel Website Development Company with Expert Laravel Developers that provides robust Laravel Development Services at fair costs.

Hire Dedicated PHP Developer

Looking to hire affordable yet experienced PHP developers? **[Hire Dedicated PHP Developer](https://hourlydeveloper.io/hire-dedicated-php-developer/ "Hire Dedicated PHP Developer")**, who can convert your idea to reality, within the stipulated...

Hire PHP Developer

Looking to develop a PHP based website from scratch or revamp your existing website? **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")** has always been an industry leader for companies and business owners looking to hire...