HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


How to edit php.ini on Shared servers

  • Category : General
  • Posted on : May 21, 2020
  • Views : 1,765
  • By : HostSEO

This guide describes how to edit the php.ini file on shared servers (Stellar and Stellar Plus plans, as well as old Value, Professional, and Ultimate plans).

If your account is hosted on the Business server (Stellar Business or old Business SSD plans), use this guide.
 
With the help of PHP Selector implemented on our Shared Hosting servers, you can easily modify basic PHP settings via your cPanel >> the Exclusive for Namecheap Customers section >> Select PHP Version menu. You can find detailed guidelines here.

 

However, advanced PHP settings are missing from the Select PHP Version tool and must be manually configured in the php.ini file. You can either create the file or upload the existing one to your account.
 
 
 
 

How to create a php.ini file

 
1. Log into your cPanel account, go to the Files section >> the File Manager menu.

For cPanel Basic Theme:
 

 
For cPanel Retro Theme:
 

 
2. Navigate to the root directory of the domain, click on New File, and create a file named php.ini:
 

 
3. Find the newly created file in the list, right-click, and choose Edit:
 

 
4. Add the required PHP settings and click on Save Changes in the top right corner:
 

 
To check the current PHP version and configuration, refer to this article.
 

How to upload and edit an existing php.ini file

 
1. Log into your cPanel account, go to the Files section >> the File Manager menu.

For cPanel Basic Theme:
 

 
For cPanel Retro Theme:
 

 
2. Navigate to the root directory of the domain name in question, upload the php.ini file. Feel free to download php.ini below in the Attachments section at the end of the guide.

3. Once done, use the Extract option:
 
 
4. After that, right-click on php.ini to use the Edit option:

 
5. Here, you can use the search option and find the needed limit or value. In this example, it is upload_max_filesize.

 

 
6. Once all the required changes are made, click Save.


That's it!

 

 

Need any help? Contact our Helpdesk

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 123456
78910111213
14151617181920
21222324252627
28293031 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional