httpd.conf===>

Listen
Listen ServerName 123.123.123.123: use IP Address as servername LoadModule rewrite_module modules/mod_rewrite.so Include conf/extra/httpd-vhosts.conf <FilesMatch "\.ph(p[2-6]?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>

httpd-vhost.conf===>

# Virtual Hosts
<VirtualHost *:>
ServerName www.abc2.com
ServerAlias abc2.com tianpin.bj..clb.myqcloud.com
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#
<VirtualHost *:>
# Set host name
ServerName www.abc.com
# Set host alias , Even with this alias, you can access ( The premise is that the domain name resolution is correct )
#ServerAlias abc.com
DocumentRoot "/var/www/pttabc"
<Directory "/var/www/pttabc">
# add Indexes For display settings “ A list of files can be displayed ”( When there is no page to display )
Options FollowSymLinks
# Files with folder access control enabled .htaccess Set up
AllowOverride All
# Request control
Require all granted
</Directory>
</VirtualHost>

linux Next php7 install memcached、redis Expand

http://www.cnblogs.com/hejun695/p/5369610.html

http://www.cnblogs.com/zqifa/p/linux-php-2.html

http://blog.csdn.net/sinat_21125451/article/details/51656474

cd php-memcached

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config

make && make install

And then the extended file directory has .so

/usr/local/php/lib/php/extensions/no-debug-zts-20151012/memcached.so

stay php.ini Join in

extension=memcached.so

Centos Next Yum install PHP5.5,5.6,7.0

http://www.blogjava.net/nkjava/archive/2015/01/20/422289.html

php in fastcgi and php-fpm What is it?

http://www.360doc.com/content/16/0611/13/12146850_566738546.shtml

php The installation directory ( namely usr/local/php) Next ext No catalog

dll  yes windows Under use
linux  Next  ext Directory in  .../php/include/php/ext/
In terms of expansion, such as  memcache  perhaps  redis  their  .so  The files are all in  .../php/lib/php/extensions

Putty The blue folder is too dark

http://blog.sina.com.cn/s/blog_74a7e56e0101bzkk.html

newest apache More articles on multi domain and multi site configuration

  1. Apache Multi port multi site configuration instance

    Under the share Apache Multi port and multi site configuration method , To configure apache Server friends reference . To configure httpd.conf Listen to multiple ports Copy the code as follows : # Listen: Allows you to bind A ...

  2. Apache 2.4 Multi site configuration record

    Domain based virtual host configuration <VirtualHost *:80> DocumentRoot /var/www/cms ServerName www.example.com RewriteEng ...

  3. windows Under the Apache Two level domain name Directory binding configuration

    Usually the domain names we register are top-level domain names   Such as www.potatog.com, We hope this domain name can access different websites or functions of the server and so on It could be like this www.potatog.com/api perhaps www.pot ...

  4. Apache Multi site configuration tutorial

    See this version of the article on the network program is still relatively small , Here's a shot ~ Practice has proved , This tutorial is for Apache 2.2.22, The other versions should be similar My blog :http://wislab.net/, Hope to communicate with you Ap ...

  5. apache 80 The port belongs to multi site configuration

    1. stay httpd.conf Enable the virtual host function in the file , That is, remove the... In front of the following configuration items # #LoadModule vhost_alias_module modules/mod_vhost_alias.so 2.. stay ...

  6. apache Multisite configuration + Multi port configuration

    Apache Multisite configuration This method is to configure different addresses to access different folder configurations 1: Modify the hosts file , as follows : Example : 127.0.0.1 localhost 127.0.0.1 www.dede.co ...

  7. apache Set up the domain name multi site access and prohibit apache visit 80 port

    apache Set the domain name multi site access The current system :macOS High Sierra After configuring the specified port for domain name access , Different domain names can only be configured with different ports apache The configuration directory : sudo vim /etc/apache2/ ...

  8. windows To configure apache Multiple sites of

    windows  To configure apache Multiple sites of The first step is to open apache Of conf/extra/httpd-vhosts.conf, Copy <VirtualHost></VirtualHost ...

  9. Apache Based on the domain name 、 port 、IP Virtual host configuration for (Centos 6.5)

    Virtual host : Deploy multiple sites , Each site , Want to use a different domain name and site directory , Or different ports , Different ip, Need virtual host function . In a word , One http The service should be configured with multiple sites , You need a virtual host . Virtual host classification : Based on the domain name . Based on the port ...

Random recommendation

  1. Improve PHP Code quality 36 Tips

    1. Don't use relative paths Often see : require_once('../../lib/some_class.php'); This method has many disadvantages : It first looks for the specified php Inclusion path , Then find the current directory . So it will ...

  2. linux Report errors bash ‘/bin/sh: Syntax error: “(” unexpected

    Use today make compile Jump to bash ‘/bin/sh: Syntax error: “(” unexpected and /bin/sh: [[: not found This strange mistake The reason is lin ...

  3. Debian Five minutes up there WordPress - Blog / Website platform

    There is no nonsense , Steps are as follows : Download the installation software ,MySQL Apache PHP sudo aptitude install mysql-server mysql-client ## install MySQLsudo ap ...

  4. Debian Execute the command regularly Crontab

    Reprint :http://i.592.net/?post=276 Debian Execute the command regularly Crontab, This is equivalent to Windows Scheduled tasks for Want to make Debian It's up to crontab 了 !     ...

  5. linux(centos) Lower installation PHP Of PDO Expand

    PHP Data objects PDO Expand to PHP Accessing the database defines a lightweight, consistent interface .PDO Provides a data access abstraction layer , It means , No matter which database you use , You can use the same function ( Method ) To query and retrieve data . Recently in our station and O ...

  6. iOS Signature mechanism of

    1. from keychain in “ Request a certificate from this certification authority ”, In this way, a pair of public and private keys are generated locally , The saved CertificateSigningRequest It's the public key , The private key is kept in the local computer . 2. Apple has its own set of male ...

  7. aircrakf

    airmon-ng start wlan0 airodump-ng wlan0mon#find the wifi airodump-ng -w yakoazz -c 1 --bssid BE:5F:F ...

  8. Return to Spark-- turn

    Original address combineByKey Three parameters val scores = sc.parallelize(Array(("jake",80.0),("jake",9 ...

  9. [LeetCode] 90.Subsets II tag: backtracking

    Given a collection of integers that might contain duplicates, nums, return all possible subsets (the ...

  10. Componentization and React

    One , Understanding of componentization 1, Package of components - View - data - Logic of change ( Data driven view change ) example : import React, { Component } from 'react'; import List f ...