İçeriğe geç
KAMPANYA Kurumsal Web Paketi — $499'dan başlayan fiyatlar Web & Logo Tasarımı · Kurumsal E-posta · LiteSpeed + CloudLinux · Imunify360 Güvenlik · cPanel Yönetim · 3 Gbps DDoS Koruması 00 Gün 00 Saat 00 Dk 00 Sn
AIOR

How to install phalcon 3.4.5 to Php 7.3 at DirectAdmin

Sektör topluluğu — sorularınız, deneyimleriniz ve duyurularınız için.

How to install phalcon 3.4.5 to Php 7.3 at DirectAdmin

Aior

Administrator
Staff member
Joined
Apr 2, 2023
Messages
895
Reaction score
2
Points
18
Age
40
Location
Turkey
Website
aior.com
1/3
Thread owner

DirectAdmin ve CustomBuild 2.0 kullanan bir sunucuda PHP 7.3 için Phalcon 3.4.5 kurmak istiyorsanız, genellikle Phalcon kaynak kodunu indirme, ortamı hazırlama, eklentiyi derleme ve PHP'yi kullanacak şekilde yapılandırma adımlarından oluşan bir süreci izlemeniz gerekir. Aşağıdaki adımlar, PHP eklentilerini manuel olarak kurma genel uygulamasına dayalı olarak Phalcon 3.4.5 ve PHP 7.3 gereksinimlerine göre uyarlanmıştır.

Adım 1: Ortamı Hazırlayın

1. Sunucuya Erişin: SSH ile sunucunuza root kullanıcısı olarak giriş yapın.
2. CustomBuild'i güncelleyin:
Code:
cd /usr/local/directadmin/custombuild
./build update

Adım 2: Phalcon 3.4.5'i İndirin

GitHub deposundan Phalcon'un belirli sürümünü klonlayın:
Code:
cd /usr/local/src
git clone -b v3.4.5 --single-branch https://github.com/phalcon/cphalcon.git

Adım 3: Phalcon'u Derleyin

1. Derleme ortamını hazırlayın: PHP 7.3 phpize ve php-config yollarını kullanın.
Code:
cd cphalcon/build/php7/64bits
/usr/local/php73/bin/phpize

2. Derlemeyi yapılandırın: PHP 7.3 php-config yolunu işaret edin.
Code:
./configure --with-php-config=/usr/local/php73/bin/php-config

3. Derleyin ve kurun:
Code:
make && make install

Adım 4: PHP 7.3'te Phalcon'u Etkinleştirin

1. PHP'yi yapılandırın: PHP 7.3 php.ini dosyasını bulun. Yolu öğrenmek için /usr/local/php73/bin/php --ini komutunu çalıştırabilirsiniz. Bende şu yoldaydı:
Code:
nano /usr/local/php73/lib/php.ini

extension=phalcon.so satırının önündeki ; karakterini sildiğinizden emin olun veya satırı doğrudan ekleyin:
Code:
extension=phalcon.so

Sonra Ctrl + Y ve Enter ile kaydedin.

Adım 5: Web Sunucusunu Yeniden Başlatın

Değişiklikleri uygulamak için Apache veya PHP-FPM'i yeniden başlatın. Komut sunucu kurulumunuza bağlıdır:
- Apache için:
Code:
service httpd restart
- PHP-FPM için:
Code:
service php-fpm73 restart
- LiteSpeed için:
Code:
sudo service lsws restart

Adım 6: Kurulumu Doğrulayın

Phalcon'un doğru yüklendiğini onaylayın:
Code:
/usr/local/php73/bin/php -m | grep phalcon

Bu süreç, DirectAdmin ortamınız üzerinde belirli düzeyde erişim ve kontrol varsayar; sunucu kurulumunuz, PHP yapılandırmalarınız ve sisteminizde PHP eklentilerinin yönetilme biçimine göre uyarlanması gerekebilir. Önemli değişiklikler yapmadan önce yapılandırmalarınızı her zaman yedekleyin.

Daha kesin ve detaylı talimatlar için DirectAdmin'in resmi belgelerine, CustomBuild betik dökümantasyonuna başvurun veya sunucu ortamınıza özgü sorunlarla karşılaşırsanız DirectAdmin topluluk forumlarından destek alın.


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

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 with phpize. Make sure to specify the path for PHP 7.3 phpize:
Code:
cd cphalcon/build/php7/64bits
/usr/local/php73/bin/phpize

2. Configure the compilation, pointing to your PHP 7.3 php-config:
Code:
./configure --with-php-config=/usr/local/php73/bin/php-config

3. Compile and install:
Code:
make && make install

Step 4: Enable Phalcon in PHP 7.3

1. Configure PHP — find the PHP 7.3 php.ini file. You can usually find this path by running /usr/local/php73/bin/php --ini. For me it was at:
Code:
nano /usr/local/php73/lib/php.ini

Be sure to remove the ; before extension=phalcon.so, or add the line directly:
Code:
extension=phalcon.so

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.
 

Forum statistics

Threads
891
Messages
898
Members
27
Latest member
AIORAli

Members online

No members online now.

Featured content

AIOR
AIOR TEKNOLOJİ

Tüm ihtiyaçlarınız için Teklif alın

Hosting · Domain · Sunucu · Tasarım · Yazılım · Mühendislik · Sektörel Çözümler

Teklif al

7/24 Destek · Anında yanıt

Back
Top