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 3.4.5 to Php 7.3 at DirectAdmin

aior

aior

Administrator
Staff member
To install Phalcon 3.4.5 with PHP 7.3 on a server that uses DirectAdmin with CustomBuild 2.0, you should follow a series of steps that typically involve downloading the Phalcon source, preparing your environment, compiling the extension, and configuring PHP to use it. The process outlined below is adapted to fit the requirements for Phalcon 3.4.5 and PHP 7.3, based on general practices for installing PHP extensions manually:

Step 1: Prepare Your Environment

1. Access Your Server: Log in to your server via SSH as the root user.

2. Update CustomBuild**: Ensure CustomBuild is up to date.

Code:
   cd /usr/local/directadmin/custombuild
   ./build update


Step 2: Download Phalcon 3.4.5

1. Clone the Phalcon Repository: Clone the specific version of Phalcon from its GitHub repository.

Code:
   cd /usr/local/src
   git clone -b v3.4.5 --single-branch https://github.com/phalcon/cphalcon.git


Step 3: Compile Phalcon

1. Prepare the Build Environment: Use `phpize` to prepare Phalcon for compilation. Make sure to specify the path for the PHP 7.3 `phpize` and `php-config`.

Code:
   cd cphalcon/build/php7/64bits
   /usr/local/php73/bin/phpize


2. Configure the Compilation: Run the `./configure` script, pointing to your PHP 7.3 `php-config`.

Code:
   ./configure --with-php-config=/usr/local/php73/bin/php-config

3. Compile and Install: Compile the Phalcon extension and install it.

Code:
   make && make install

Step 4: Enable Phalcon in PHP 7.3

1. **Configure PHP**: Add the Phalcon extension to your PHP 7.3 configuration.
- Find the PHP 7.3 `php.ini` file. You can usually find this path by running `/usr/local/php73/bin/php --ini`.
- Add the following line to your `php.ini`:
For me it was like:

Code:
nano /usr/local/php73/lib/php.ini

Be sure that you removed ; before extension=phalcon.so or type it directly without ;

Code:
extension=phalcon.so

Then Save with Ctrl + Y and Enter


Step 5: Restart the Web Server

- Restart Apache or PHP-FPM to apply the changes. The command depends on your server setup:
- For Apache:

Code:
 service httpd restart

- For PHP-FPM:

Code:
 service php-fpm73 restart

For LiteSpeed

Code:
sudo service lsws restart

Step 6: Verify Installation

- Confirm that Phalcon is installed correctly:


Code:
  /usr/local/php73/bin/php -m | grep phalcon

This process assumes a certain level of access and control over your DirectAdmin environment and might require adaptations based on your specific server setup, PHP configurations, and how PHP extensions are managed on your system. Always back up your configurations before making significant changes.

For the most accurate and detailed instructions, consult DirectAdmin's official documentation, the CustomBuild script documentation, or seek assistance from the DirectAdmin community forums, especially if you encounter issues specific to your server environment.
 

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