Automated PHP Deployment Pipeline with Jenkins and Kubernetes
Prerequisites
A functional Kubernetes cluster with Traefik installed as the ingress controller. Network File System (NFS) storage mounted across all nodes to ensure Jenkins configuration survives pod restarts. A private Docker registry accessible at 192.168.0.153:5000. The base environment uses an Alpine LNP stack (PHP 5.6.31 and Nginx 1.8.1) a ...
Posted on Tue, 09 Jun 2026 16:13:28 +0000 by chris1
Deploying Java and PHP Applications on Kubernetes with ELK and Prometheus Monitoring
Environment Preparation
1.1 Cloning GitLab Repository
mkdir /root/gitlab/
cd /root/gitlab/
git clone http://172.17.17.84:85/java/java.git
1.2 Setting Up Harbor Registry
Login and create a project named demo in Harbor.
docker login reg.ctnrs.com
# Username: admin
# Password: harbor12345
docker tag <source-image> reg.ctnrs.com/demo/java-de ...
Posted on Thu, 04 Jun 2026 19:09:24 +0000 by pplexr
PHP Summary
Basics
Code is written inside <?php ?> tags.
echo outputs one or more strings separated by commas, concatenated with dots.
PHP_EOL is the newline constant.
print outputs only one string and always returns 1.
Ternary operator ?: e.g., 1+2==3 ? 4 : 5 returns 4 if true, else 5.
Null coalescing operator ??: $a ?? "b" returns $a if ...
Posted on Tue, 02 Jun 2026 17:51:52 +0000 by dfowler
Setting Up a Collaborative Wiki with MediaWiki and Docker
This guide walks through deploying MediaWiki in a Docker environment to create a shared wiki platform accessible to team members. Whether you're working within a local network or using a cloud server, Docker simplifies the installation process significantly.
Prerequisites
Before starting, ensure you have basic familiarity with MySQL database op ...
Posted on Sat, 30 May 2026 19:33:17 +0000 by mslinuz
Building a LAMP Stack on Amazon Linux AMI 2015.09 (HVM)
Restart MySQL:
ServerTokens OS → ServerTokens Prod (suppress OS name in error pages)
ServerSignature On → ServerSignature Off (hide Apache version in error pages)
DirectoryIndex index.html index.html.var → DirectoryIndex index.html index.htm Default.html Default.htm index.php Default.php index.html.var (add index.php to default index ...
Posted on Wed, 27 May 2026 16:01:25 +0000 by shauns2007
Deploying a Containerized Nginx and PHP-FPM Stack on CentOS 7
Host System RequirementsTarget Operating System: CentOS 7.xMinimum Resources: 4GB RAMInstalling the Docker EngineFirst, update the system repositories and remove any obsolete Docker versions:sudo yum update -y
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
...
Posted on Wed, 20 May 2026 16:24:58 +0000 by jrobles
Handling and Comparing Special Characters in PHP
When processing user input or data from external sources, special characters can cause unexpected mismatches. This article presents a practical approach to normalize and compare strings that contain such characters.
Converting Special Characters to Hexadecimal
The bin2hex() function can be used to inspect the raw bytes of a string:
$string = '1 ...
Posted on Tue, 19 May 2026 08:29:26 +0000 by marty_arl
Installing and Configuring RabbitMQ with PHP AMQP Extension on Linux
System Dependency Installation
Install required system packages:
yum install ncurses-devel unixODBC unixODBC-devel xmlto libtool autoconf
Erlang Runtime Setup
Download and compile Erlang, which is required by RabbitMQ:
wget http://erlang.org/download/otp_src_18.1.tar.gz
tar -zxvf otp_src_18.1.tar.gz
cd otp_src_18.1
./configure --prefix=/usr/lo ...
Posted on Tue, 19 May 2026 03:44:30 +0000 by Janco
Designing Order Numbers for E-commerce Systems
$uniqueOrderKey = uniqid(date('Ymd'));
echo $uniqueOrderKey;
</div>This might output something like: <div>```
201907205d32de71e6002
public static function generateCounter($storeId = 0, $type = null, $useTransaction = true, $padLength = 15, $currentTime = null) {
if (empty($type)) {
throw new \Exception('Type label cannot be emp ...
Posted on Mon, 18 May 2026 23:03:18 +0000 by datafan
Building a Custom PHP MVC Framework from Scratch
Introduction to MVC ArchitectureThe Model-View-Controller (MVC) pattern is a software architectural design that separates an application into three main logical components: the Model (data and business logic), the View (user interface), and the Controller (handles user input). Originally developed for desktop applications, it has become a stand ...
Posted on Mon, 18 May 2026 18:45:35 +0000 by stenk