What's new

Welcome to the forum 👋, Guest

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

How to install Phalcon at DirectAdmin?

aior

aior

Administrator
Staff member
When I try to fix another problem at DirectAdmin and custom build update all, I lost Phalcon installation and got the problem as below:

Fatal error: Uncaught Error: Class "Phalcon\Mvc\Model" not found in /home/sikayetlerim/domains/sikayetlerim.com/public_html/public/index.php:5 Stack trace: #0 {main} thrown in /home/sikayetlerim/domains/sikayetlerim.com/public_html/public/index.php on line 5

1706821379744.png

The error message you're encountering indicates that PHP is unable to find the `Phalcon\Mvc\Model` class, which is part of the Phalcon framework, when trying to execute your script. This typically happens because the Phalcon extension is not installed or properly enabled in your PHP configuration. Here are steps you can take to resolve this issue:

To enable the Phalcon extension on AlmaLinux with DirectAdmin for PHP version 8.1, you can follow these general steps. This process involves using CustomBuild, a tool provided by DirectAdmin for managing software packages, including PHP and its extensions.

Step 1: Access Your Server

First, log in to your server via SSH as the root user. You can do this by using an SSH client and entering your server's IP address and the root password.

Step 2: Navigate to the CustomBuild Directory

Once logged in, navigate to the CustomBuild directory. This is typically located in `/usr/local/directadmin/custombuild`, but the path might vary depending on your DirectAdmin installation.

Code:
cd /usr/local/directadmin/custombuild

Step 3: Update CustomBuild Scripts

It's a good practice to update the CustomBuild scripts to ensure you have the latest versions of the software and extensions available.

Code:
./build update

Step 4: Configure Options for PHP

Before installing Phalcon, you might want to check or update your PHP configuration settings. Use the `options.conf` file to specify the PHP versions and modes.

Code:
nano options.conf

Look for the PHP version settings and ensure they are set to your desired versions. You can also configure other options as needed.

Step 5: Install Phalcon Extension

To install Phalcon for PHP 8.1, you will need to ensure that CustomBuild supports it directly, or you may need to manually compile the extension. As of my last update, direct support for Phalcon in CustomBuild might not be available for all PHP versions, especially newer ones.

If DirectBuild supports installing Phalcon directly, you could use a command like:

Code:
./build phalcon

You can use the code below instead

Code:
da build php_phalcon

if its already installed activate with:

Code:
da build set_php phalcon yes

Go do DirectAdmin Panel And Go to CustomBuild and See that you have a new message to install Falcon. Click install to install them. What like 10 minutes.


1706822486231.png
 
Last edited:

Theme customization system

You can customize some areas of the forum theme from this menu

Choose the color that reflects your taste

Wide/Narrow view

You can control a structure that you can use to use your theme wide or narrow.

Grid view forum list

You can control the layout of the forum list in a grid or ordinary listing style structure.

Picture grid mode

In the grid forum list, you can control the structure where you can open/close images.

Close sidebar

You can get rid of the crowded view in the forum by closing the sidebar.

Fixed sidebar

You can make it more useful and easier to access by pinning the sidebar.

Corner radius close

You can use the radius at the corners of the blocks according to your taste by closing/opening it.

Back