我是 Geany IDE 的新手。我已经安装了基本的 Geany,没有来自 ubuntu 软件中心的任何插件。当我按 Ctrl 空格时,我找不到 php 的代码完成。此功能是否需要插件?
谢谢。
为什么我们有不同的 php.ini 用于 php 客户端?
链接 main 是个好主意吗?
$ sudo ln -s /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
Run Code Online (Sandbox Code Playgroud) 我尝试安装php5-fpm软件包,但我有以下信息:
The following packages have unmet dependencies:
php5-fpm : Depends: php5-common (= 5.5.7+dfsg-1+sury.org~quantal+1) but 5.3.10-1ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
这是完整的终端输出:
root@myserv /home/pw # sudo apt-get install php5-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
Run Code Online (Sandbox Code Playgroud)
和:
root@myserv /home/pw # sudo apt-get install php5-fpm --fix-missing --fix-broken
Reading package …Run Code Online (Sandbox Code Playgroud) 我正在尝试安装Phalcon框架,但无法正确完成这部分
将扩展添加到您的 php.ini:
extension=phalcon.so最后,重启网络服务器
我php.ini在/etc/php5/apache2/重启apache服务器时更改了我的文件,但在我测试时没有添加扩展名
<?php print_r(get_loaded_extensions()); ?>
Run Code Online (Sandbox Code Playgroud)
输出
Array
(
[0] => Core
[1] => date
[2] => ereg
[3] => libxml
[4] => openssl
[5] => pcre
[6] => zlib
[7] => bcmath
[8] => bz2
[9] => calendar
[10] => ctype
[11] => dba
[12] => dom
[13] => hash
[14] => fileinfo
[15] => filter
[16] => ftp
[17] => gettext
[18] => SPL
[19] => iconv …Run Code Online (Sandbox Code Playgroud) 我在我的 Ubuntu 13.10 上安装了 apache2,它运行没有任何问题。我可以通过在地址栏中键入 localhost/ 来查看默认索引页面(位于 /var/www/index.html 中)

今天,在我将我的 Ubuntu 升级到 14. 04 之后,本地主机服务器不再工作,而是显示 / 页面的索引

我试图重新安装一切(包括php5,phpMyAdmin和MySQL),但问题依然存在。我该如何解决?
我无法将 mongo 驱动程序安装到我的 ubuntu 开发系统中。当我运行命令时
sudo pecl install mongo
我收到此错误:
配置:错误:未找到 sasl.h!错误:`/tmp/pear/temp/mongo/configure --with-mongo-sasl=n' 失败
我不知道该由谁来解决或解决我的问题。请给我一些帮助。
非常感谢
我对 linux 很陌生,我不久前就设置了它。我现在在向不常见的域发送邮件时遇到问题。例如,我的 PHP 脚本可以毫无问题地向 yahoo、gmail 等发送电子邮件。但如果它是一个不常见的域,例如 blah.com,它就不会发送。所以我想我试图解决这个问题的第一步是弄清楚我的邮件服务器 :D 欢迎任何其他建议。
我在谷歌上搜索过,但结果是空的,是时候尝试这个网站了。
提前致谢!
我正在尝试使用 PHP 5 在 Ubuntu 16 中安装 xdebug,但它失败了。我使用的命令是:
sudo pecl install xdebug
Run Code Online (Sandbox Code Playgroud)
我在论坛上搜索了很多,但找不到这个原因。有人可以帮我解决这个问题吗?
以下是控制台输出错误:
downloading xdebug-2.4.0.tgz ...
Starting to download xdebug-2.4.0.tgz (264,832 bytes)
......................................................done: 264,832 bytes
76 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
cp: cannot stat 'ltmain.sh': No such file or directory
building in /tmp/pear/temp/pear-build-roottZWTLj/xdebug-2.4.0
running: /tmp/pear/temp/xdebug/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for …Run Code Online (Sandbox Code Playgroud) apt-get install php5-cgi 说:
Package php5-cgi 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
Run Code Online (Sandbox Code Playgroud)
该软件包php5-cgi显然已从Ubuntu Xenial 中删除。那么我的选择是什么?我应该使用这个包的新版本吗?我可以从较旧的存储库下载 .deb 吗?这是否意味着使用此软件包的应用程序将停止工作?