Tag: php7

在Ubuntu 18.04中缺少php7.2-mbstring包

我试图找到一种方法将php7.2-mbstring安装到Ubuntu 18.04,但我找不到它。 sudo apt-get install php7.2-mbstring响应没有找到它。 根据Cannonical和Debian网站,这个数据包存在。 得到这个包有什么特别的事吗?

** curl **不适用于Ubuntu 18.04 LTS

我无法使用curl从网上获取内容。 我试着把它放在下面的输出中。 某些软件包无法安装。 这可能意味着您已经请求了一个不可能的情况,或者如果您正在使用不稳定的分发,那么某些必需的包尚未创建或已被移出Incoming。 以下信息可能有助于解决此问题: 以下包具有未满足的依赖项。 curl:取决于:libcurl4(= 7.58.0-2ubuntu3)但它不会被安装E:无法纠正问题,你已经破坏了包裹。 我已经检查了包含sudo apt-mark showheld和dpkg -l | grep ^h dpkg -l | grep ^h希望得到一个包含列表的列表,但我没有得到任何结果。 此外,当我尝试安装libcurl4它几乎会破坏我的系统,因为它试图删除下面的这些包。 libcurl3 mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-tools msodbcsql msodbcsql17 mssql-tools php7.1-curl r-base r-base-core r-base-dev r-base-html r-cran-boot r-cran -class r-cran-codetools r-cran-foreign r-cran-getopt r-cran-kernsmooth r-cran-lattice r-cran-littler r-cran-mass r-cran-matrix r-cran-mgcv r-cran -nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended slack-desktop virtualbox-5.2 编辑 […]

在哪里可以找到phpize for php7.1.1?

我目前安装了php7.0版本,并且xdebug无法正常工作,想知道php7.1.1是否有phpize?

由于未满足的依赖性,无法在Ubuntu 18上安装PHP7.2-dev

我有Ubuntu 18分配,但我需要为PECL extenssions安装php7.2-dev。 mvolchkov@ias-su:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04 LTS Release: 18.04 Codename: bionic 我尝试安装php7.2-dev: mvolchkov@ias-su:~$ sudo apt-get install php7.2-dev Unresolved packages: php7.2-dev : Depend on: libpcre3-dev (>= 2:8.35) but will not be installed Depend on: libssl-dev but will not be installed But it depends on: libpcre3-dev […]

在Ubuntu 16.04上安装laravel 5

有人在Ubuntu 16.04上安装了laravel 5吗? 我刚刚切换到Ubuntu 16.04,我正在尝试使用composer在其上安装laravel 5框架。 但每次我尝试创建一个项目时,它都会给我这个错误 Your requirements could not be resolved to an installable set of packages. Problem 1 – laravel/laravel v5.2.0 requires laravel/framework 5.2.* -> satisfiable by laravel/framework[v5.2.0, v5.2.1, v5.2.10, v5.2.11, v5.2.12, v5.2.13, v5.2.14, v5.2.15, v5.2.16, v5.2.17, v5.2.18, v5.2.19, v5.2.2, v5.2.20, v5.2.21, v5.2.22, v5.2.23, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.29, v5.2.3, v5.2.30, […]

在ubuntu16.04上安装php时出错

命令: sudo apt-get install php7.0 输出: Reading package lists… Done Building dependency tree Reading state information… Done php7.0 is already the newest version (7.0.8-0ubuntu0.16.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do […]

在Ubuntu 16.04中Apache2重启失败

我试图使用domain localhost而不是localhost或127.0.0.1 我在sites-availbale添加了配置文件myconfig.conf我也使用sudo a2ensite myconfig.conf启用了它 当我使用sudo sudo systemctl restart apache2重新启动apache2服务器时,我收到错误 Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details. 我通过卸载重新安装apache2 ,但它给出了错误 Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details. invoke-rc.d: […]

在Ubuntu 16.04中从php 7.0升级到特定的php 7.1 / 7.2

如何在ubuntu 16.04中从php 7.0升级到php 7.1? 如果我做一个php -v我得到这个消息: PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies

如何使用Apache2运行PHP 7.0

我对Linux,服务器和网站都很陌生。 我最近设置了Apache2,Python,PHP和MySQL来设置LAMP服务器。 我使用的是Xubuntu 16.04和PHP 7.0.11。 我按照指南编写了一个名为testing.php的PHP文件: 它没有在localhost/testing.php上显示任何内容localhost/testing.php它显示的只是代码本身。

如何安装PHP 7?

PHP 7 昨天问世了,我想尝试一下。 PHP 7.0.0附带了Zend Engine的新版本,众多改进和新function,如 性能提升:PHP 7的速度是PHP 5.6的两倍 显着减少了内存使用量 抽象语法树 一致的64位支持 改进了exception层次结构 许多致命错误转换为exception 安全随机数发生器 删除旧的和不受支持的SAPI和扩展 空合并运算符(??) 返回和标量类型声明 匿名类 零成本断言 php.net 是否可以在当前的Ubuntu版本上安装它? 是否存在任何当前限制或已知的兼容性问题?