How to install Apache, Mysql and PHP
Tofloor
poster avatar
nenadsky
deepin
2016-07-04 04:38
Author
Edited by nenadsky at 2016-7-3 20:58

Hi! I'm new to Deepin, and i would like to ask how to install metioned packages on deepin, since there was no post on this topic in forum or wiki pages?
Thanks!

[Edit] I've managed to install apache and php, bul mysql gives me a deadache. Here is the output from installing:

sudo aptitude install mysql-client mysql-server
mysql-client is already installed at the requested version (5.6.28-1)
mysql-client is already installed at the requested version (5.6.28-1)
The following NEW packages will be installed:
  mysql-server-5.6{a}
The following partially installed packages will be configured:
  mysql-server
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5682 kB of archives. After unpacking 52,7 MB will be used.
Do you want to continue? [Y/n/?] y
Preconfiguring packages ...              
(Reading database ... 130290 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.6_5.6.28-1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.6.
If are sure you want to downgrade to 5.6, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.6_5.6.28-1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.6_5.6.28-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.6; however:
  Package mysql-server-5.6 is not installed.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server




Reply Favorite View the author
All Replies
elizabeth
deepin
2016-07-04 06:56
#1
I'm going to guess a miss match in the installed client version and the server version being installed.

Client version installed is 5.6.28-1

Server version trying to install 5.6{a}

I would bet the Packages you need to install are not being maintained in Deepin Repo,  Deepin isn't aimed at being a server OS.

I'd suggest Debian stable for a server environment but if you want to use Deepin add Debian Stable and Stable update Repos.  You can install Sql, Apache,PHP etc. from them.  They will be much better maintained and stable.  But most of those packages are higher version than Deepin ones, you may only want to install the server components and than disable the repos, manually check them for updates as needed.

Have to be careful not to update certain packages to high or it will start removing the Deepin DE  (though I think that only happens if you start pulling from Testing Repo)
Reply View the author
arvey18
deepin
2016-07-07 00:48
#2
Reply View the author
Adjan
deepin
2016-07-30 16:05
#3
For all three, take a look at lampp (XAMPP for linux) https://www.apachefriends.org/download.html
Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG