Log message #4017271

# At Username Text
# Apr 18th 2017, 18:47 sjundee Yes, but I can locate `/etc/profile.d/cpanel-php-composer.sh`. So don't know what's broke.
# Apr 18th 2017, 18:43 theaxiom you can download composer.phar and run it directly @sjundee
# Apr 18th 2017, 18:13 sjundee Sent a ticket an hours ago as well. Composer is broken :(
# Apr 18th 2017, 18:12 sjundee Yup. I'll send a support ticket right away :slightly_smiling_face: That will (hopefully) make it easy to use `~/myapp/webroot/` as a working document root.
# Apr 18th 2017, 18:09 theaxiom they should have no problem giving you write access
# Apr 18th 2017, 18:08 theaxiom maybe submit a support ticket to your provider
# Apr 18th 2017, 18:08 theaxiom that sucks
# Apr 18th 2017, 18:08 sjundee Thanks for the tips @theaxiom . I see I only have reading permission to domain.com (the file located in `var/cpanel/userdata/USERNAME/`.
# Apr 18th 2017, 17:55 theaxiom @sjundee https://www.servint.net/university/article/the-tech-bench-changing-a-document-root-in-cpanel/
# Apr 18th 2017, 17:04 sjundee Have fun ;) Thanks
# Apr 18th 2017, 17:04 theaxiom I have to run to the pet store
# Apr 18th 2017, 17:04 theaxiom take care
# Apr 18th 2017, 17:04 theaxiom :slightly_smiling_face:
# Apr 18th 2017, 17:04 hmic clone to an empty dir of your choice, set webroot in cpanel to the apps webroot - done.
# Apr 18th 2017, 17:03 sjundee Ill check that out :slightly_smiling_face:
# Apr 18th 2017, 17:03 hmic so there you go!
# Apr 18th 2017, 17:03 theaxiom Then you don't even need a symlink
# Apr 18th 2017, 17:03 sjundee cpanel
# Apr 18th 2017, 17:03 theaxiom Which hosting control panel are you using?
# Apr 18th 2017, 17:03 theaxiom if you are using cPanel you can change the default public_html directory directly to your webroot
# Apr 18th 2017, 17:03 sjundee Earlier I have cloned all files into `~/` but ´webroot´ that has been cloned to `~/public_html/`. That worked fine. But I realize I probably should mess up with server files and my app files in `~/`.
# Apr 18th 2017, 17:01 theaxiom that is by far the easiest method
# Apr 18th 2017, 17:01 theaxiom hmic said to clone your code to a folder beside public_html then symlink webroot to public_html
# Apr 18th 2017, 17:00 theaxiom even if PHP fails and the PHP code is directly output to the browser, your app code is still protected
# Apr 18th 2017, 17:00 sjundee Allright. I don't have it 100% clear for me, but I think I'll figure something out with the inputs you provided :slightly_smiling_face: Thanks @theaxiom and @hmic
# Apr 18th 2017, 17:00 theaxiom I've personally never had an issue with .htaccess and have traditionally deployed the entire app to public
# Apr 18th 2017, 16:57 theaxiom but it is more complicated than a symlink
# Apr 18th 2017, 16:57 theaxiom you would have to rename webroot to public_html and then change some configs in your app
# Apr 18th 2017, 16:57 hmic sjundee: theaciom is talking about rsyncing the whole app, not the webroot dir alone
# Apr 18th 2017, 16:57 theaxiom @sjundee symlink will be the easiest way
# Apr 18th 2017, 16:56 theaxiom I run my app in Docker
# Apr 18th 2017, 16:56 theaxiom @sjundee just use a symlink
# Apr 18th 2017, 16:56 sjundee I just don't understand how a "copy" with rsync will be able to tell my app where to look for the core files.
# Apr 18th 2017, 16:55 theaxiom ok
# Apr 18th 2017, 16:55 hmic theaxiom: no security implications.
# Apr 18th 2017, 16:55 theaxiom @hmic that makes sense, but not from a security standpoint
# Apr 18th 2017, 16:54 sjundee Right. Got some options to work on at least.
# Apr 18th 2017, 16:54 hmic as you have an atomic operation switching between versions!
# Apr 18th 2017, 16:54 hmic theaxiom: the opposite is true. it's even a best practice to symlink the public folder to your app
# Apr 18th 2017, 16:54 theaxiom you're obviously more than welcome to do it either way
# Apr 18th 2017, 16:54 theaxiom I wouldn't recommend using a symlink from a public folder to a private folder, that's just my opinion