You can't properly install Phalcon when using DirectAdmin.
Phalcon: server not reachable through ip after installation
-
12-10-2022 - |
Domanda
I tried to install Phalcon on CentOS 6.5. This is what I did:
- Edit etc/yum.conf: remove the line ‘exclude=’ (temporarily)
- Terminal:
- Sudo yum update (to update everything on the system)
- Yum install php-devel
- Sudo yum install git
- git clone git://github.com/phalcon/cphalcon.git
- cd cphalcon/build
- sudo ./install
- Add a file called phalcon.ini in /etc/php.d/ with this content: extension=phalcon.so
- Put back the original etc/yum.conf file
- Reboot server.
Before I rebooted the server, "Apache is functioning normally" was displayed when I typed the IP address in my browser. 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.
What did I do wrong? (this is the second time I tried to reinstall it completely...)
Thank you very much
Soluzione 2
Altri suggerimenti
Phalcon should be loaded after all other PHP extensions are loaded. This has to do with the patches used by CentOS: they change the way the extensions are loaded into PHP.
I would remove extension=phalcon.so
from php.ini and create /etc/php.d/zz-phalcon.ini
with
extension=phalcon.so
and restart the web server.
EDIT: I explained this in details in the official forum.