关于宝塔集成软件安装mysql php

朋友在作一个项目,让我帮他按开发商的要求配一套云主机。

主要矛盾点:开发商要求系统Centos 7.0 ,但是我选的时候没有注意到到指定的系统,所以选了标准的Linux系统。

背景:开发商习惯了使用宝塔集成工具,用它来管理软件环境。

他们在安装好宝塔后,继续安装软件环境的时候,发现PHP 和mysql 安装都有问题,然后要求我换系统。但是按我的想法,Linux系统是可以通用的,只是兼容有些问题。

我去宝塔官网看了下,原来 宝塔是基于centos 7.X开发的,只对Centos 7.X完全兼容。

1、问题描述:

PHP5.6 安装好后启动php-fpm 报错:

php-fpm: error while loading shared libraries:libpng12.so.0:cannot open shared object file: No such file or directory

解决:这种情况,可以尝试用 编译安装解决。

原因:极速安装没有正确加载库文件。

2、问题描述

极速安装mysql5.6安装 成功,宝塔里显示可以运行,但是不能被访问。

尝试直接编译安装,发现也不行。

解决:

1、先ssh 进系统,通过yum install 安装mysql5.6 的 server。

2、然后在yum  remove 掉。目的是安装好此系统对应的mysql依赖。

3、在宝塔中通过编译安装mysql。完成。

原因:通过yum 安装的时候 装好里 mysql的依赖库。

 

思考:

主要问题就是系统版本不同导致的兼容性问题,体现在个软件的依赖库没有被正确安装。

47 thoughts on “关于宝塔集成软件安装mysql php

  1. Free Stuff

    you are really a good webmaster. The website loading speed is incredible. It seems that you’re doing any unique trick. Also, The contents are masterpiece. you have done a excellent job on this topic!

  2. Guqinz

    One more thing. I believe that there are quite a few travel insurance web sites of dependable companies that permit you to enter holiday details and get you the prices. You can also purchase the international travel cover policy on internet by using your own credit card. Everything you need to do should be to enter all travel specifics and you can start to see the plans side-by-side. Simply find the package that suits your finances and needs after which it use your credit card to buy it. Travel insurance online is a good way to check for a reputable company pertaining to international holiday insurance. Thanks for giving your ideas.

  3. Guqinz

    Can I just say what a relief to seek out somebody who truly is aware of what theyre talking about on the internet. You definitely know find out how to carry a difficulty to gentle and make it important. Extra people must learn this and understand this facet of the story. I cant imagine youre not more widespread since you undoubtedly have the gift.

  4. Guqinz

    I am now not positive the place you’re getting your information, but great topic. I must spend some time finding out more or figuring out more. Thanks for magnificent info I used to be on the lookout for this info for my mission.

  5. Pingback: Google

  6. Pingback: best seo services