We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Issues Running V3 on Shared Hosting

Ian Streckel September 8, 2020 by Ian Streckel


I'm trying to modify a few Statamic sites to run V3 on shared hosting. The 'public' directory needs to become 'public_html'. Did some digging on how to make Statamic/Laravel find "publi_html" as the public path and most suggestions pointed to putting the following in AppServiceProvider.php:

public function register()
    $this->app->bind('path.public', function() {
        return base_path('public_html');

This and renaming "public" references in a few places like server.php seems to do the trick, however, my Asset containers (using "assets" in filesystem) are still generating in public/assets. Other filesystem options seem to work as expected but I prefer the file structure of using "assets". Does anyone know of a workaround or fix for this?

>>>>>>> Unanswered <<<<<<<
6 Replies