Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    javier san felipe
    @sanfe:matrix.org
    [m]
    im looking for the secret key i made with the php artisan
    Benoît Viguier
    @ildyria
    It should be in APP_KEY
    javier san felipe
    @sanfe:matrix.org
    [m]
    i dnt know what im doing wrong, now i only have a white page, so tomorrow i will restart all the server from the begining
    javier san felipe
    @sanfe:matrix.org
    [m]
    thanks @ildyria
    Matthias Nagel
    @nagmat84

    @sanfe:matrix.org This

    DB_HOST=localhost
    DB_PORT=80

    Typically, your web server is listening on port 80 for http unless you are only using https on port 443. But even then a DB server is rarely listing on port 80. For MySQL/MariaDB the usual port is 3306.

    javier san felipe
    @sanfe:matrix.org
    [m]
    Hi! doing the install with composer, i have the next error:

    500
    HttpException

    could not find driver (SQL: PRAGMA foreign_keys = ON;)

    Benoît Viguier
    @ildyria
    @sanfe:matrix.org did you make sure you have the pdo extension enabled ?
    and the mysql one too ?
    because that really sounds like a bug that happens if those are not enabled
    javier san felipe
    @sanfe:matrix.org
    [m]
    doing now sudo apt-get install php-sqlite3
    Benoît Viguier
    @ildyria
    you can also use sqlite3 too
    if you want
    the one you may want is php8.0-mysql or php8.1-mysql depending of your php version.
    javier san felipe
    @sanfe:matrix.org
    [m]
    now its working ok, im going to try the web interface installation
    Benoît Viguier
    @ildyria
    you can go sqlite3 way, but it is less safe IMHO as you don't have as many tools in case fuck up
    nice :)
    I mean if you have command line
    you don' need the web interface installation
    you can just do artisan migrate
    and then go the page.
    javier san felipe
    @sanfe:matrix.org
    [m]
    yes i i have command line, its a odroid board without hdmi or vga output
    Benoît Viguier
    @ildyria
    the web interface is really just for those who do not have access to command line
    javier san felipe
    @sanfe:matrix.org
    [m]
    how is the artisan command?
    Benoît Viguier
    @ildyria
    php artisan migrate
    javier san felipe
    @sanfe:matrix.org
    [m]
    oks

    In Connection.php line 712:

    SQLSTATE[HY000]: General error: 8 attempt to write a readonly database (SQL: create table "migrations" ("id" inte
    ger not null primary key autoincrement, "migration" varchar not null, "batch" integer not null))

    In Connection.php line 501:

    SQLSTATE[HY000]: General error: 8 attempt to write a readonly database

    Martin Stone
    @d7415
    Write access is required
    Benoît Viguier
    @ildyria
    is your DB : DB_CONNECTION=sqlite ?
    and yes database/database.sqlite needs to be writable
    javier san felipe
    @sanfe:matrix.org
    [m]
    oks
    my db is MariaDB
    and, sorry about the questions. Where is de config file?
    Benoît Viguier
    @ildyria
    Did you configure the mysql user ?
    config file is the .env
    javier san felipe
    @sanfe:matrix.org
    [m]
    and must be in the main folder?
    Benoît Viguier
    @ildyria
    yeah
    not in public!
    it is a .env
    do ls -lola
    (it is hidden because starts with .)
    javier san felipe
    @sanfe:matrix.org
    [m]
    We did not detect any errors. However if the migration failed, remove the installed.log file and reopen this page.
    wait, im going to report u
    Yeah,, its working. im going to save all the tricks.
    Benoît Viguier
    @ildyria
    :)
    javier san felipe
    @sanfe:matrix.org
    [m]
    thanks all. Now im going to read how to secure with ssl
    Benoît Viguier
    @ildyria
    that's easy
    there you go.
    javier san felipe
    @sanfe:matrix.org
    [m]
    this is that im using in nextcloud i think