The purpose of this blog is to have the following points:
1, win under the installation of Cygwin
2. Install PHP Environment and PHP development environment in Cygwin
3. Install Swoole Extension
4. Set Phpstorm and Cygwin to complete the remote
InstallationFirst of all, PHP supports oracle. The first thing I think of is the pdo-related driver. After reading it, it is actually called pdo_oci. But it still depends on the oracle instant client, which needs to be downloaded from the oracle
System Environment: centOS6.3
apache:httpd-2.4.2
php:php-5.3.21
I. Installation MCrypt
1. Download the Libmcrypt,mhash,mcrypt installation package
Copy the Code code as follows:Libmcrypt-2.5.8.tar.gz# wget
problems encountered and solutions Question One : report the following error ./configure The following error occurredSorry, I cannot run APXS. Possiblereasons follow:1. Perl is not installed2. APXS is not found. Try to pass the path USING--WITH-APXS2
If PHP is already compiled on the system, then you need to add a new extension.
One way is to recompile PHP completely, another way is to compile the extensions separately, in extension form.
The following is an example of installing Curl
1. Add PHP command , under the Etc/profile file to increaseif["$HISTCONTROL"="Ignorespace" ] ; Then export Histcontrol=IgnorebothElseExport Histcontrol=ignoredupsfiexport path USER LOGNAME MAIL HOSTNAME histsize histcontrolexport Path=
Site Settings gzip compression, reduce the volume of web pages, make website access faster! The method is simple, just create a. htaccess file in your site's root directory and enter the following code:New-Notepad-copy the following code: (if the
After installing good apache2+php5, now want to install the last MYSQL5 play.
With the source code installed good mysql5, found that the original Linux to add new extensions to PHP, unlike in Windows, remove the semicolon annotation on the line ~
A
The PHP extensions under Linux are somewhat different from the extensions installed under Windows. The following is the extension of PHP under Linux pdo,pdo_mysql module to illustrate1. In the PHP original code installation package, into the etc/pdo_
Zijidelu Web site Log directory/home/hosts_logThe log file has a corresponding site ID
Zijidelu php-cgi Log Directory/usr/local/php_fcgi/logsPhp-fpm.logSlow.log
Viewing log files Basically solves the problem, my side of the client site is invaded
To agree on several directories
/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.iniI. PHP-FPM startup parameters
#测试php-FPM
Use Mysql-u root-p to access the MySQL operating interface
Directly using/usr/local/php5/bin/php/web/test.php execution to connect to the database
Apache also restarted, as ineffective as
Doubt: Why Web page execution failed, command execution
When a feature is compiled into the so file, how do you invoke it through PHP? One way is to write a PHP module (PHP extension), call the function in PHP, and then use the module to call the function in so. Here's a simple example of using the OS
Nginx itself can not handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to the PHP interpreter processing, and the results returned to the client.
Nginx is generally the request to send fastcgi
1. Build the basic Web environment, I use Apache2 + php5 + MySQL 5.0
Apt-get Install apache2 mysql-server-5.0 php5-mysql
2. Solve the problem that the graphics verification code cannot be displayed when the user logs in
Apt-get Install PHP5-GD
3.
Ask a question
A few days ago did a very strange project, my company developed a set of China Unicom SGIP Protocol of the SP terminal Short Message Service software, to provide unicom 130 SMS services. This system is under Windows 2000, the
It has always been a one-click Web server, but the environment is relatively old for one-click construction. If you want to use a relatively new environment, especially the official server, you have to manually compile the build (the following build
Description
Operating system: CentOS 5.X
Server IP Address: 192.168.21.127
Web environment: Nginx+php+mysql
Site root directory:/usr/local/nginx/html
Objective: Install Coreseek Chinese search engine, configure MySQL database access interface,
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.