Installing Laravel failed

Hi,

after created a domain I tried to installa Laravel app and it fails.

Error:

Creating a "laravel/laravel" project at "./public_html" Installing laravel/laravel (v12.11.2) proc_open is disabled so 'unzip' and '7z' commands cannot be used, zip files are being unpacked using the PHP zip extension. This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost. Enabling proc_open and installing 'unzip' or '7z' (21.01+) may remediate them. - Downloading laravel/laravel (v12.11.2) - Installing laravel/laravel (v12.11.2): Extracting archive Created project in /home/stefano/web/calcolatrapassoauto.it/public_html > @php -r "file_exists('.env') || copy('.env.example', '.env');" In Process.php line 147: The Process class relies on proc_open, which is not available on your PHP i nstallation. create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-security-blocking] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]] Error: cmd exited with errors

I’m using Quick Install App tool

Do Someone can help me?

Thanks in advance

You must enable proc_open function in PHP:

sed -i -E 's/(^disable_functions.*),proc_open(.*$)/\1\2/' /etc/php/$(php -v | head -n1 | grep -o '[0-9]\.[0-9]')/cli/php.ini

To disable it again:

sed -i -E 's/(^disable_functions.*)/\1,proc_open/' /etc/php/$(php -v | head -n1 | grep -o '[0-9]\.[0-9]')/cli/php.ini

Yes, correct but why? Wordpress works fine with quick install app.

Different apps, different installers.

1 Like

It works fine, thanks.

1 Like