PHP on Deepin
Tofloor
poster avatar
alphaxe
deepin
2018-06-16 13:04
Author
Hello guys.

I need to install the PHP last version 7.2.6 on deepin, and i can't.

When i used to have ditros like ubuntu, debian, i always used ppandrej/php, but the ppa don't support deepin.

I really need some help here, I'm loving deepin but i can't use the PHP, and it's essential for my completion of course work.

Thanks in advice!
Reply Favorite View the author
All Replies
wtz
deepin
2018-06-16 13:50
#1
本帖最后由 wtz 于 2018-6-16 15:07 编辑

If I've got it right, you are looking for this repository: https://launchpad.net/~ondrej/+archive/ubuntu/php
Then you can add this repository manually by editing /etc/apt/sources.list
  1. deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
Copy the Code

I'm not sure if the version "xenial" (i.e. 16.04) is compatible with deepin 15.5/15.6. If not, try to replace it with other version name, like "trusty" or "bionic".
Good luck~
Reply View the author
alphaxe
deepin
2018-06-16 14:40
#2
https://bbs.deepin.org/post/158255
If I've got it right, you are looking for this repository: https://launchpad.net/~ondrej/+archive/ub ...

I never edited manually sources.list before, i tried but i'm getting:

  1. E> Malformed entry 3 in list file /etc/apt/sources.list (Component)
Copy the Code


My sources.list:

## Generated by deepin-installer
deb [by-hash=force] http://packages.deepin.com/deepin panda main contrib non-free
deb http://ppa.launchpad.net/ondrej/ubuntu/dists/xenial main
#deb-src http://packages.deepin.com/deepin panda main contrib non-free

Sorry for being this noob haha
Reply View the author
wtz
deepin
2018-06-16 23:08
#3
https://bbs.deepin.org/post/158255
I never edited manually sources.list before, i tried but i'm getting:

Sorry for the typo, I've corrected the line.
Reply View the author
pr07o7yp3
deepin
2018-06-17 00:05
#4
Why not just install Xampp I'm using it and I'm pretty happy.
Reply View the author