vms
vms copied to clipboard
[<Bitnami Wordpress with NGNIX>] <followed bitnami video tutorial on setting permissions for ftp access>
Platform
Google Cloud Platform
bndiagnostic ID know more about bndiagnostic ID
8b215b98-50df-429e-672f-30dfea46934d
bndiagnostic output
✓ Processes: No issues found ? Resources: Found possible issues ? Connectivity: Found possible issues ? Nginx: Found possible issues ✓ Mariadb: No issues found ✓ Php: No issues found ✓ Wordpress: No issues found
bndiagnostic was not useful. Could you please tell us why?
NA
Describe your issue as much as you can
We were working on changing and testing media files in our website ledsolutions.pro so we needed to use FTP. We setup access using sftp and FileZilla, then realize that we couldn't edit any files. I used this video from bitnami https://www.youtube.com/watch?v=ceKD-WgJXBc&t=16s to set the permissions, after the last step on the video my website wouldn't load. Instead it was a 403 Forbidden message.
I tried doing in all over again, maybe i misspell something, and finally the website loaded, except it is all blank and looks like all the files are gone.
Please help
Here is the history of commands i used:
*** Welcome to the WordPress with NGINX and SSL packaged by Bitnami 6.2.0-17 *** *** Documentation: https://docs.bitnami.com/google/apps/wordpress-pro/ *** *** https://docs.bitnami.com/google/ *** *** Bitnami Forums: https://github.com/bitnami/vms/ *** Last login: Sun Nov 19 15:42:45 2023 from 172.253.240.7 motion_lite_br@led-solutions-pro-vm:~$ sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs chown: cannot access '/opt/bitnami/apps/wordpress/htdocs': No such file or directory motion_lite_br@led-solutions-pro-vm:~$ sudo chown -R bitnami:daemon /opt/bitnami/wordpress/htdocs chown: cannot access '/opt/bitnami/wordpress/htdocs': No such file or directory motion_lite_br@led-solutions-pro-vm:~$ sudo chown -R bitnami:daemon /opt/bitnami/wordpress motion_lite_br@led-solutions-pro-vm:~$ sudo find /opt/bitnami/wordpress -type d -exec chmod 775 find: missing argument to `-exec' motion_lite_br@led-solutions-pro-vm:~$ sudo find /opt/bitnami/wordpress -type d -exec chmod 775 {} ; motion_lite_br@led-solutions-pro-vm:~$ sudo find /opt/bitnami/wordpress - type f -exec chmod 664 {} ; find: ‘-’: No such file or directory find: ‘type’: No such file or directory find: ‘f’: No such file or directory motion_lite_br@led-solutions-pro-vm:~$ sudo find /opt/bitnami/wordpress/ -type f -exec chmod 664 {} ; motion_lite_br@led-solutions-pro-vm:~$ sudo chmod 640 /opt/bitnami/wordpress/wp-config.php motion_lite_br@led-solutions-pro-vm:~$ sudo chmod 664 /opt/bitnami/wordpress/wp-config.php motion_lite_br@led-solutions-pro-vm:~$ sudo chmod 640 /opt/bitnami/wordpress/wp-config.php motion_lite_br@led-solutions-pro-vm:~$ sudo /opt/bitnami/ctlscript.sh status mariadb already running nginx already running php-fpm already running motion_lite_br@led-solutions-pro-vm:~$ sudo /opt/bitnami/ctlscript.sh restart Restarting services.. motion_lite_br@led-solutions-pro-vm:~$ sudo stat opt/bitnami/wordpress/ stat: cannot statx 'opt/bitnami/wordpress/': No such file or directory motion_lite_br@led-solutions-pro-vm:~$ sudo stat opt/bitnami/wordpress stat: cannot statx 'opt/bitnami/wordpress': No such file or directory motion_lite_br@led-solutions-pro-vm:~$ sudo stat /opt/bitnami/wordpress File: /opt/bitnami/wordpress Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 801h/2049d Inode: 403864 Links: 6 Access: (0664/drw-rw-r--) Uid: ( 1000/ bitnami) Gid: ( 1/ daemon) Access: 2024-08-12 15:15:43.556571369 +0000 Modify: 2024-08-07 20:32:15.448923129 +0000 Change: 2024-08-12 15:14:56.380610508 +0000 Birth: 2023-05-03 01:54:46.162609685 +0000 motion_lite_br@led-solutions-pro-vm:~$ sudo chown -R bitnami:daemon /opt/bitnami/wordpress/ motion_lite_br@led-solutions-pro-vm:~$ sudo find /opt/bitnami/wordpress -type d -exec chmod 775 {} ; motion_lite_br@led-solutions-pro-vm:~$ sudo find /opt/bitnami/wordpress/ -type f -exec chmod 664 {} ; motion_lite_br@led-solutions-pro-vm:~$ sudo chmod 640 opt/bitnami/wordpress/wp-config.php chmod: cannot access 'opt/bitnami/wordpress/wp-config.php': No such file or directory motion_lite_br@led-solutions-pro-vm:~$ sudo chmod 640 /opt/bitnami/wordpress/wp-config.php motion_lite_br@led-solutions-pro-vm:~$ sudo stat /opt/bitnami/wordpress/wp-config.php File: /opt/bitnami/wordpress/wp-config.php -> /bitnami/wordpress/wp-config.php Size: 32 Blocks: 0 IO Block: 4096 symbolic link Device: 801h/2049d Inode: 394873 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 1000/ bitnami) Gid: ( 1/ daemon) Access: 2024-08-12 15:32:32.391734628 +0000 Modify: 2023-05-17 01:24:32.694365575 +0000 Change: 2024-08-12 15:29:37.215879921 +0000 Birth: 2023-05-17 01:24:32.694365575 +0000 motion_lite_br@led-solutions-pro-vm:~$ sudo stat /opt/bitnami/wordpress/ File: /opt/bitnami/wordpress/ Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 801h/2049d Inode: 403864 Links: 6 Access: (0775/drwxrwxr-x) Uid: ( 1000/ bitnami) Gid: ( 1/ daemon) Access: 2024-08-12 15:30:55.035815377 +0000 Modify: 2024-08-07 20:32:15.448923129 +0000 Change: 2024-08-12 15:30:36.683830592 +0000 Birth: 2023-05-03 01:54:46.162609685 +0000