We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Error Phalcon extension isn't installed

Hello all,

I've installed the Phalcon Devtools exactly to that doc. But when I try to use the Tool i become the Error: Phalcon extension isn't installed. I dont understand that because when i run which php then it shows me the right path to my mamp, and the extension is there and the exension it self works greate and I use iTerm too. So i dont know what im doing wrong :(

Thx for your help :)



58.4k

Hey

You can checking bash shell via command line

    which phalcon

If you see it working, if not that not working. I recomend install tool via github

edited Jan '15

Okey when i use

which phalcon

then I see the path where the Phalcon-Tools folder is.



58.4k
edited Jan '15

This is wrong, It should like

/usr/bin/phalcon
/usr/local/bin/phalcon

Running command here

git clone https://github.com/phalcon/phalcon-devtools.git
ln -s /<fullpath>/devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon

Okey thx i will check that

edited Jan '15

Okey i did it, but i became the same error. Is it correct that is now must right in the terminal phalcon.php Or did I install it the wrong way?



58.4k

hey

cd /tmp
git clone https://github.com/phalcon/phalcon-devtools.git
ln -s /tmp/phalcon-devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon

Hmm... I become the same error, i think i'm too stupid xD

I did it at the same way that you did with the tmp folder....



58.4k

No, I put in my home folder

/home/duythien/github/phalcon-devtools

Hmm yes i had it there in the first try

/Users/kleibfla/phalcon-devtools



58.4k

Hey

sudo ln -s /Users/kleibfla/phalcon-devtools/phalcon.php /usr/bin/phalcon

is working yet ?

edited Jan '15

Okey it looks like that he links false. Because i used your command

sudo ln -s /Users/kleibfla/phalcon-devtools/phalcon.php /usr/bin/phalcon

Now i beccome this error

/Users/kleibfla/phalcon-tools/phalcon: No such file or directory


43.9k

Hi,

Error: Phalcon extension isn't installed.

=> looks like you haven't install phalcon's php extension itself. To be sure, create a info.php file with <?php phpinfo(); ?> as code in it. If phalcon is loaded you should see mentionned. If not, refer to phalcon's github page to know how to install.

The phalcon extension is installed and works great, thats why im so confused.



43.9k

/Users/kleibfla/phalcon-tools/phalcon: No such file or directory

path is not the same:

sudo ln -s /Users/kleibfla/phalcon-devtools/phalcon.php /usr/bin/phalcon

Okey it looks like that he links false. Because i used your command sudo ln -s /Users/kleibfla/phalcon-devtools/phalcon.php /usr/bin/phalcon Now i beccome this error /Users/kleibfla/phalcon-tools/phalcon: No such file or directory

Yeah i know that but i dont no why. It makes no seens, that when I run

sudo ln -s /Users/kleibfla/phalcon-devtools/phalcon.php /usr/bin/phalcon

And than i become a error with a differnet path than I linked



43.9k

first remove /usr/bin/phalcon an then make the symbolic link again.

edited Jan '15

Okey that error is fixed but my basic problem is the same. Now it says that it cant load the extension waht makes no seens, because on the other window there runing my api and works greate and it use phalcon to work, but my devtools says that i have no phalcon installed :(



43.9k

try to comment line 37 in /Users/kleibfla/phalcon-devtools/phalcon.php, (where the exception is thrown)

Okey i found the fail, it simple used the php mamp version as default, how ever no it works thx all for your help :)

edited Feb '15

my solution:

  1. find php.ini on cli -> command: php -i | grep php.ini

  2. add extension in this php ini

extension=phalcon.so

or

extension=full path to phalcon.so



84

After installation i got same message. To fix it just copy extension file to use it in cli:

sudo cp /etc/php5/apache2/conf.d/30-phalcon.ini /etc/php5/cli/conf.d/



124

as @Thien mentioned above, you can try path /usr/local/bin/phalcon

sudo ln -s /phalcon-devtools/phalcon.php /usr/local/bin/phalcon

➜ ~ chmod ugo+x /usr/local/bin/phalcon

➜ ~ phalcon

Phalcon DevTools (2.0.10)

Available commands: commands (alias of: list, enumerate) controller (alias of: create-controller) module (alias of: create-module) model (alias of: create-model) all-models (alias of: create-all-models) project (alias of: create-project) scaffold (alias of: create-scaffold) migration (alias of: create-migration) webtools (alias of: create-webtools)

Okey it looks like that he links false. Because i used your command

sudo ln -s /Users/kleibfla/phalcon-devtools/phalcon.php /usr/bin/phalcon

Now i beccome this error

/Users/kleibfla/phalcon-tools/phalcon: No such file or directory

The DRY principle,

Su:
echo extension=phalcon.so > /etc/php5/mods-available/phalcon.ini
ln -s ../../mods-available/phalcon.ini /etc/php5/cli/conf.d/30-phalcon.ini
ln -s ../../mods-available/phalcon.ini /etc/php5/apache2/conf.d/30-phalcon.ini

After installation i got same message. To fix it just copy extension file to use it in cli:

sudo cp /etc/php5/apache2/conf.d/30-phalcon.ini /etc/php5/cli/conf.d/