dear experts!

I faced the problem of transferring the default Laravel project (made on OpenServer home machine) to remote hosting.

The transfer was done on the guide from the video: the contents of the public folder in public_html, the rest is just a folder (called project).

In the index.php file changed the paths added path to framework folder with framework .

Got a domain error:

ErrorException (E_WARNING) file_put_contents (C: \ OpenServer \ OSPanel \ domains \ project \ project \ storage \ framework / sessions / FYq9CUUKKHH0uIgu1VlRQ50ylyhml2jj8pS3aT61): failed to open: No such file or directory

I understand that the project path was somehow duplicated. But I do not know what to change and where .. and why it was so difficult to transfer even an empty project.

ps The project is absolutely empty test (only welcome.blade.php is displayed).

    1 answer 1

    ErrorException (E_WARNING) file_put_contents (C: \ OpenServer \ OSPanel \ domains \ project \ project \ storage \ framework / sessions / FYq9CUUKKHH0uIgu1VlRQ50ylyhml2jj8pS3aT61): failed to open: No such file or directory

    Are you confused by this path? It seems that in addition the old paths to the directories are still in the cache. Try first to clear the cache through the artisan commands:

    php artisan cache:clear php artisan config:clear 

    To perform these actions, you must have ssh access to your account on a shared server.

    I don’t think it’s worthwhile to manipulate the directory change, you can place the core of the project in public_html and request the host to change the main directory to public_html / public . As a rule, normal hosting should do this. Also, you can through. htaccess simply configure rewrite to the public directory:

     DirectoryIndex /public/index.php RewriteEngine On RewriteRule ^(.*) public/$1 [L] 
    • I'll try your way tomorrow! thanks for the advice! - Artem Grafsky
    • OK, if there are additional. difficulties - ready to help with the deployment of the project. - korkoshko
    • Difficulties are just beginning! because I made a website on a full-fledged * well, let's say test) and when I threw it on the host I got an error 500 ... then I realized that I had to solve the issue step by step and start with the usual project bay. For me it is very hard .. although it would be because 10 000 files in one project can be reloaded on FTP this thing is ( - Artem Grafsky
    • much hands fall after such ... - Artem Grafsky
    • one
      folder vendor also drag with you? - korkoshko