Installing php osx 11.4

Langsung error cnah uy

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/php
Target /usr/local/bin/php
already exists. You may want to remove it:
  rm '/usr/local/bin/php'

To force the link and overwrite all conflicting files:
  brew link --overwrite php

To list all files that would be deleted:
  brew link --overwrite --dry-run php

Cnah mah pedah AMPPS, hapus weh ku urg teh

Possible conflicting files are:
/usr/local/bin/php -> /Applications/AMPPS/php/bin/php
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set php_ini /usr/local/etc/php/8
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set php_dir /usr/local/share/pea
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set doc_dir /usr/local/share/pea
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set ext_dir /usr/local/lib/php/p
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set bin_dir /usr/local/opt/php/b
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set data_dir /usr/local/share/pe
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set cfg_dir /usr/local/share/pea
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set www_dir /usr/local/share/pea
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set man_dir /usr/local/share/man
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set test_dir /usr/local/share/pe
==> /usr/local/Cellar/php/8.0.8/bin/pear config-set php_bin /usr/local/opt/php/b
==> /usr/local/Cellar/php/8.0.8/bin/pear update-channels

Rieut oge uninstall na, langsung trash keun weh, semoga weuh masalah

Nu penting ieu tah, cara ngahurungkeun php na

To enable PHP in Apache add the following to httpd.conf and restart Apache:
    LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so

    <FilesMatch \.php$>
        SetHandler application/x-httpd-php
    </FilesMatch>

Finally, check DirectoryIndex includes index.php
    DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
    /usr/local/etc/php/8.0/

To start php:
  brew services start php
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/php/sbin/php-fpm --nodaemonize

Ieu muruluk kieu dependenciesna, edan ey:

muruluk

Leave a comment

Design a site like this with WordPress.com
Get started