当前位置:论坛首页 > Linux面板 > 求助

ubuntu 环境下,宝塔面板安装php不成功

发表在 Linux面板2018-3-16 09:20 [复制链接] 5 9463

服务器系统:  Ubuntu 16.  64位   LAMP问题:安装php5.6不成功。

使用面板安装php5.6一直不成功。后台页面会显示正在安装,安装完成后,仍然不能使用php
使用道具 举报 只看该作者 回复
发表于 2018-3-16 09:22:14 | 显示全部楼层
你重启面板。安装一下更高的版本试试
使用道具 举报 回复 支持 反对
发表于 2018-3-16 09:47:31 | 显示全部楼层
输入以下这条命令看具体报错
  1. cat /tmp/panelExec.log
复制代码
使用道具 举报 回复 支持 反对
发表于 2018-3-16 10:32:53 | 显示全部楼层
liang2580 发表于 2018-3-16 09:22
你重启面板。安装一下更高的版本试试

1.png
不管点击哪个版本的php,都是这个界面
2.png
但是任务列表全部提示这个。
下面的是执行日志
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... yes
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strnlen... yes
checking for strptime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unlockpt... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for vasprintf... yes
checking for asprintf... yes
checking for nanosleep... yes
checking for nanosleep in -lrt... yes
checking for getaddrinfo... yes
checking for __sync_fetch_and_add... yes
checking for strlcat... no
checking for strlcpy... no
checking for getopt... yes
checking for utime.h... (cached) yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... yes
checking for type of readdir_r... POSIX
checking for in_addr_t... yes
checking for crypt_r... no

General settings
checking whether to include gcov symbols... no
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... /www/server/php/56/etc
checking where to scan for configuration files...
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking whether to enable IPv6 support... yes
checking whether to enable DTrace support... no
checking how big to make fd sets... using system default

Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for RAND_egd... no
checking for pkg-config... /usr/bin/pkg-config
checking for PCRE library to use... bundled
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for zlib version >= 1.2.0.4... 1.2.8
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
========================================================

执行日志
使用道具 举报 回复 支持 反对
发表于 2018-3-16 10:35:06 | 显示全部楼层

  1. # RetHat CentOS or Fedora 使用下面安装命令
  2. yum install curl curl-devel
  3. # Debian or Ubuntu使用下面的安装命令
  4. apt-get install curl
  5. apt-get install libcurl4-gnutls-dev
复制代码
使用道具 举报 回复 支持 反对
发表于 2018-5-22 11:43:46 | 显示全部楼层

安装之后已经是最新的了,还是同样的错误啊。
curl is already the newest version (7.58.0-2ubuntu3.1).
libcurl4-gnutls-dev is already the newest version (7.58.0-2ubuntu3.1).
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表