FreeBSD frequently encountered errors in running Apache
Little Wolf @http://blog.csdn.net/xiaolangyangyang
1. Error:
No such file or directory:failed to enable the ' Httpready ' Accept Filter
Workaround:/etc/rc.conf
Http://www.lvtao.net/tool/nginx-config-10w.html
Optimizations in Nginx commands (configuration files)
Worker_processes 8;
Nginx process number, it is recommended to follow the number of CPUs specified, usually a multiple of it.
There are two configuration scenarios for nginx+keepalived high availability:1, nginx+keepalived master-slave configurationThis scheme, using a VIP address, the front-end use of 2 machines, a master, one to do, but at the same time only one machine
Basic concepts
PHP treats objects in the same way as references and handles, where each variable holds a reference to the object, not a copy of the entire object.
When a new object is created, the object is always assigned, unless the object
Configure error Xml2-config not found. Please check your LIBXML2 installation
CentOS 6.5 Installs PHP 5.6 report configure error Xml2-config not found. Please check your LIBXML2 installation error
Check if the LIBXM package is installed
[Root@
Mkdir/usr/local/nginx
Installing the Pcre,rewrite module first requires
Tar zxvf pcre-8.10.tar.gz
CD pcre-8.10/
./configure
Make && make install
Groupadd-r Nginx
The default Debug Configuration
In the Portal file
defined Define true ); defined Define (' yii_env ', ' dev ');
After the above configuration, all the exceptions will be displayed directly on the page, that is, the red page
Formal
Overview
Namespaces are a way of encapsulating things. This abstraction can be seen in many places, such as in the operating system, where directories are used to group related files, and directories play the role of namespaces for files in a
1. Preparation before installation
1) GCC compiler
Execute the following command:
If a missing dependent library occurs during this period, use the sudo apt-get install installation. Then use GCC-V to see if the installation was successful.
2)
Once the simple study of PHP, read "PHP and MySQL Web development", as well as the help of a universal search engine. This preparation system to learn a bit, reference is PHP Manual.
What PHP can do
PHP is primarily used for server-side scripting,
Type Introduction
PHP supports 8 types of raw data.
Four types of scalar:
Boolean (Boolean, case-insensitive)
Integer (integer type)
Float (floating-point, also called double)
String (String)
Two kinds of
Quick installation using the integration pack provided by Daniel Zhangyichun (http://openresty.org/).
Very simple, download ngx_openresty, the integration package is: Nginx,lua or Luajit,ngx_lua, as well as some useful Nginx third-party modules.
For
User-defined Functions
The function does not have to be defined before the call, unless it is conditionally defined.
All functions and classes in PHP have global scope. PHP does not support function overloading, and it is not possible to cancel the
Various parameters of Nginx startup
Nginx has added some command line parameters since version 0.7.53:-S
The-s parameter consists of four commands, namely Stop/quit/reopen/reload
#/usr/local/nginx/sbin/nginx-h
Nginx
PHP interacts with MySQL
A simple example of the code logic is: Make a connection, create a table, insert data, get the data, and display the results.
(1): Command line Build test database
(2): The following is a PHP script ( to connect, create a
Using cookies and user sessions
Cookies
Cookies, which store some small information about the user. It is consistent with a request from a server or script. Through a user's browser, a host can request to save 20 cookies. Each Coopkie contains a
The script consists of statements, which are implemented by Process control, and this section mainly describes the use of several keywords.
ElseIf
elseifAnd else if The behavior is exactly the same, if you use a colon to define the if/elseif
today, I would say a singleton mode.
Since I used to do Java development, in the use of Singleton mode, the first thought to use the A Hungry man type, and then found in PHP, there is a feature: because PHP does not support the class definition
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service