无法在Ubuntu上使用phpbrew启动fpm [英] Cannot start fpm using phpbrew on Ubuntu

查看:132
本文介绍了无法在Ubuntu上使用phpbrew启动fpm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了phpbrew及其依赖项,但是在使用规定的命令测试fpm时遇到了问题:

I have installed phpbrew and its dependencies, however I am having trouble testing fpm using the stated command:

phpbrew switch 5.4.38
sudo phpbrew fpm start
Did you mean 'app'? [Y/n] n
Command fpm not found. available commands are: help, zsh, bash, meta, compile, archive, github:build-topics, app, init, known, install, list, use, switch, each, config, info, env, extension, variants, path, cd, download, clean, update, ctags, list-ini, self-update, remove, purge, off, switch-off
Command: command not found

很明显,我在某个地方出错了,但是找不到为什么它不会启动.我可以确认它在那里

obviously I have gone wrong somewhere but cannot find why it will not fire up. I can confirm it is there

cd ~/.phpbrew/php/php-5.4.38/sbin
ls
php-fpm

安装命令:

phpbrew install 5.4.38 +fpm +mysql;

信息:

版本 PHP-5.4.38

Version PHP-5.4.38

常量 PHP前缀:/home/datamechanics/.phpbrew/php/php-5.4.38 PHP二进制文件:/home/datamechanics/.phpbrew/php/php-5.4.38/bin/php PHP默认包含路径:.: PHP包含路径:.:

Constants PHP Prefix: /home/datamechanics/.phpbrew/php/php-5.4.38 PHP Binary: /home/datamechanics/.phpbrew/php/php-5.4.38/bin/php PHP Default Include path: .: PHP Include path: .:

一般信息

phpinfo()
PHP Version => 5.4.38

System => Linux dmdell02 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64
Build Date => Mar 10 2016 15:29:28
Configure Command =>  './configure'  '--prefix=/home/datamechanics/.phpbrew/php/php-5.4.38' '--with-config-file-path=/home/datamechanics/.phpbrew/php/php-5.4.38/etc' '--with-config-file-scan-dir=/home/datamechanics/.phpbrew/php/php-5.4.38/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--enable-fpm' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /home/datamechanics/.phpbrew/php/php-5.4.38/etc
Loaded Configuration File => /home/datamechanics/.phpbrew/php/php-5.4.38/etc/php.ini
Scan this dir for additional .ini files => /home/datamechanics/.phpbrew/php/php-5.4.38/var/db
Additional .ini files parsed => (none)
PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,NTS
PHP Extension Build => API20100525,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => compress.zlib, php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports => tcp, udp, unix, udg
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

Extensions
Core, date, ereg, libxml, pcre, zlib, dom, SPL, session, standard, Reflection, mysqlnd, SimpleXML, Phar, mysqli, tokenizer, xml, xmlreader, xmlwriter, xsl, mysql

Database Extensions
mysqlnd
mysqli
mysql

推荐答案

尝试使用OSX作为开发服务器进行所有这些操作.

Done with all this trying to use OSX as a dev server.

现在使用PHPStorm和纯VirtualBox Ubuntu服务器安装.个人PHPStorm及其功能的价格惊人.社区支持也是如此.

Now using PHPStorm and pure VirtualBox Ubuntu server install. Price for personal PHPStorm and its features is amazing. Community support also.

尝试过流浪汉,但它的废话以及它使DNS和端口转发成为现实的事实不能正确表示远程主机-我们想在建模服务器或真实服务器上进行尽可能多的测试?

Tried Vagrant but its crap and the fact it bodges DNS and port forwarding is not a proper representation of a remote host - we want to test as much as possible on modelled servers or real ?

因此,答案是查看Windows和OSX无法提供行业Web服务器的配置,并安装以Linux作为服务器的虚拟机.

Therefore the answer is to view both Windows and OSX unable to provide industry webserver config, and install a virtual machine with Linux as the server.

现在,我使用Chrome中的零配置"工具书签来调试与VM共享目录上的PHPStorm.

I now edit with PHPStorm on shared directory with VM, using the Zero Configuration facility bookmarklets in Chrome to debug PHP.

这正在变成OSX笔记本电脑上的完美开发设置(我的主要目标),但可以作为基于GIT的任何地方使用.

This is turning into a perfect dev setup on board an OSX laptop (my main aim) but can be used anywhere as all GIT based.

很高兴提供提示,但认为这个问题已由我回答.

Happy to provide hints, but considered this question answered by me.

这篇关于无法在Ubuntu上使用phpbrew启动fpm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆