Question: 500 error first time install

500 error first time install

Hi, I uploaded all files to a sub-folder, typed https://www.mydomain.com/subfolder/install And I get 500 error? I also use your simple invoice. (works perfectly) My server (plesk (debian)/

G

Gunther

Asked

Hi,

I uploaded all files to a sub-folder, typed https://www.mydomain.com/subfolder/install And I get 500 error?

I also use your simple invoice. (works perfectly) My server (plesk (debian)/DB Mysql latest version)

Read the doc…

why can’t I install?

Thanks Gunther

  • MS

    Mian Saleem

    Answered

    Hello,

    The Laravel installation is quite different and difficult than CodeIgniter v3. If you set the root path correct then it will be easier by accessing install and following the steps.

    The good thing is laravel has better error reporting tools. You can check the latest log file in storage/logs/ folder for errors.

    Let me know the error details so that I can suggest solution.

    Thank you

  • MS

    Mian Saleem

    Answered

    Hello,

    Please update you php version to 7.4 as the latest update require php7.4

    Thank you

  • MS

    Mian Saleem

    Answered

    Hello,

    Now the error is due to app key,

    Please check your .env file and If update the APP_KEY is missing or empty. You can run php artisan key:generate or manually add key as following

    APP_KEY=base64:VuMQy24XBoefyf/Fku8vqZYFcl+QL/h4MQpnAWXoSgw=
    

    Thank you

  • G

    Gunther

    Answered

    Hello,

    Not working. And the key is there. attached.

    I have 2-3 laravel app/site running on this server in parallel with couple of codeingniter sites including one of yours. There’s something wrong with the installer. This is not supposed to happen on a weekly maintained plesk/debian server up to date.

    Thank you

  • MS

    Mian Saleem

    Answered

    Hello,

    Please let me know the installation link and server details. I will try to check.

    You can post private reply by enabling the PRIVATE for Staff only at top right of the reply section.

    Thank you

  • MS

    Mian Saleem

    Answered

    Hello,

    Th perg_match error might be related to unescaped -

    Can you please edit the installer/Requests/UserRequest.php

    and replace the line 25 - 30 with

                'name' => [
                    'required', 'string', 'max:50', 'regex:/^[\w\-_.\&\s]*$/',
                ],
                'username' => [
                    'required', 'max:25', 'unique:users', 'regex:/^[\w\-_.]*$/',
                ],
    

    This should resolve the preg_match issue.

    Thank you

  • Login to Reply