Install php curl extension in Linux and support https requests. recompile the environment: php5.5.5 + nginx
Task: install php curl extension and support https
The trap of blood and tears: I first installed curl and found that https is not
Nginx and php cannot upload large image (413) upload error: 413RequestEntityTooLarge modify nginx. conf in http {& nbsp; client_max_body_size10M; # add and modify vertices} modify php. nginx and php in ini cannot upload large image (413)
An error
Since everyone is so fond of WordPress, I will share some of my experiences! For the sake of real-time proof, I specifically downloaded a newly clean WP plug-in which it is not installed. APC closed to open the default homepage 1. the original WP,
Go to Ubuntu under PHP development, previously developed under Windowns, directly set the project directory to d:\pathto\nginx\htdoc\www in the editor.
Under Ubuntu the same operation,/usr/local/nginx/htdoc/www set for the project directory in the
PHP How to upload large files, configuration as if the maximum set to 8M, I would like to know how to upload a hundreds of m file (do not use specialized client software), it seems to be a shard What, do you know how to do it?
Reply content:
Software and version selection
Ubuntu 14.04
Ubuntu is one of the most current users of the distribution version, behind the large local tyrants maintenance, can be said to be the best choice for lightweight users. And 14.04 is currently the
Here is the configuration file I modified under Nginx
Nginx and PHP-FPM can normally boot 9000 port is also normal, can access HTML files, cannot access PHP files,
To access PHP files directly download, this is my nginx.conf configuration
Location/{
First of all, we need to install MySQL, installed in Ubuntu is very simple, you just need to use the command to simply install the MySQL server:
sudo apt-get install Mysql-server
After installing play MySQL server, we need to install Nginx, it is
Source installation memcached and PHP memcache extensions
Note: The following installation steps take the centos6.5 system as an example.
First, pre-installation preparation
1. Download the source package
http://www.memcached.org/
Currently the
WordPress "Unable to move uploaded files to" Error resolution, WordPress solution
Today in the Web page upload pictures to the blog, the results prompt: "Unable to move the uploaded files to/home/wwwroot/wp-content/uploads/2013/", depressed,
How Docker layouts PHP development environment, Docker layout PHP development
Environment deployment has always been a big problem, whether it is a development environment or a production environment, but Docker packages the development environment
Correctly set php-fpm sub-process users to improve website security and prevent Trojans
Address: http://www.myhack58.com/Article/60/61/2013/37209.htm
According to continuous feedback in the production environment, PHP websites are found to be
BKJIA exclusive Article] This script has been used on production servers for more than a year and can be automatically configured on any network-based server.
Usage: save an nginx_php code file, for example, nginx_php. Upload to the server for
PHP-FPM to achieve performance optimization, php-fpm Performance Optimization
Introduction:
PHP-FPM is a PHP FastCGI manager, the general Nginx above the run PHP program will be PHP program thrown to the PHP-FPM for parsing. Okay, that's it!
PHP 5.4
The LNMP automatic start/stop control script often needs to restart LNMP after changing the LNMP configuration. Here, an automatic script is written to restart LNMP. In addition to convenient restart, the function of disabling and enabling is also
After nginx 1.4 and PHP 5.4 are compiled and installed on centos and nginx and PHP-FPM are started successfully, the "file not found" prompt is displayed when you access PHP. "At the same time, you can see in the error log: copy the Code as follows:
Because the company requires a RedHat configuration, let me practice what to do in Linux.
It's not that difficult. But record it.
First, it is the redhat6.2 x86 system built with Vmware on the server. In RedHat, the source base in yum is charged.
Nginx is connected to FastCGI through HTTP. in Linux, another faster method is to use Unix domain socket. The following describes this method:
The following must be modified:
/Usr/local/PHP/etc/php-fpm.conf
Change to: /dev/SHM/PHP. Socket
Recently, due to project requirements, the server has been upgraded from CentOS6 to CentOS7, and the corresponding PHP version has also been upgraded to PHP5.6. We are familiar with the one-click installation package of the LEMP environment. However,
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.