These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for php7 [re]installation issue on the new forum.
hello -
i was trying to install VM/webmin on php7 and got an error (below)
here is how i installed php7:
## Upgrade to php 7 2016-01-30 using instructions https://webtatic.com/packages/php70/
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum --assumeyes install yum-plugin-replace ;
yum replace php-common --replace-with=php70w-common ;
and here is what i see afterwards:
php -v;
PHP 7.0.2 (cli) (built: Jan 9 2016 14:00:11) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
below are the results in /root/virtualmin-install.log - it seems to be having issues on php.
Processing Conflict: php70w-common-7.0.2-1.w7.x86_64 conflicts php-common < 5.5.0
---> Package perl-Package-Constants.noarch 1:0.02-286.el7 will be installed
---> Package perl-Socket6.x86_64 0:0.23-15.el7 will be installed
---> Package perl-TimeDate.noarch 1:2.30-2.el7 will be installed
---> Package perl-URI.noarch 0:1.60-9.el7 will be installed
--> Processing Dependency: perl(Business::ISBN) for package: perl-URI-1.60-9.el7.noarch
---> Package perl-WWW-RobotRules.noarch 0:6.02-5.el7 will be installed
---> Package perl-XML-SAX-Base.noarch 0:1.08-7.el7 will be installed
---> Package ruby-irb.noarch 0:2.0.0.598-25.el7_1 will be installed
---> Package rubygem-json.x86_64 0:1.7.7-25.el7_1 will be installed
--> Running transaction check
---> Package perl-Business-ISBN.noarch 0:2.06-2.el7 will be installed
--> Processing Dependency: perl(Business::ISBN::Data) >= 20120719.001 for package: perl-Business-ISBN-2.06-2.el7.noarch
---> Package perl-Crypt-OpenSSL-Bignum.x86_64 0:0.04-18.el7 will be installed
---> Package perl-Crypt-OpenSSL-Random.x86_64 0:0.04-21.el7 will be installed
---> Package perl-IO-HTML.noarch 0:1.00-2.el7 will be installed
---> Package perl-Net-SMTP-SSL.noarch 0:1.01-13.el7 will be installed
--> Running transaction check
---> Package perl-Business-ISBN-Data.noarch 0:20120719.001-2.el7 will be installed
--> Processing Conflict: php70w-common-7.0.2-1.w7.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
FATAL - 2016-01-30 12:43:38 - Fatal Error Occurred: Something went wrong during installation: 0
FATAL - 2016-01-30 12:43:38 - Cannot continue installation.
FATAL - 2016-01-30 12:43:38 - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - 2016-01-30 12:43:38 - re-attempted after any problems have been resolved.
FATAL - 2016-01-30 12:43:40 - Removing temporary directory and files.
FATAL - 2016-01-30 12:43:40 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2016-01-30 12:43:40 - in /root/virtualmin-install.log
well, i think i might have it solved, sort of. here is my webmin/virtualmin installation script:
mkdir ~/webmin && cd ~/webmin ;
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.780.tar.gz ;
gzip -d ./webmin* && tar -xvf ./webmin* && cd ./webmin* ;
./setup.sh ;
curl http://software.virtualmin.com/gpl/scripts/install.sh > install.sh ;
chmod 755 ./install.sh ;
./install.sh ; ## problem child !
this time, before running ./install.sh, i went in and edited it, so "php" becomes "php70w", "php-" becomes "php70w-", etc.
i was tempted to write a sed-line to do this for me, except i suspect one of our resident wizards is going to admonish and chastise me for tampering with an installation script.
here is how i did it manually:
yum --assumeyes install php70w \
php70w-common \
php70w-opcache \
php70w-devel \
php70w-pear \
php70w-xml \
php70w-gd \
php70w-imap \
php70w-mysql \
php70w-odbc \
php70w-pgsql \
php70w-snmp \
php70w-xmlrpc \
php70w-mbstring ;
right or wrong, i modified the virtualmin install script using a sed command:
mkdir ~/webmin && cd ~/webmin ;
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.780.tar.gz ;
gzip -d ./webmin* && tar -xvf ./webmin* && cd ./webmin* ;
./setup.sh ;
##install virtualmin:
curl http://software.virtualmin.com/gpl/scripts/install.sh \
| sed -e 's/ php-/ php70w-/g; s/ php / php-70w /g; s/ php5/ php70w/g; ' \
> install.sh ;
chmod 755 ./install.sh ;
./install.sh ;
any opinions on this are welcome.