Tag: php

Solved PHP output XML prompted error on line 2 at column 162: EntityRef: expecting ‘;’

Solved PHP output XML prompted EntityRef: expecting ‘;’ show the lack of semicolon XML error Online solution 1 Baidu, the discovery of XML is a special character (&, <,>, “,”) caused by the vast majority of the solution: Replace special characters with entity value strings (& amp;). He meow, but how do I replace double […]

[Tutorial] Set Up Database Replication In MySQL

This tutorial describes how to set up database replication in MySQL. MySQL replication allows you to have an exact copy of a database from a master server on another server (slave), and all updates to the database on the master server are immediately replicated to the database on the slave server so that both databases are in sync. This is not a backup policy because an accidentally issued DELETE command will also be carried out on the slave; but replication can help protect against hardware failures though.

Install OwnCloud 8 with Nginx and MariaDB on CentOS 7

These are the steps that we will do in this tutorial:To disable SELinux , edit the file /etc/sysconfig/selinux , and change enforced to disabled .

Install Apache, MySQL, PHP (LAMP) Stack on Ubuntu step by step

Introduction In this article, we will show you how to install LAMP stack on Ubuntu 16.04. It is a common web stack used for hosting contents on the web. The term LAMP is an acronym for the group of open source softwares which represents Linux, Apache, MySQL and PHP. In this case, we are using […]

How to Force Apache To Show a HTTP-410 Gone Status Code

The simplest configuration is to add the following line in .htaccess file using mod_alias Redirect directive. Cd to your DocumentRoot such as /var/www/html/:
$ cd /var/www/html/
$ vi .htaccess
Append the following line:
Redirect gone /foo/file.html
OR
Redirect 410 /foo/bar/demo.php
You can also use of regular expressions using RedirectMatch directive as follows:

How to install Composer on Debian / Ubuntu Linux

When you try to update mediawiki to v1.26.0 using the following command:
[wwwuser@server1.cyberciti.biz:~/wiki]$ php update.php
You will will get the following error:

In depth understanding of PHP Opcode cache principle

  What is the opcode cache? When the interpreter to complete the analysis of script code, will they generate intermediate code can be run directly, also known as the operation code (Operate Code, opcode). Opcode cache aims to avoid duplication of compilation, reduce the cost of CPU and memory. If the performance bottleneck of dynamic […]