Wordpress: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[category:Webdesign]] | |||
When creating a new site in a MU configuration remember. | When creating a new site in a MU configuration remember. | ||
| Line 7: | Line 8: | ||
:Put following line in wp-config.php just above the line "/* That's all, stop editing! Happy blogging. */" | :Put following line in wp-config.php just above the line "/* That's all, stop editing! Happy blogging. */" | ||
<code>define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );</code> | <code>define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );</code> | ||
;Fix for wordpress upgrade asking for FTP credentials while file-permissions allow the web-server to write all. | |||
:Put following line in wp-config.php just above the line "/* That's all, stop editing! Happy blogging. */" | |||
<code>define('FS_METHOD','direct');</code> | |||
;Turn maintenance mode off manually. | |||
:Remove the <code>.maintenance</code> file from your wordpress root-directory | |||
=Increase maximum upload size= | |||
There are several places where the maximum size of uploads is limited | |||
<ol> | |||
<li>In MultiUser (MU) sites in Network Settings set 'Max upload file size'</li> | |||
<li>In the .htaccess file check these lines. If there is nothing there this is not the limit.</li> | |||
<code>php_value upload_max_filesize 256M<br> | |||
php_value post_max_size 256M<br> | |||
php_value max_execution_time 300<br> | |||
php_value max_input_time 300</code> | |||
<li>update [[php]].ini</li> | |||
<code>upload_max_filesize = 32M<br> | |||
post_max_size = 64M<br> | |||
memory_limit = 128M</code> | |||
<li>In the [[nginx]] configuration set 'client_max_body_size 10m' to allow 10MB uploads</li> | |||
</ol> | |||
Latest revision as of 12:04, 10 April 2022
When creating a new site in a MU configuration remember.
- Create a mapping in Settings-Domains
- In the wp_options table for this site make sure you have the correct value in siteurl and home
- Fix for "Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress."
- Put following line in wp-config.php just above the line "/* That's all, stop editing! Happy blogging. */"
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
- Fix for wordpress upgrade asking for FTP credentials while file-permissions allow the web-server to write all.
- Put following line in wp-config.php just above the line "/* That's all, stop editing! Happy blogging. */"
define('FS_METHOD','direct');
- Turn maintenance mode off manually.
- Remove the
.maintenancefile from your wordpress root-directory
Increase maximum upload size
There are several places where the maximum size of uploads is limited
- In MultiUser (MU) sites in Network Settings set 'Max upload file size'
- In the .htaccess file check these lines. If there is nothing there this is not the limit.
- update php.ini
- In the nginx configuration set 'client_max_body_size 10m' to allow 10MB uploads
php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300
upload_max_filesize = 32M
post_max_size = 64M
memory_limit = 128M