Don't use sudo to create the project, sudo creates the project as the root user. If you can't do that with htdocs, you need to change the ownership of htdocs using
sudo chown <you>:<group> <path to htdocs>. This will allow you to create a project with your user credentials.
After this the only reason you might need to change the storage folder permissions/ownership is because your webserver will need access