Basically, I was trying to fix an issue where I couldn't upload images to my newly migrated WordPress site. The site is on a VPN and I found this article, http://2surge.com/how-to-fix-the-uploaded-file-could-not-be-moved-to-wp-content-error-message/, which gave the following solution: Execute the following command as root user to give Apache user ownership of WordPress files:
chown -R nobody /home/<username>/public_html
But I think I should have given ownership to the WP directories within my main directory. Instead, I gave the Apache user ownership of my public_html folder. And now I can't access public_html via ftp. I get the error: Failed to Return Directory Listing.
Can I simply change the owner back to the original system user using the same command like so:
chown -R originaluser /home/<username>/public_html
Or is that oversimplifying a concept I have a very rudimentary and patchy grasp of?