我见过使用的apt-get install php-apc指南和使用pecl install apc.
一种方法比另一种更好吗?或者只是安装相同东西的两种不同方法?有什么不同?
从我读到的似乎使用pecl install会得到更高版本,对吗?
如果重要,请使用 Ubuntu 12.04-64 位。谢谢。
我已经从官方仓库安装了 LAMP 服务器。在文件中/etc/php5/apache2/php.ini,我改变了:
post_max_size = 8M
upload_max_filesize = 2M
Run Code Online (Sandbox Code Playgroud)
到
post_max_size = 32M
upload_max_filesize = 16M
Run Code Online (Sandbox Code Playgroud)
之后,我重新启动了 apache2 服务器和笔记本,但是当我启动时,phpinfo我被post_max_size设置为8MB. 解决此错误的唯一方法是将其设置php_value .....为 an.htaccess但这不是我想要的。
我该如何解决这个问题?
root@areeb-Inspiron-3420:/var/www/html# apt install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php5' has no installation candidate
root@areeb-Inspiron-3420:/var/www/html# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
Package libapache2-mod-php5 is not available, but is referred to …Run Code Online (Sandbox Code Playgroud) 升级到 Ubuntu 17.10 后,PHP 完全停止工作。在 Ubuntu 17.04 中一切正常。以下代码info.php不起作用:
<?php
phpinfo();
?>
Run Code Online (Sandbox Code Playgroud)
它不显示 PHP 信息,它只显示如上所示的源代码。
我是 Linux 新手,只有 Ubuntu 和安装 LAMP Server 的基本经验。我已经使用“apt-get install”方法成功安装了所有内容。我的问题是我想将 PHP 5.3.2 更新到 PHP 5.3.10。有可能这样做吗?蒂亚!
我对 Ubuntu 不熟悉。我复制了我的项目文件夹htdocs,然后在它加载的浏览器中打开我的项目,但没有加载样式文件(CSS 文件)。这是一个权限问题。我做了很多命令,但没有任何成功。
我怎样才能对中的每一件事给予许可htdocs?
当我运行命令时
php -v
此错误出现在 ubuntu 终端中:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mbstring.dll' - /usr/lib/php/20151012/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Run Code Online (Sandbox Code Playgroud) 新手在这里。
我试图按照以下安装指南在我的 Ubuntu 中安装 MISP:INSTALL.ubuntu1804.txt
当涉及到这条指令时:
# Once done, install CakeResque along with its dependencies if you intend to use the built in background jobs:
cd /var/www/MISP/app
sudo -u www-data php composer.phar require kamisama/cake-resque:4.1.2
Run Code Online (Sandbox Code Playgroud)
我懂了:
Cannot create cache directory /home/akatiubuntutest/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/akatiubuntutest/.composer/cache/files/, or directory is not writable. Proceeding without cache
./composer.json has been updated
Cannot create cache directory /home/akatiubuntutest/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot …Run Code Online (Sandbox Code Playgroud) 当我运行任何 php 脚本时,我在第 0 行的 Unknown 中收到一个错误 sodium_init()。
使用 Ubuntu 18.04、PHP 7.2.10
例子:
admin@server:~$ php -v
PHP Fatal error: sodium_init() in Unknown on line 0
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
Run Code Online (Sandbox Code Playgroud)
或作曲家:
admin@server:~$ php composer.phar
PHP Fatal error: sodium_init() in Unknown on line 0
______
/ ____/___ ____ ___ ____ ____ …Run Code Online (Sandbox Code Playgroud) php ×10
permissions ×2
php7 ×2
10.04 ×1
12.04 ×1
16.04 ×1
17.10 ×1
18.04 ×1
apache2 ×1
command-line ×1
filesystem ×1
lamp ×1
server ×1
xampp ×1