WordPress database error: [Disk full (/tmp/#sql_4cf_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]
SHOW FULL COLUMNS FROM `wp_options`

How to install composer for PHP – WWW.TRIJULIAN.WEB.ID

How to install composer for PHP

This article describes how to install and configure composer, a PHP dependency manager. Composer enables you to manage dependencies for each project independently, and is used by frameworks such as Laravel.

INSTALLING COMPOSER

To install composer, follow these steps:

  1. Log in to your account using SSH.
  2. To configure your shell environment to use composer, type the following commands. Replace username with your account username:echo ‘alias composer=”php -d allow_url_fopen=On /home/username/composer.phar”‘ >> ~/.bashrc source ~/.bashrcYou can use composer with alternate PHP versions as well:
    • On an account that has CageFS enabled, all you need to do is select the PHP version in cPanel that you want to use. For information about how to do this, please see this article.
    • On an account that does not have CageFS enabled, you must manually specify the path to the PHP executable in the ~/.bashrc file. For example, if you want to run composer using PHP 5.5, type the following commands instead:echo ‘alias php=”/opt/php/php-5.5.0/bin/php”‘ >> ~/.bashrc echo ‘alias composer=”/opt/php/php-5.5.0/bin/php -d allow_url_fopen=On /home/username/composer.phar”‘ >> ~/.bashrc source ~/.bashrcFor more information about how to use alternate PHP versions on A2 Hosting servers that do not use CageFS, please see this article.
  3. To download the composer installer, type the following commands:
    cd ~ curl -k -O https://getcomposer.org/installer
  4. To install composer, type the following command:
    php -d allow_url_fopen=On installer
    • To confirm composer installed correctly, type the following command:composer -VComposer should display the version number. If it does not, repeat steps 2 to 4, paying close attention to the paths.
    • To update the composer installation to the newest version in the future, type the following command:
      composer self-update

note : Jika menggunakan suhosin, tambahkan script ini di php.ini

“suhosin.executor.include.whitelist=phar”

source : https://www.a2hosting.com/kb/developer-corner/php/installing-composer

Posted on: August 16, 2019, by :  | 6 views
https://serang.ut.ac.id/css/css/slot88/ https://tinjut.bagkeu.dikdasmen.kemdikbud.go.id/slot-maxwin/ https://dpm.polinema.ac.id/slot-gacor/ https://akademik.ft.unm.ac.id/slot-dana/ https://ppdb.probolinggokab.go.id/slot-5000/ https://bkad.sulselprov.go.id/assets/ https://ojs.balidwipa.ac.id/docs/slot-gacor/ http://korpri.pekalongankab.go.id/api/slot-gacor/ https://elang.umpp.ac.id/foto/farmasi/-/asset/ http://rsud-kelet.jatengprov.go.id/wp-content/-/asset/ https://kusdhianto-fe.staff.ugm.ac.id/slot88/ http://ppdb.probolinggokab.go.id/judi-bola/ https://bapenda.labuhanbatukab.go.id/racikan-sbobet/ http://rsud-kelet.jatengprov.go.id/wp-content/-/data/ https://agenda.riau.go.id/-/judi-bola/ https://balapan.padang.go.id/sbobet88/ http://jdih.wakatobikab.go.id/sbobet88/ http://kph.menlhk.go.id/sbobet88/ https://bkad.sulselprov.go.id/data/ https://dpm.polinema.ac.id/slot-gacor/ https://dinkes.jemberkab.go.id/storage/attachments/