Wordpress - defined limit

Asked

Viewed 3,375 times

0

I installed wordpress following these steps:

Steps to Install Wordpress in Ubuntu 16.04

Step 1: Update the System
#apt-get update

Step 2: Install LAMP Server
#apt-get install lamp-server^

Step 3: Wordpress Database Initialization
#mysql -u root -p

Commands
CREATE DATABASE wordpressdb;
CREATE USER wordpressuser@localhost IDENTIFIED BY 'wordpresspassword';
GRANT ALL PRIVILEGES ON wordpressdb.* TO wordpressuser@localhost;
FLUSH PRIVILEGES;
exit

Step 4: Installing Wordpress
#cd /tmp
#wget http://wordpress.org/latest.zip
#unzip -q latest.zip -d /var/www/html/
#chown -R www-data:www-data /var/www/html/wordpress
#chmod -R 755 /var/www/html/wordpress
#mkdir -p /var/www/html/wordpress/wp-content/uploads
#chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads

Now I went to install a theme and appeared:

**O arquivo ultrapassa o limite definido em upload_max_filesize no php.ini.**

How to increase the defined size?

  • Local machine or some accommodation?

  • Marquina local @Everson

1 answer

3

Search for the php.ini file and configure the upload_max_filesize. Possibly, he will be in /etc/php5/apache2/php.ini. If not, try to locate or find.

Inside php.ini, configure the items below to avoid boundary problems:

memory_limit = 512M
upload_max_filesize = 128M
post_max_size = 128M

After you can change, restart apache.

sudo systemctl restart apache2

Test the installation of the theme again.

If you can’t find the php.ini file, create a php file with the following code:

<?php

phpinfo();

?>

Locate the item Loaded Configuration File, it will contain the php.ini path you are using.

  • didn’t find the way /etc/php5/apache2/php.ini. Where should I create the archive?

  • @Juniorvilasboas, create any php file and put the phpinfo code, run the file and look for the Loaded Configuration File item, there will be the php.ini path..

  • Thank you, Voce helped a lot :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.