简体   繁体   English

Phalcon:安装后无法通过ip访问服务器

[英]Phalcon: server not reachable through ip after installation

I tried to install Phalcon on CentOS 6.5. 我试图在CentOS 6.5上安装Phalcon。 This is what I did: 这是我所做的:

  • Edit etc/yum.conf: remove the line 'exclude=' (temporarily) 编辑etc / yum.conf:暂时删除“ exclude =”行
  • Terminal: 终奌站:
  1. Sudo yum update (to update everything on the system) Sudo yum更新(以更新系统上的所有内容)
  2. Yum install php-devel 百胜安装php-devel
  3. Sudo yum install git 须藤百胜安装git
  4. git clone git://github.com/phalcon/cphalcon.git git克隆git://github.com/phalcon/cphalcon.git
  5. cd cphalcon/build cd cphalcon /构建
  6. sudo ./install 须藤./install
  • Add a file called phalcon.ini in /etc/php.d/ with this content: extension=phalcon.so 在/etc/php.d/中添加一个名为phalcon.ini的文件,其内容为:extension = phalcon.so
  • Put back the original etc/yum.conf file 放回原始的etc / yum.conf文件
  • Reboot server. 重新启动服务器。

Before I rebooted the server, "Apache is functioning normally" was displayed when I typed the IP address in my browser. 在重新启动服务器之前,当我在浏览器中键入IP地址时,会显示“ Apache正常运行”。 Now when I got there, I get a browser message about being unable to establish a connection. 现在,当我到达那里时,我收到了一条关于无法建立连接的浏览器消息。 When I type :2222 after the ip address, I can get access to directadmin. 当我在IP地址之后输入:2222时,我可以访问directadmin。

What did I do wrong? 我做错了什么? (this is the second time I tried to reinstall it completely...) (这是我第二次尝试完全重新安装它...)

Thank you very much 非常感谢你

Phalcon should be loaded after all other PHP extensions are loaded. 在所有其他PHP扩展加载之后,应加载Phalcon。 This has to do with the patches used by CentOS: they change the way the extensions are loaded into PHP. 这与CentOS所使用的补丁程序有关:它们改变了扩展加载到PHP的方式。

I would remove extension=phalcon.so from php.ini and create /etc/php.d/zz-phalcon.ini with 我将从php.ini中删除extension=phalcon.so并使用/etc/php.d/zz-phalcon.ini创建/etc/php.d/zz-phalcon.ini

extension=phalcon.so

and restart the web server. 并重新启动Web服务器。

EDIT : I explained this in details in the official forum . 编辑 :我在官方论坛上详细解释了这一点。

使用DirectAdmin时,您无法正确安装Phalcon。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM