E
E
expert21 expert212020-06-03 17:07:53
PHP
expert21 expert21, 2020-06-03 17:07:53

phalcon and openserver

Unable to install Phalcon on OpenServer. I downloaded php_phalcon.dll and threw it into the ext folder. I didn’t find the php.ini file at all, in the config folder I found the PHP_7.4_php file and others according to php versions. The PHP_7.4_php file put extension=php_phalcon.dll in the file, but an error comes out: Fatal error: Uncaught Error: Class 'Phalcon\Config' not found in E:\programming\SOFT\OpenServer\domains\to16\app\config\config .php:18 Stack trace: #0 E:\programming\SOFT\OpenServer\domains\to16\public\index.php(21): include() #1 {main} thrown in E:\programming\SOFT\OpenServer\ domains\to16\app\config\config.php on line 18

Help the newbie understand what's going on, did he install phalcon incorrectly, or did he mess up something else?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Shamanov, 2020-06-03
@SilenceOfWinter

extension=php_phalcon without extension, the current config is opened via the advanced-config menu

A
Alexey Sundukov, 2020-06-03
@alekciy

The action should be obvious, but just in case I will clarify. Did you restart the server after all these manipulations?
Replace the contents of the file E:\programming\SOFT\OpenServer\domains\to16\app\config\config.php with:

<?php
phpinfo();

The whole schedule will be there. Which paths are used to search for libraries, which ones are already connected. Based on this, you will need to shift the dll to the desired folder.

E
expert21 expert21, 2020-06-03
@expert21

I constantly restart the server after each file manipulation...
Yes, I made the script <?php phpinfo(); I saved it in info.php but didn't see the installed framework...
"There will be the whole layout. Which paths are used to search for libraries, which ones are already connected. Based on this, it will be necessary to move the dll to the right folder." - I didn't understand anything at all...!
After running the <?php phpinfo() script, I saw the path: \programming\SOFT\OpenServer\modules\php\PHP_7.4\php.ini
In the file, I tried to write extension=php_phalcon.dll and extension=php_phalcon
in the current config (PHP_7 .4_php) selected through the additional-config menu ... extension=php_phalcon also prescribed extension=php_phalcon.dll and extension=php_phalcon
did not help...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question