Wordpress - limit set [duplicate]

0

I installed wordpress by 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 installed a theme and it appeared:

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

How do I increase the set size?

    
asked by anonymous 21.06.2017 / 15:02

1 answer

3

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

Within php.ini, configure the following items to avoid boundary issues:

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

After you can change, restart apache.

sudo systemctl restart apache2

Re-test the theme installation.

  

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

<?php

phpinfo();

?>

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

    
21.06.2017 / 16:36