I want to increase max execution time on my wordpress site. I know I should edit php.ini, but can't seem to find it! Show any tips? asked May 29, 2011 at 2:11
3 I see this question so much! everywhere I look lacks the real answer. The php.ini should be in the wp-admin directory, if it isn't just create it and then define whats needed, by default it should contain.
answered Mar 17, 2015 at 14:56
Brad FletcherBrad Fletcher 3,4793 gold badges23 silver badges40 bronze badges 6 Wordpress dont have a php.ini file. It just a cms, look into your server. for example if you use XAMPP in windows answered Mar 17, 2015 at 15:15
realhdxrealhdx 1511 silver badge3 bronze badges 1 I used this, very cool tool https://wordpress.org/plugins/php-settings/ This plugin provides a simple user interface with a code editor to edit your local .ini settings. This can be used to change settings like
Unheilig 16k193 gold badges67 silver badges96 bronze badges answered May 24, 2017 at 0:08
5 Okay. Answer for self hosted wordpress installations - you'll have to find the file yourself. For my WordPres site I use nginx with php7.3-fpm. Running Then looking around I see there is also a
file: That was it. Now I can upload bigger files to my WordPress. Good luck answered Feb 18, 2020 at 10:58
kub1xkub1x 2,89435 silver badges36 bronze badges 2 Open .htaccess file in a code editor like sublime text and then add..
hope it helps..............it did for me. answered Feb 3, 2018 at 22:08
3 Use the php_ini_loaded_file function to get the location of your php.ini file.
answered May 29, 2011 at 2:18
Salman von AbbasSalman von Abbas 23.2k8 gold badges70 silver badges56 bronze badges 4 A php.ini file is not installed by default with Wordpress. You may have one already installed by your web host. Look in your root directory or ask your web host or read your web host's documentation on how to install one. Look for answered May 29, 2011 at 4:01
markratledgemarkratledge 17.1k11 gold badges58 silver badges105 bronze badges 1 This Worked For Me. I have installed wordpress in godaddy shared server. Open .htaccess file using editor and add the following from the first line,
This solved the php.ini issues for me in the server. answered Feb 20, 2017 at 14:39
ManojManoj 7368 silver badges7 bronze badges If you have access to our webroot, create a file asdf.php with
in it and point your webbrowser to it. You should see all info in the first section.
This works for any php application and is therefore the universal way to find our php.ini answered Jun 16, 2019 at 16:06
SimonSimon 1951 silver badge8 bronze badges I just came across this thread while searching for an answer to why the php.ini file would be within the /wp-admin/ folder for WordPress that I have just seen in an odd setup - because it really really shouldn't be there. WordPress by default doesn't include a php.ini file within the /wp-admin/ folder, so you should not have one there yourself. The php.ini file is designed to override the main server PHP configuration settings so that your account on the server is treated differently, within limits. As such, if you do need to use this file, please, for your own sanity (and that of others who happen to work with your systems in the future...), place the php.ini file in the root of your account, not hidden away in the /wp-admin/ folder, or any other folder for that matter. I'm surprised to see so many others commenting that it should be in the /wp-admin/ folder to be honest. I'd love to see some official documentation from WordPress stating that this is best practice, as this is certainly something that I would completely avoid. answered Jan 2, 2018 at 20:54
1 Create a file yourself php.ini anywhere in your root or wp-admin folder and add the necessary code to the file it should work answered Dec 14, 2014 at 12:41
If your hosting provider is using Plesk, go to Websites & Domains > PHP settings from where you can seamlessly change memory_limit, max_execution_time, max_input_time, etc. Hope it helps. answered Aug 7, 2017 at 12:36
divaylodivaylo 612 silver badges5 bronze badges If you use cPanel and have installed CloudLinux you can go to section Software > Select PHP Version > Switch To PHP Options and define max_execution_time among other options. Short gif: http://cloud.mercadoalvo.com/nDdE answered Oct 21, 2017 at 4:53
you can do it from the Cpanel: 1.- CPANEL 2.- Select PHP Version 3.- Swich to PHP options 4.- Edit: max_execution_time 1800 max_input_time 64 max_input_vars 6000 memory_limit 512M post_max_size 128M upload_max_filesize 128M answered Oct 25, 2018 at 18:04
Risk CorpRisk Corp 1631 silver badge5 bronze badges The name of the custom ini file depends on the You can check the name of your custom configuration file by running:
I have created a plugin which makes it possible to change php settings from the Wordpress administration:
The plugin makes it possible to change settings either using the answered May 22, 2019 at 9:03
CyclonecodeCyclonecode 28.1k11 gold badges72 silver badges92 bronze badges I am adding an answer based on my experience and also thanks to Michael Cropper and Salman von Abbas for their inputs. The php.ini file is created when php is installed on the server. I believe that wordpress installation requires php to be installed on the server. So your webhost typically installs it on their server and then sells you the hosting space. Then you install your wordpress on it. Hence, it follows clearly from this that the php.ini file will not be present in the wp-admin folder. So you need to look for it either at your root folder (but most likely it won't be there if you're on a shared webhosting plan). Then you need to create a file as such: create a new file in the location = Put the following code inside the file:
Now try to access the file through your browser as follows: https://your_domain/any_name.php This should show a message that clearly states the location of your php.ini file. If you're on a shared hosting plan then you probably won't have access to this folder. You will need to inform the web hosting support to take care of this for you. Hope this helps! answered Dec 31, 2019 at 15:05
MugenMugen 1,2875 gold badges20 silver badges39 bronze badges use this in your htaccess in your server php_value upload_max_filesize 1000M php_value post_max_size 2000M answered Nov 12, 2020 at 2:57
Not the answer you're looking for? Browse other questions tagged wordpress php or ask your own question.Where do I find my PHP ini file in WordPress?If you're using WAMP for your local WordPress installation, you can easily find the location of php. ini by right-clicking on the program icon and navigating to PHP > php.
Where is the location of PHP ini?user. ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. This file is located on your server in the /public_html folder.
How do I change PHP ini in WordPress?To update any of these settings follow these steps:. Login to cPanel – if unsure on how to do so check this article.. Navigate to File Manager.. Select public_html.. Use the +File button to create a new file and call it php. ini.. Open the php. ini file you created and edit as required.. How do I create a PHP ini file in WordPress?How to Manually Create a PHP.. Log into your cPanel account.. Open your File Manager.. Navigate to your public_html directory.. Create a new file.. Name it php.ini.. Edit the php.ini file you just created.. Copy and Paste the default php. ini code from the copy of the default version below.. Click Save Changes.. |