Pre-environment: The LNMP has been installed.1. Installing XdebugCan be installed through Pear package managementsudo apt-get install Php-pearsudo pecl install XdebugHere we install directly via aptApt-get Install Php5-xdebugThe program has
DescriptionPHP 5.5 built later OpCache , OpCache the acceleration principle is to store the compiled bytecode in memory, to avoid the duplication of PHP caused by the waste of resources.Reference
How to Enable PHP 5.5 opcache on
Yum install nginx + mysql + php command prepare to create directory mkdir directory name chmod777 directory name change permission add to boot startup Item service chkconfig -- addphp-fpmchkconfignginxon find file location often used to find various
Nginx is a high-performance Web and reverse proxy server with many excellent features: Nginx is a good alternative to Apache server in the case of high-connection concurrency: nginx is one of the software platforms that bosses often choose to do
There are too many Session files in PHP,
Default PHP mechanism: Each php request has a 1/100 probability (default) to trigger "session reclaim ". If "session Recycle" occurs, the/tmp/sess _ * file will be checked. If the last modification time
Php-FPM configuration in nginx tutorialNginx can directly call FPM to drive php and then discard apache. Let's not talk about the reason.First download the php5.4 installation package.According to others The code is as follows:Copy code .
Install NginxInstall PHP The code is as follows:Copy code Sudo apt-get install php5-cli php5-cgi php5-fpm php5-mcryp Modify Nginx configuration The code is as follows:Copy code Server {# Listen 80; # listen for ipv4; this line is default
Software and version selection
Ubuntu 14.04
Ubuntu is the largest number of users in the distribution, behind a large tyrants maintenance, can be said to be the best choice for lightweight users. And 14.04 is currently the latest LTS version, has
This tutorial applies to users of Laravel projects and uses homestead as the virtual machine for the development environment by default.
1. Confirm that you have installed the Xdebug
By ssh logging in homestead to your, executing
ls /etc/php5/fpm/
Compromise, write a script to monitor swap bar, put in the crontab inside, 2 hours to execute once, the world is quiet, no annoying alarm text
Copy Code code as follows:
#!/bin/bash
function usage
{
echo "Usage: $ $"
echo "e.g $1500"
1 Installing NginxInstalling the sudo apt-get install NginxStart Service Nginx StartThe browser tests whether the installation was successful http://192.168.2.173/2 Installing PHP5sudo apt-get install PHP5-FPM3 Installing the MySQL 5 databasesudo
Eaccelerator is a free open source PHP accelerator, optimized and dynamic content caching, improving the caching performance of PHP scripts, so that PHP scripts in the compiled state, the cost of the server almost completely eliminated. It also has
Installation of Zabbix
The Zabbix monitoring architecture requires at least server,agent,web modules. MySQL, Web Parts, and servers are installed on the same machine.
Zabbix pre-installation server to do time synchronization (NTP)
php:5.5, operating system: ubuntu13.10The website text Editor uses the Ueditor, the test upload picture displays the background configuration item not to load successfully, the upload plugin cannot use normally.Consulted the Ueditor documentation,
Environment:
Ubuntu Server 12.04 i686
Problem Description:
24G of memory, free of 20G or so. But the kernel always says this and kills the program. June 6 13:12:44 00098 kernel: [3112325.883069] out of Memory:kill process 2249 (nginx) score 1 o
Recently from Google Ananlytics found that the Web site slowed a lot, so think of PHP fpm slow log function.
Fortunately, the PHP-FPM provides a slow execution log, which dumps the call procedure that executes the slower script into the log.
Shell
Recently need to do JSP project, deployed in Ubuntu, the weekend time to configure the Nginx + PHP + mysql + phpmyadmin + tomcat environment, from the Windows C # turn around, how much some do not adapt, estimated to go the whole stack direction. By
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.