I’m new to php and I’m having problems which I think is related to php versions. I’m getting errors with composer saying
is missing from your system. Install or enable PHP's gd extension.
Problem 3
- The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension.
Problem 4
- The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.
Problem 5
- The requested PHP extension ext-mysqlnd * is missing from your system. Install or enable PHP's mysqlnd extension.
Problem 6
- The requested PHP extension ext-pdo_mysql * is missing from your system. Install or enable PHP's pdo_mysql extension.
Problem 7
- The requested PHP extension ext-simplexml * is missing from your system. Install or enable PHP's simplexml extension.
Problem 8
- The requested PHP extension ext-xmlwriter * is missing from your system. Install or enable PHP's xmlwriter extension.[/code]
This is what I've done to install php
[code]sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get install -y language-pack-en-base
sudo apt-get update
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6
sudo apt-get install php5 php5-cli php5-dev php5-json php-pear php5-gd php5-mysqlnd php5-curl
sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php
PHP 5.6.24-1+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
I have no idea what the problem is as I believe I have the required extensions installed. Any help would be appreciated (assume I know nothing).
so I should create a file info.php and place that code into it and then type the ipaddress/info.php into my browser?
I had previous done the above and didn’t get anything to show up I don’t remember the error msg in the browser.
sudo ./install.sh
mkdir: cannot create directory ‘/usr/local/php7/etc/conf.d’: No such file or directory
ln: failed to create symbolic link ‘/usr/local/php7/sbin/php7-fpm’: No such file or directory
cp: cannot stat ‘php-src/php.ini-production’: No such file or directory
cp: cannot create regular file ‘/usr/local/php7/etc/php-fpm.d/www.conf’: No such file or directory
cp: cannot create regular file ‘/usr/local/php7/etc/php-fpm.conf’: No such file or directory
cp: cannot create regular file ‘/usr/local/php7/etc/conf.d/modules.ini’: No such file or directory
Adding system startup for /etc/init.d/php7-fpm ...
/etc/rc0.d/K20php7-fpm -> ../init.d/php7-fpm
/etc/rc1.d/K20php7-fpm -> ../init.d/php7-fpm
/etc/rc6.d/K20php7-fpm -> ../init.d/php7-fpm
/etc/rc2.d/S20php7-fpm -> ../init.d/php7-fpm
/etc/rc3.d/S20php7-fpm -> ../init.d/php7-fpm
/etc/rc4.d/S20php7-fpm -> ../init.d/php7-fpm
/etc/rc5.d/S20php7-fpm -> ../init.d/php7-fpm
sed: can't read /usr/local/php7/etc/php-fpm.conf: No such file or directory
It also says that the extension are not compatible with php 7 and I think I need them. Should I use php 5.6 instead?