与AWS RDS数据库连接的AWS Linux 2(EC2实例)上托管的WordPress上的插件上传错误
我正在尝试在与AWS RDB实例(MySQL)连接的AWS Linux 2上运行的EC2实例上上传插件和主题。我完全遵循了AWS提出的这些步骤。 使用RDS创建MySQL数据库:配置RDS数据库以允许访问特定实体。 创建一个EC2实例:创建一个EC2实例以运行您的WordPress站点。 配置您的RDS数据库:配置RDS数据库以允许访问特定实体。 在EC2上配置WordPress:在EC2实例上安装WordPress应用程序和依赖项。 参考: for教程
但是,我无法上传插件或主题,它显示了此错误:
我尝试使用各种建议来解决此错误,但无法修复它。媒体库中的文件大小仅为2 MB。
1. wpbeginner
我无法根据WPBEGINNER的建议在WordPress上找到.htaccess或php.ini文件。
2. wpkube
我尝试创建在此处推荐的新文件(.htaccess和php.ini),并在此目录上上传:/var/www/html 这无助于增加最大上传文件大小。
有人可以帮助解决这个问题吗?
I am trying to upload plugin and theme on EC2 instance running on AWS Linux 2 connected with AWS RDB instance (MySQL). I exactly followed these steps presented by AWS.
Creating a MySQL Database with RDS: Configure the RDS database to allow access to specific entities.
Creating an EC2 Instance: Create an EC2 instance to run your WordPress site.
Configuring Your RDS Database: Configure the RDS database to allow access to specific entities.
Configuring WordPress on EC2: Install the WordPress application and dependencies on the EC2 instance.
Reference: AWS LINK FOR TUTORIAL
However, I am not able to upload plugin or theme, it shows this error:
I tried to fix this error using various recommendation, but unable to fix it. The file size in media library is only 2 Mb.
I am unable to find .htaccess or php.ini file on wordpress as recommended by wpbeginner.
2.wpkube
I tried to create new files (.htaccess and php.ini) recommended here and uploaded at this directory: /var/www/html
This doesn't help to increase Maximum upload file size.
Could someone please help to resolve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在Amazon Linux中编辑文件 -
对于上传最大大小至100m
在您必须重新启动Apache和PHP之后
因此
,您可以检查您的phpinfo
you can edit the file in amazon linux -
for upload max size to 100M
after you must restart apache and php
so
then you can check your phpinfo
第一步打开php.ini文件
sudo vim /etc/php.ini
编辑:最大文件大小-100m
和
发布最大尺寸为100m
保存并退出
然后
重新启动HTTPD和PHP-FPM
sudo systemctl重新启动php-fpm
sudo systemctl重新启动httpd
现在检查phpinfo输出
first step open the php.ini file
sudo vim /etc/php.ini
edit to : max file size - 100M
and
post max size to 100M
save and exit
then
restart httpd and php-fpm
sudo systemctl restart php-fpm
sudo systemctl restart httpd
now check for phpinfo output