How to install PHP from Source on Ubuntu

Compiling PHP from source code can be essential when you require a specific PHP version that isn’t available through your Ubuntu distribution or a Personal Package Archive (PPA). This approach is particularly useful if you need to enable custom modules, such as pcntl, which is disabled by default on Ubuntu. By compiling PHP yourself, you … Read more

Install Yarn Package Manager

node.js

Yarn is a package manager for JavaScript like npm. It is commonly used for managing dependencies for Node.js applications, but it can also be used for front-end development with frameworks like Rmeact, Angular, and Vue.js. To install the Yarn package manager on ubuntu, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg –dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null … Read more

How to get Contents of a Webpage using PHP curl

PHP cURL module allows you to connect to remote websites and API endpoints to exchange data. To see if you have php-curl enabled, you can check phpinfo() page or run the command “php -m’ and look for curl. boby@sok-01:~$ php -m | grep curl curl boby@sok-01:~$ If php-curl module is not installed, you can install … Read more

gridsome error:03000086:digital envelope routines::initialization error

node.js

When starting a gridsome project on Ubuntu 20.04 with Node.js version v18.10.0, it failed with the error message “error:03000086:digital envelope routines::initialization error”. boby@sok-01:~/www/learn/gridsome/my-gridsome-site$ gridsome develop Gridsome v0.7.23 Initializing plugins… Load sources – 0s Create GraphQL schema – 0.03s Create pages and templates – 0.03s Generate temporary code – 0.03s Bootstrap finish – 0.56s 10% building … Read more

How to change Next.js port

node.js

You can start Next.js development server with the command npm run dev This will start the development server on port 3000. boby@sok-01:/www/learn/nextjs/todo (main)$ npm run dev > dev > next dev ready – started server on 0.0.0.0:3000, url: http://localhost:3000 event – compiled client and server successfully in 1645 ms (163 modules) wait – compiling… event … Read more

How to Install Yarn Package Manager on Ubuntu

node.js

Yarn is a javascript package manager like npm. Import the GPG key curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg –dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null Add the repository echo “deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main” | sudo tee /etc/apt/sources.list.d/yarn.list Instal yrarn with apt sudo apt-get update && sudo apt-get install yarn See Node.js

How to create .NET console program

dotnet

Once you have dotnet SDK installed, you can create your first program. To create a console project run dotnet new console -o MyApp This will create MyApp folder with 2 files inside. Program.cs is a basic program that prints “Hello World” text in the console. To run the dotnet project, you can use the command … Read more

How To Install ionCube on Ubuntu 20.04

ionCube is PHP extension that is used to load ionCube encoded PHP files. ionCube is used to protect commercial PHP scripts by encoding it, so no one can read the actual PHP code. First, download ioncube loader from https://www.ioncube.com/loaders.php cd /usr/local/src wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvf ioncube_loaders_lin_x86-64.tar.gz cd ioncube/ Find extension directory and copy .so file … Read more

How to install PHP PECL Extension

PECL is a repository for PHP extensions. To install PHP extensions from PCEL, you can use the command pcel install EXTENSTION_NAME_HERE To install a specific version, you can specify version after extension name as follows. pecl install pecl_http-3.2.3 Once an extension is installed, you need to edit PHP configuration and add a line to load … Read more

Monitoring APCu with APCu Panel

apcu-panel provide GUI to monitor APCu cache. To install apcu-panel on CentOS, run yum install apcu-panel The package provides following files [root@localhost ~]# rpm -q –filesbypkg apcu-panel apcu-panel /etc/apcu-panel apcu-panel /etc/apcu-panel/conf.php apcu-panel /etc/httpd/conf.d/apcu-panel.conf apcu-panel /usr/share/apcu-panel apcu-panel /usr/share/apcu-panel/index.php [root@localhost ~]# To enable GUI, edit file vi /etc/httpd/conf.d/apcu-panel.conf Modify it as follows # APC Control Panel Alias … Read more