You are not logged in.

#1 2018-04-29 10:56:27

enoch_root
Member
Registered: 2015-12-17
Posts: 6

[SOLVED]PHP 7.0 system wide installation

Hello, I need to install system wide php 7.0. What is the best way to do that? I've tried install it with yaourt, but it locates the whole php package with deps in /opt, and after moving it to root folder php looks for *.ini files in /opt. Is there any other solution than manually installing all php packages from archive.archlinux.org? Thanks in advance

Last edited by enoch_root (2018-04-29 13:13:27)

Offline

#2 2018-04-29 11:21:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED]PHP 7.0 system wide installation

What exactly have you "tried to install with yaourt"? There's not a single mention of /opt anywhere in the php70 PKGBUILD

Offline

#3 2018-04-29 11:23:44

enoch_root
Member
Registered: 2015-12-17
Posts: 6

Re: [SOLVED]PHP 7.0 system wide installation

Well, I will try to install it with yaourt again, maybe something went wrong.Thanks for reply. Please dont close topic right now.

Last edited by enoch_root (2018-04-29 11:35:05)

Offline

#4 2018-04-29 11:27:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED]PHP 7.0 system wide installation

Of course you will have problems attempting to install a completely outdated stack base . Whatever you installed was not the AUR package, post the exact error message and command used when trying to install php70 via yaourt. What's the output of

uname -a

Offline

#5 2018-04-29 11:37:24

enoch_root
Member
Registered: 2015-12-17
Posts: 6

Re: [SOLVED]PHP 7.0 system wide installation

uname -a
Linux mezo 4.16.5-1-ARCH #1 SMP PREEMPT Thu Apr 26 16:53:40 UTC 2018 x86_64 GNU/Linux

Offline

#6 2018-04-29 11:37:56

enoch_root
Member
Registered: 2015-12-17
Posts: 6

Re: [SOLVED]PHP 7.0 system wide installation

==> Verifying source file signatures with gpg...
    php-7.0.29.tar.xz ... FAILED (unknown public key BCAA30EA9C0D5763)
==> ERROR: One or more PGP signatures could not be verified!
==> ERROR: Makepkg was unable to build php70.

Offline

#7 2018-04-29 11:39:06

enoch_root
Member
Registered: 2015-12-17
Posts: 6

Re: [SOLVED]PHP 7.0 system wide installation

previous attempt installing php70 with yaourt ended with no errors, but it was installed in /opt, as ive told earlier

Offline

#8 2018-04-29 11:47:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED]PHP 7.0 system wide installation

I don't know what you tried to install but it wasn't that package. As for the GPG key error https://wiki.archlinux.org/index.php/Gn … public_key and read the pinned comment on the AUR page.

And please edit earlier posts to append new information instead of bumping if no one has answered in between.

Last edited by V1del (2018-04-29 11:48:33)

Offline

#9 2018-04-29 12:05:54

enoch_root
Member
Registered: 2015-12-17
Posts: 6

Re: [SOLVED]PHP 7.0 system wide installation

Okay, I have installed again php70 with yaourt, and its folder now is /etc/php70. What is the correct way to make its binaries php, not php70. When I am using composer I am getting an error :
/usr/bin/env: 'php': No such file or directory
and sorry about bumping, its my first experience with arch forum.
Well, it seems that i have solved my problem by simply symlinking /bin/php70 to /bin/php. I hope that will work. Thanks for your help!

Last edited by enoch_root (2018-04-29 12:51:06)

Offline

Board footer

Powered by FluxBB