我尝试安装 phpmyadmin 一段时间了,但总是遇到同样的错误
我下载了php7.0和mysql-server-5.7
我在配置过程中也选择了Apache2和unix socket
还尝试添加Include /etc/phpmyadmin/apache.conf
到文件末尾解决方案
当我尝试打开它时http://localhost/phpadmin
显示此错误
缺少 mysqli 扩展。请检查您的 PHP 配置。请参阅我们的文档以获取更多信息。
有什么帮助吗?
我已经安装了 Apache 2.4、PHP7,并使用以下命令安装了 SimpleXML:
apt-get install php-simplexml
Run Code Online (Sandbox Code Playgroud)
然后我取消注释php.ini
for行extension=php_xmlrpc.dll
并重新启动 Apache。
我的apache.log
告诉我这个:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_xmlrpc.dll' - /usr/lib/php/20151012/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Run Code Online (Sandbox Code Playgroud)
我怎样才能让它消失?
当我运行此命令时,sudo composer global require "laravel/installer"
它会产生以下输出:
Changed current directory to /home/zoheir/.composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^1.4 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/installer v1.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v1.4.0 requires ext-zip * -> …
Run Code Online (Sandbox Code Playgroud) 我已经将我的 ubuntu 升级到 18.04,现在我想念我的 curl.so。
通常它会在这里 /usr/lib/php/20160501/curl.so 但它不见了。
在命令行上,我可以使用 curl,但不能在我的 php 代码中使用。
php -m | grep curl 导致
PHP警告:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/curl.so' - /usr/lib/php/20160303/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Run Code Online (Sandbox Code Playgroud)
一个快速的解决方法是将“a” curl.so 放在该文件夹中,但我从哪里获得 curl.so?
我试图用 apt install php-curl 重新安装它,但这给了我
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an …
Run Code Online (Sandbox Code Playgroud) (我刚刚从 ubuntu 18.04 迁移到 Ubuntu 20.04。)
php7.4-mysql : Depends: php7.4-common (= 7.4.3-4ubuntu2.2) but 7.4.9-1+ubuntu18.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
php7.4-mysql
依赖on php7.4-common
(已安装,所以我没有看到那里的问题),但它也说(= 7.4.3-4ubuntu2.2)
然后我迷路了...... 7.4.3-4ubuntu2.2?那是什么?如果这还不够复杂,它会添加......but 7.4.9-1+ubuntu18.04.1+deb.sury.org+1
然后我就是不知道如何克服这个问题。$ php artisan migrate
在自己的生产环境中使用该命令(我雇用了一个托管服务器,我只是在摆弄它),然后我得到了输出...... Illuminate\Database\QueryException
could not find driver (SQL: select * from information_schema.tables where table_schema = gastigram and table_name = migrations and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
667| …
Run Code Online (Sandbox Code Playgroud) 奇怪的是,我似乎找不到任何关于此的信息。让我困惑的是,我是一个 Ubuntu 菜鸟(大约 6 个月前切换,并且非常喜欢它)。
我只是想在 Ubuntu 20.04 上安装 php 7.2.31(我的主机正在使用的版本)。我在 SE 上找到了安装 7.2 的答案,但这安装了 7.2.34...doh!如果我能在这里得到一个通用的答案,这将有很大的帮助,它可以为我指明在 Ubuntu 上安装任何版本的任何版本(或任何东西:)的正确方向。谢谢哈哈哈!:)
我正在使用 Ubuntu 10.04。我想升级我的 php 版本。当我升级我的 PHP 版本(5.3.2 到 5.3.6)但每次更新后它显示 PHP 版本 5.3.2..
编辑:: 我已经检查了“Ubuntu 存储库”,PHP 5.3.6 不可用。:(
我想在我的 ubuntu 上安装 php、mysql 和 apache,我尝试了所有任务,但我无法做到。没有包 php、apache 或 mysql 请帮助我
服务器正在运行 Lucid,我正在尝试将 PHP 升级到 5.5 稳定版。
我遵循了这个问题的说明:如何在仍然支持的 Ubuntu 版本中安装不同的(升级或降级)PHP 版本?
root@32772-201711:~# add-apt-repository ppa:ondrej/php5
gpg: keyring `/tmp/tmpZCjHpD/secring.gpg' created
gpg: keyring `/tmp/tmpZCjHpD/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpZCjHpD/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for OndÅej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Run Code Online (Sandbox Code Playgroud)
然后我跑了apt-get update
跟着apt-get upgrade
,只是为了矫枉过正,我跑了apt-get dist-upgrade
。最后 2 个命令都表明我的系统是最新的。
但是,当我执行时php -v
,我仍然看到5.3.2-1ubuntu4.20
.
我的 PHP 没有按预期升级到 PHP5.5
为了将 PHP …