Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,653 members, 7,813,206 topics. Date: Tuesday, 30 April 2024 at 08:39 AM

How Do I Edit Php.ini File In My Server - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How Do I Edit Php.ini File In My Server (804 Views)

Wordpress 4.9 Error - Unable To Edit .php Of Your Theme / How Do I Edit This In Wordpress Style Sheet / (RESOLVED. Thanks)I Need Help On Uploading Wordpress To My Server (2) (3) (4)

(1) (Reply) (Go Down)

How Do I Edit Php.ini File In My Server by Charpell(m): 11:52am On Apr 06, 2016
Hello webmasters,

I got a script i want to install in a new hosting plan but my server didnt meet the script requirement.

Here are the parameters. how do i effect the changes in php.ini file?


max_execution_time = 30 (It need to be in 0 in both the local and master value)

max_input_time = 60 (It need to be in 6000 in both the local and master value)

memory_limit = 128M (It need to be in 512M in both the local and master value)

post_max_size = 8M ( It need to be in 100M in both the local and master value)

upload_max_filesize = 2M ( It need to be in 100M in both the local and master value)

display_errors = Off (It need to be in On in both the local and master value)

Let me know , once you have updated above changes.


Thanks
Re: How Do I Edit Php.ini File In My Server by TheWebDeveloper(m): 3:24pm On Apr 06, 2016
Charpell:
Hello webmasters,

I got a script i want to install in a new hosting plan but my server didnt meet the script requirement.

Here are the parameters. how do i effect the changes in php.ini file?


max_execution_time = 30 (It need to be in 0 in both the local and master value)

max_input_time = 60 (It need to be in 6000 in both the local and master value)

memory_limit = 128M (It need to be in 512M in both the local and master value)

post_max_size = 8M ( It need to be in 100M in both the local and master value)

upload_max_filesize = 2M ( It need to be in 100M in both the local and master value)

display_errors = Off (It need to be in On in both the local and master value)

Let me know , once you have updated above changes.


Thanks

Hello Charpell:

I presume you're using shared hosting, therefore, you won't have access to the server's php.INI file.
But you can create one in your 'legacy folder' ensure you upload the file outside the web root, for security.
Before uploading the file, enter the following parameters as required, eg:
max_execution_time = 0
max_input_time = 6000
memory_limit = 512M
post_max_size = 100M
upload_max_filesize = 100M
display_errors = On

Then save the file and upload it.

If you upload it one level above the root folder, eg:
/php.ini
/www/your_site_index.php

... and it doesn't work, give it a few minutes. If it still doesn't work, move the file to the web root folder. That is top level domain of your site pages. Eg:
/www/php.ini
/www/your_site_index.php

Lest I forget:
If you're using shared hosting, you can't change any of the master values. Only the server administrator can. And he won't do it for you for any reason.
The best you can do is use a custom php.INI

Hope I helped.
Re: How Do I Edit Php.ini File In My Server by Strahovski1(m): 7:16pm On Apr 06, 2016
Most shared hosting don't allow custom php
Re: How Do I Edit Php.ini File In My Server by Charpell(m): 5:34am On Apr 07, 2016
TheWebDeveloper:



Hope I helped.

Thank you very much sir this was really helpful.

When i first contacted my host this was their response.

"Since resources are shared among all websites on the server. And this effects performance of websites on the same server if one website is consuming more resources than others. Hence we distribute it equally among all websites.
The values that you are asking us to change is not possible as it can effects performance of other websites hosted on the same server."



Is there any side effect of using custom php.INI?

Thanks again
Re: How Do I Edit Php.ini File In My Server by TheWebDeveloper(m): 10:53am On Apr 07, 2016
Charpell:


Thank you very much sir this was really helpful.

When i first contacted my host this was their response.

"Since resources are shared among all websites on the server. And this effects performance of websites on the same server if one website is consuming more resources than others. Hence we distribute it equally among all websites.
The values that you are asking us to change is not possible as it can effects performance of other websites hosted on the same server."



Is there any side effect of using custom php.INI?

Thanks again

No there isn't any side effect.
The Apache web server first looks for a php.INI file in the web root. When it can't find one it defaults to the settings (php.ini) on the web server.
The worst that can happen is, Apache ignores the custom php.INI file if it's set to disregard any php.ini not created by the server administrator. In this case, the settings I suggested won't work.
But try those settings first.

(1) (Reply)

Fully Designed Blog + Adsense + 13K FB Group For Sale / Now Let's Customize Blogger's Boring EU Cookies Notification / Blog Niches That Need More Attention By Nigeria Bloggers

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 20
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.