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


# Virtual Hosts
<VirtualHost *:>
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
<VirtualHost *:>
# Set host name
# Set host alias , Even with this alias, you can access ( The premise is that the domain name resolution is correct )
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

linux Next php7 install memcached、redis Expand

cd php-memcached


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

make && make install

And then the extended file directory has .so


stay php.ini Join in

Centos Next Yum install PHP5.5,5.6,7.0

php in fastcgi and php-fpm What is it?

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

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 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, We hope this domain name can access different websites or functions of the server and so on It could be like this 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 :, 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/ 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 : localhost ...

  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 : 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 ...