In deployed WordPress Certified by Bitnami and Automattic, which works for my other site. this site I exported and have a 137 MB file to import. It complains the file is too big.
Alright, I follow these instructions [1] trying #1 the .htaccess file and #2 the wp-config.php file. I even just put in the upload-max-filesize 256M, and not the others, into each of these two files and it still does not work. In fact my website no longer is reachable. I back off the changes and restart the instance...luckily, my website is recovered.
How can I import a WP Migration export file into my site? How can I allow it to accept such large files? And not crash my site again.
[1] https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/
Bitnami Engineer here,
I just launched a fresh Bitnami WordPress instance and modified the following parameters in the /opt/bitnami/php/etc/php.ini file to be able to upload a bigger file to the WordPress plugin.
post_max_size = 200M
upload_max_filesize = 200M
Then I restarted all the services
sudo /opt/bitnami/ctlscript.sh restart
I have one problem in WordPress. I need to install SEO plugin. I see an error in dashboard, Update Failed and ask me to download a plugin in the .zip format.
Plugin Uploading Error
1. Enable WP_DEBUG in wp-config file.
2. Check your error.log for more details.
3. Disable open_basedir in php.ini.
4. Increase WP_MEMORY_LIMIT in wp-config file or memory_limit in php.ini.
5. Increase upload_max_size, post_max_size and max_execution_time in php.ini.
6. The 500 internal server error can be the result of a faulty plugin or two conflicting plugins. To test it rename plugins folder to something like plugins_old to deactivate all plugins at once.
7. Repair your WordPress core files by uploading fresh versions of wp-admin and wp-includes folders.
8. If none of the above points solved your problem, contact your webhost support.
I am running WordPress website on godaddy server. I am not able to install woocommerce plugin due to 500 internal server error.
500 error come for lots of reasons for the main reason is MEMORY_LIMIT increase your MEMORY_LIMIT to 98M
For that, Open wp-config.php, which by default is located in the root WordPress directory.
Find the following line near the end of the file:
/* That's all, stop editing! Happy blogging. */
Just above that line, add the following line:
define('WP_MEMORY_LIMIT', '64M');
Save your changes.
For Manual Upload you can do with FTP just
connect with FTP and go to a wp-include folder -> plugin folder you
can upload your plugin here.
I installed wp to a server for the first time. The basic theme works and I can change the settings but I bought a new wordpress theme and was trying to upload it from the dashboard:
But it gives me an error each time:
These were suggestions I found online but didn't work:
So I tried to change the permissions of all of the folders to 755. And then I changed the permissions of the file update.php to 755 also but I still get the same error. I also tried editing the .htaccess of the folder 'AALimo' (folder which contains the wp dir) but that didn't work either. I'm not sure if I edited the .htaccess properly.
I just manually uploaded the theme into the theme directory using ftp instead of the theme uploader from dashboard and that worked.
I did it using C-Panel. I had to upload zip file in WordPress theme folder in public html. extract the zip file and you can install it easily .
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!
any tips?
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.
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
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 php -i | grep ini from console gives me several lines including:
Loaded Configuration File => /etc/php/7.3/cli/php.ini. This is ini configuration when running php command from command line, a.k.a. cli.
Then looking around I see there is also a file: /etc/php/7.3/fpm/php.ini I use FPM service so that is it! I edit it and THEN reload the service to apply my changes using: service php7.3-fpm reload.
That was it. Now I can upload bigger files to my WordPress. Good luck
Wordpress dont have a php.ini file.
It just a cms, look into your server.
for example if you use XAMPP in windows xampp\php\php.ini is the location.
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
upload_max_filesize or max_execution_time
which are often set to very low values by the hosting companies.
Open .htaccess file in a code editor like sublime text and then add..
php_value upload_max_filesize 1000M
php_value post_max_size 2000M
php_value memory_limit 3000M
php_value max_execution_time 1800
php_value max_input_time 180
hope it helps..............it did for me.
Use the php_ini_loaded_file function to get the location of your php.ini file.
<?php
$inipath = php_ini_loaded_file();
if ($inipath) {
echo 'Loaded php.ini: ' . $inipath;
} else {
echo 'A php.ini file is not loaded';
}
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 max_execution_time in your php.ini file and change to 60 or 90
If you have access to our webroot, create a file asdf.php with
<?php phpinfo(); ?>
in it and point your webbrowser to it. You should see all info in the first section.
Configuration File (php.ini) Path
Loaded Configuration File
Scan this dir for additional .ini files
Additional .ini files parsed
This works for any php application and is therefore the universal way to find our php.ini
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,
# BEGIN Increases Max Upload Size
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 300
php_value max_input_time 300
# END Increases Max Upload Size
This solved the php.ini issues for me in the server.
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.
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
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.
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
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
The name of the custom ini file depends on the user_ini.filename php setting. By default this should be .user.ini and the custom configuration files are used on a per-directory basis, so you should be able to either put it in the root of your Wordpress installation or under the wp-admin folder.
You can check the name of your custom configuration file by running:
php -i | grep user_ini.filename
I have created a plugin which makes it possible to change php settings from the Wordpress administration:
Custom PHP Settings
The plugin makes it possible to change settings either using the .htaccess file or the custom php.ini file, depending on how php is running.
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 = /public_html/your_domain/any_name.php
Put the following code inside the file:
<?php
$inipath = php_ini_loaded_file();
if ($inipath) {
echo 'Loaded php.ini: ' . $inipath;
} else {
echo 'A php.ini file is not loaded';
}
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!
use this in your htaccess in your server
php_value upload_max_filesize 1000M
php_value post_max_size 2000M