-module=shared
Compile module to DSO (available for all modules)
--enable-module=static
Statically connecting module to core (for extended and experimental modules only)
--enable-mods-shared=module-list
Compile all modules in Module-list into DSO (available for all modules)
--enable-modules=module-list
Module-list is statically connected to the core (available for all modules)
The above module-list can be:
(1) List of module names delimited by quota
This article is to record a few errors.
First download mongo-php-driver, eat not to see the deficiency of the Readme directly configure not. Error cannot find Php-config. Please use--with-php-config=path
To run Phpize first, no words to install Php5-dev can be.
and follow the steps.
Phpize./configureMakesudo make installThen, add the following to your ' php.ini ' file:Extension=mongo.so
The success of the test is to phpinfo to see if the MONGO module has been loaded, the result is not.
In anothe
the libphp5.so module
This module is Apache used to command the PHP parser to execute PHP code.
Cat/etc/apache2/mods-enabled/php5.load
Indicates that the module is already loaded
7.1 Installing curl, this is my own problem.
First enter
Apt-cache search Curl | grep php
Query curl PHP support name
may return the following:
php5-curl-curl module for PHP5
installation:
sudo apt-get install php5-curl restart
Apache
sudo/etc/init.d/apache2 Res
and then compile the installation:[[emailprotected] apr-1.6.3]# make make install[[emailprotected] apr-1.6.3]# ls /usr/local/apr/bin build-1 include libb) Install the Apr-unit package[[emailprotected] apr-1.6.3]# cd ../apr-util-1.6.1[[emailprotected] apr-util-1.6.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr[[emailprotected] apr-util-1.6.1]# make make installThis error may occur during the secondary process:报错: xml/apr_xml.c:35:19: 致命错误:expat.h:没有那个文件或目录 #include
add the following line of command to the/etc/apache2/apache2.conf or/etc/apache2/mods-enabled/php5.conf file:
AddType application/x-httpd-php. php. phtml. php3
After adding the above command line, in order to ensure that Apache re-read the configuration file shutdown, we can turn it off by following the command, and then start again:
$ sudo/etc/init.d/apache2 Stop
$ sudo/etc/init.d/apache2 Start
Third, configure dynamic virtual host
In general,
Label:Need to turn on the Apache2 rewrite module1. Open/etc/apache2/apache2.confChange allowoverride None in the file to allowoverride all2, modify the mods-enable configuration, add a software linkcd/etc/apache2/mods-Enable
-S. /mods-avaiable/rewrite.load Rewrite.load3. Add the. htaccess file under the project root directory, modify the rewrite rule
rewriteengi
Error message.[Wed Nov 05 23:57:10 2014] [Alert] [Client 127.0.0.1] .../wamp/www/.../.htaccess:invalid command ' Rewriteengine ', perhaps misspelled or defined by a module Not included in the server configuration.The rewriteengine command requires rewrite mod support,$>cd/etc/apache2/mods-enabled switch to the mods-enabled directory under Apache$>sudo ln-s. /mods
1. Create in the/etc/apache2/mods-enabled directory Ln-s. /mods-available/rewrite.load Rewrite.loadRewrite.load. /mods-available/rewrite.load Contents of the Rewrite.load fileLoadModule rewrite_module/usr/lib/apache2/modules/mod_rewrite.so
Terminal operation
sudo a2enmodThe program prompts the module name that is available for activation, enter:Re
file content is as follows: loadModule php5_module/usr/lib/apache2/modules/libphp5.so, there is also a link file php5.conf, which should be related to the php5 settings, the content is also very simple:
AddType application/x-httpd-php. php. phtml. php3
AddType application/x-httpd-php-source. phps
With these files as a reference, you can draw a picture when configuring a VM or loading a module. At this time, if you still follow the previous syntax in httpd. if the module is loaded in t
line as Follo Ws:$ su doapt-get install php5-mcrypt And I got the following:Package lists ... Donebuilding Dependency Tree State information ... Donephp5-mcrypt is already the newest version. Not upgraded. Weird. If It is a already there why isn ' t it working with my projects? Then I Googled to sometime and could not find exact solution anywhere. I tried to look the INI in/etc/php5/conf.d/and there is mcrypt.ini file with quite proper content in it:Moduleextension=mcrypt. SoAgain I pu
add "extension=msgpack.so" to PHP.ini
The msgpack.so is automatically copied to the PHP extension library and the configuration is well written.
Two. Installing Yar
1. Download Yar
wget http://pecl.php.net/get/yar-2.0.0.tgz
2. Unzip the compilation
TAR-ZXVF YAR-2.0.0.TGZCD CD yar-2.0.0/usr/bin/phpize./configure--with-php-config=/usr/bin/php-config7.0*
Problems encountered:
Checking for CURL in default path ... not foundConfigure:error:Please Reinstall the Libcurl distribution-easy.h should be
locationyou should add "extension=msgpack.so" to PHP.ini
The msgpack.so is automatically copied to the PHP extension library and the configuration is well written.
Two. Installing Yar
1. Download Yar
wget http://pecl.php.net/get/yar-2.0.0.tgz
2. Unzip the compilation
TAR-ZXVF YAR-2.0.0.TGZCD CD yar-2.0.0/usr/bin/phpize./configure--with-php-config=/usr/bin/php-config7.0*
Problems encountered:
Checking for CURL in default path ... not foundConfigure:error:Please Reinstall the Libcurl distrib
Stayed in Windows, into the JetBrains's family bucket. Prepare to get started swoole, it's impossible to run a little bit of change every minute git push . So you want to windows configure the swoole run environment on. A comparison of several Linux environments under Windows
Bashonwindowsrequires Windows tenInstallation is simple, refer to bash on Windows installation Tutorial (win 10)Possibly due to Windows upgrade, my version bash only prompts for the store download after CMD input, ther
-server-3.0.6.tar.gz#cd freeradius-server-3.0.6#./configure#make make Install#radiusd-X test, CentOS uses the OPENSSL-1.0.1E version number for the blood patch, change allow_vulnerable_openssl in the config file = yes#radiusd Start service mode#vim/usr/local/etc/raddb/user.confCancel 73-81 Steve Cleartext-password: = comment under "Testing"#radtest Steve testing localhost 0 testing123 simulation test#mysql-uroot-p Password>create database radius;>grant all on radius.* to [email protected] iden
Configuration of Apache:1. Turn on the PHP moduleTo see if the mods-enabled/php5.load exists and does not exist, copy one to mods-enabled from the mods-avaliable.Settings for 2.apache2.conf: Options followsymlinks allowoverride None #Require all denied Order deny, Allow to Settings for 3.sites-available/000-default.conf:/var/www
).Of course, this is the pre-installation work. First, install ApacheDownload the Apache2 installation source from the official website http://httpd.apache.org/download.cgi.1. Unzip NBSP;TAR-ZXVF httpd.tar.gz2.1 Custom installation path cd/home/work/httpd ./configure–prefix=/home/work/apache2–enable-mods-shared=most Note: Enable-mods-shared=most means that most modules are loaded (dynamic), using – Enable
httpd.conf(3) Restart ApacheSudo/etc/init.d/apache2 Restart Port modified. The Apache port has been modified to 9000.2. Modify the default Site directory:/etc/apache2/sites-available/default# will/var/www modify your path to the bit:/var/www/html/3. Modify the default home page document:/etc/apache2/mods-available/dir.conf# Replace index.* with xxx.*4. FinallyHowever, different files are placed differently with apache2 versions.See DirectoryIndex in
It says Debian Apache2 and PHP7 are installed under the GNU. But it does not reflect that apache2 has been able to use PHP7, and here we record with virtual host.Go to the directory where Apache is located:If a friend who has worked with Wamp may find that the directory is not the same as under Windows, I used the same directory structure of the Apache under CentOS as the Windows, Debian is a bit different, as was the case when installing Apache in Pixelos.Take it back, we know that the director
For many PHP beginner developers, to build a lamp environment can be used for production is a time-consuming and laborious thing, this article takes ubuntu-server14.04 as an example, gives a tutorial to build the environment for everyone to reference;1. Update the SOFTWARE sourcesudo apt-get update2. Installing Apachesudo apt-get install apache23. See if Apache is installed successfullyApache2–vAs shown below, indicates a successful build4. Access the server's IP through the browser, if an Apa
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.