Question: Anomalies Occurred After Deploying The Server.

Anomalies Occurred After Deploying The Server.

Due to a forum breach, we are currently testing the restoration of website data, migrating from a virtual host to a cloud server, configuring the .env database, and updating the domain name. Additiona...

T

TOV

Asked
Due to a forum breach, we are currently testing the restoration of website data, migrating from a virtual host to a cloud server, configuring the .env database, and updating the domain name. Additionally, we have set up the public runtime directory, yet the test site remains inaccessible. Please assist in troubleshooting the cause. Thank you. I will send the domain name to the comment section.
  • T

    TOV

    Answered
    Given the urgency of the situation, please pinpoint the exact issue for me. Thank you.
  • MS

    Mian Saleem

    Answered
    Hello,

    After moving the files and restoring the database base. You only need to update the `.env` for app url and database config.

    I can see the that the livewire.js file is not loading. Please download the latest file and try to install it. After installation you can restore the database of from old one and run `php artisan migrate --force` command. For uploads, you can restore the `public/assets/` folder from the old server.

    Thank you
  • T

    TOV

    Answered
    Hello, currently there's a 500 error. The log files aren't telling me the cause either.
  • T

    TOV

    Answered
    **[@Mian Saleem](/u/saleem)** Hello, currently there's a 500 error. The log files aren't telling me the cause either.
  • MS

    Mian Saleem

    Answered
    Hello,

    Please make sure that the `APP_URL` is set to `https://`

    If there is issue with ssl redirect or anything then you can try to force https by editing the `app/Providers/AppServiceProvider.php` and add `use Illuminate\Support\Facades\URL;` at the top of the file, inside the boot method, add the following code:

    ```php
    URL::forceScheme('https');
    ```

    to forces the HTTPS scheme.

    Thank you
  • T

    TOV

    Answered
    **[@Mian Saleem](/u/saleem)** Thanks, it's been resolved. I can log in normally now.
  • MS

    Mian Saleem

    Answered
    I am glad to know, please make sure that only `public` folder is accessible for web traffic and never allow to upload `php`,`js`,`py` or any other language files to secure your forum. Thank you
  • T

    TOV

    Answered
    **[@Mian Saleem](/u/saleem)** Thank you for your patience.
  • Login to Reply