Skip to main content

Installing dependencies

  • According to the manual, we need the following PHP extensions gd, dom, iconv, mbstring, mysqlnd, openssl, pdo, pdo_mysql, tokenizer, xml Yet as it turns out, openssl и pdo_mysql are missing from the repositories so installing as is. We also need curl extension
apt install php php-{curl,gd,dom,iconv,mbstring,mysqlnd,pdo,tokenizer,xml} mariadb-server git apache2
  • Checking Apache

http://null.somedomain.name/

  • Checking PHP
php -v

touch /var/www/html/index.php
nano -w /var/www/html/index.php
<?php
 phpinfo();
?>

http://null.somedomain.name/index.php

  • Installing composer (manual)
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
  • Checking
composer -V