広告 Linux PC Web Server Zorin OS

Tips | Location of php.ini in Zorin OS 18.1 Core | Lightweight, Windows-like Ubuntu-based Linux distribution

春雨

When setting up a local WordPress environment on Zorin OS using Apache, MariDB, and PHP 8.5, you may encounter a Site Health warning stating, "The value of 'post_max_size' is smaller than the value of 'upload_max_filesize'".

No matter how much I changed the settings in the php.ini file located at /etc/php/8.5/cli/, the problem would not go away.

However, the issue was resolved after modifying the php.ini file in /etc/php/8.5/apache2/.

sudo gedit /etc/php/8.5/apache2/php.ini

upload_max_filesize = 40M

post_max_size = 32M

I left `upload_max_filesize` as is, but changed

I increased `post_max_size` to 64M

and saved the file.

Restart Apache.

sudo service apache2 restart

This resolves the issue with post_max_size and upload_max_filesize.

The issue with `post_max_size` and `upload_max_filesize` is not

/etc/php/8.5/cli/php.ini

but

/etc/php/8.5/apache2/php.ini

.

If you’d like, please show your support.

にほんブログ村 PC家電ブログへ にほんブログ村 PC家電ブログ パソコン・周辺機器へ
  • この記事を書いた人

春雨

都内に住んでいる中高年のおじさんです。古いPCにLinuxを入れたりして遊ぶのが好きです。PCをいじるのは好きですが、勉強は苦手です。 I am Harusame. I’m a middle-aged guy living in Tokyo. I enjoy tinkering with old PCs by installing Linux on them. I like messing around with computers, but I’m not very good at studying.

-Linux, PC, Web Server, Zorin OS
-, , , , ,