내용으로 건너뛰기

can't update or upload file in filezilla & error establishing database connection

0

Hello aws community, I can't update or upload any file in filezilla ftp. When I update wp-config.php or any new file upload in wordpress folder filezilla automatically server change into 0 kb file size. what can I do to resolve this issue in aws. Is there any way to upload my wp-config.php in aws server. Also my wordpress backend doesn't open it shows the error establishing a database connection how can I resolved these two issues. anyone from the community guide or help me. thanks.

see the attached screenshot

질문됨 3년 전767회 조회

2개 답변
0

Hello.
The reason why wp-config.php fails to upload is a problem with the permission settings of the files and directories located in Lightsail.
The error is due to the fact that the user using FTP does not have permission to update the file.
Try the following command in Lightsail.

sudo chmod 775 -R /opt/bitnami/app/wordpress/htdocs
sudo usermod -aG daemon ftp-user-name

Is the database the one running inside Lightsail?
Are you externally hosted using RDS or similar?
Also, have you set up the correct DB connection information in wp-config.php?

전문가

답변함 3년 전

0

wp-config file screen shot ()Yes, I already use these command but nothing happen same error occurs. In wp-config files everything database name, username, passwords is same nothing changes. sudo chmod 775 -R /opt/bitnami/apps/wordpress/htdocs sudo usermod -aG daemon bitnami also wp-config files is attached in it u can view it.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.