Natha Odedara
0
Q:

how to install php

#On ubuntu (there are many versions, php7 is just an example):
sudo apt install php7
#Then if you want to use it on apache2:
sudo a2enmod php
sudo systemctl restart apache2
1
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
0

New to Communities?

Join the community