Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

simsar78's avatar

Error zsh: segmentation fault php artisan migrate

Hello, i have this error:

zsh: segmentation fault php artisan migrate

where launch this command:

php artisan migrate

Why ?

0 likes
9 replies
tykus's avatar

Not much to go on from the error message alone; what operation actually fails?

simsar78's avatar

i launch php artisan migrate.

Migrate get first file and return an error.

simsar78's avatar

The migration file is:

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('form_tag', function (Blueprint $table) {
            $table->integer('id');
            $table->string('title');
            $table->string('description');
            $table->integer('status')->default(1);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('form_tag');
    }
    
};

The migrations table is empty

When I launch the command have this:

xxx % php artisan migrate

   INFO  Running migrations.  

  2014_10_12_000000_create_users_table zsh: segmentation fault  php artisan migrate

xxx %
Sinnbeck's avatar

@simsar78 the error mentions 2014_10_12_000000_create_users_table? But that is getting run or?

simsar78's avatar

I have the error in all migration file. Migration init running but stop at error fault. Not create a table. Read only first file after stop.

tykus's avatar

@simsar78 I have the error in all migration file - how do you know this; what steps are you taking to debug? Does any Artisan command work?

simsar78's avatar
simsar78
OP
Best Answer
Level 1

All other artisan command function. I only try to launch migrate command....

In other project function

OOpps..... the problem is on database :-(

I have delete the database and recreate it... now function.... Thanks at all for yours support :-)

1 like

Please or to participate in this conversation.