Get the App
SLTechnology News&Howtos  ›  Servers  › 

Install phalcon development tools

Shulou Source: shulou.com Published: 2022-06-02 20:11:34 09月22日 Update

Install phalcon development tools

Download: https://github.com/phalcon/phalcon-devtools first

After downloading, extract it.

. [root@localhost web] # cd phalcon-devtools-3.2.12

[root@localhost phalcon-devtools-3.2.12] # phalcon.sh

Phalcon Developer Tools Installer

Make sure phalcon.sh is in the same dir as phalcon.php

And that you are running this with sudo or as root.

Installing Devtools...

Working dir is: / web/phalcon-devtools-3.2.12

Generating symlink...

Done. Phalcon Developer Tools installed!

Thank you for using Phalcon Developer Tools!

We hope that Phalcon Developer Tools helps to make your life easier.

In case of problems: https://github.com/phalcon/phalcon-devtools/issues

And: https://forum.phalconphp.com

To start using Phalcon Developer Tools you need to run 'source / root/.bash_profile'

/ web/phalcon-devtools-3.2.12/phalcon.sh: line 150: php: command not found

[root@localhost phalcon-devtools-3.2.12] # php-v

Bash: php: command not found

When the above error is reported, no path is added.

Therefore, php-v will report an error.

Through phpinfo (), we can see that the php directory is at: / usr/local/php/etc/php.ini.

Cd / usr/local/php

The bin directory inside.

Add the / usr/local/php/bin directory to the PATH

Modify:

Cd ~

What I have here is the / root directory. You should pay attention to using your own.

Vim .bash _ profile

Add a sentence.

Export PATH=$PATH:/usr/local/php/bin

After saving.

Source / root/.bash_profile

[root@localhost ~] # source / root/.bash_profile

[root@localhost] # php-v

PHP 7.2.4 (cli) (built: Apr 24 2018 22:31:16) (NTS)

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

With Zend OPcache v7.2.4, Copyright (c) 1999-2018, by Zend Technologies

Now go back to the directory of phalcon development tools: that's fine!

[root@localhost phalcon-devtools-3.2.12] # phalcon.sh

Phalcon DevTools (3.2.12)

Available commands:

Info (alias of: I)

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)

Serve (alias of: server)

Console (alias of: shell, psysh)

Tags: Catalogs tools development tools development again path face will report plus one Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology Linux Redmi Microsoft