Problem: Because the xdebug extension is enabled, the prompt "{code...}" appears when you use composer ...} so I want to stop loading the xdebug environment under cli: linux is installed for archlinuxphp through pacman, and version 7.0.1web service runs the configuration file distribution through php-fpm: {generation... problem:
When composer is used, the following message is displayed:
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getc
for each file, further improving the system security. The file management feature of WebDAV has made it a traditional document.A cost-effective alternative for management products. Any web server that supports WebDAV can provide a complete system for secure creation.
Server software supporting WebDAV
Currently, both Apache server and IIS (Version 5.0 and later) server support WebDAV. Here we will mainly introduce ApacheServer support. Apache supports WebDAV through mod_dav from version 1.x., Bu
HDU 4389 X mod f (x) (Digital DP)
For the first time, you need to enumerate and then digit DP.First, enumerate the sum of all numbers, that is, 1 ~ 81. Then, in the digital DP process, judge whether the sum of the enumerated numbers is the same as that of the enumerated numbers.Dp [I] [j] [k] [h] indicates that, on the I-bit, the current number is j, and the enumerated number is k, the number of k modulo h for the current number pair.The Code is as follows:
#include
#include
#inc
Executing in the terminalsudo a2enmod rewritecommand, the Mod_rewrite module is enabled.Alternatively, you can open the Mod_rewrite module by connecting the/etc/apache2/mods-available/rewrite.load to the/etc/apache2/mods-enabled/rewrite.load. The command operation is:sudo ln-s/etc/apache2/mods-available/rewrite.load/etc/apache2/
default directory/etc/apache installed by Apt-get mode: . ├──apache2.conf├──conf-available├──conf-enabled├──envvars├──magic├──mods- Available├──mods-enabled├──ports.conf├──sites-available└──sites-enabledApache loads the apache.conf, loads the specified file from the include, where mods-* refers to the loaded module, sites-* specifies the site to load, where ava
:./configure--prefix=/usr/local/apr(You can use echo $ after executing the command. Check that the previous command was executed correctly)Again: Make makes install (making command is a compile operation)(2) Installation Apr-utilFirst go to the directory:cd/usr/local/src/apr-util-1.6.1Then execute the. Configure (this is where the dependency package path should be added) ./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/aprExecute make make install againWhen this error occurs: A loo
Port MongoDB is listening:27017
All the above information can be modified by editing/etc/mongod.conf.
Open/Close
$ sudo service mongod start
$ sudo service mongod stop
$ sudo service mongod restart
Install PHP Mongodb Driver
1. Install Driver
echo "No" > Answers.txt
sudo pecl install MONGO
2. Open PHP Extension
echo ' extension=mongo.so ' | sudo tee/etc/php5/mods-available/mongo.ini
sudo ln-s/etc/php5/
Transferred from: http://www.cnblogs.com/myzhibie/p/4330327.htmlFor 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 successf
/var/www/html and write the following:
Phpinfo ();?>
And under the/etc/php5/mods-available set up a Redis.ini, the contents are as follows:
Extension=redis.so
And in/ETC/PHP5/APACHE2/CONF.D and/ETC/PHP5/CLI/CONF.D to establish a soft link with redis.ini, where the CLI this part is critical, otherwise php-m can not get any of the Redis module information, That cannot be loaded successfully using Phpredis
Ln-s/etc/ph
: error: no acceptable C compiler found in $PATHSee `config.log‘ for more details[[emailprotected] apr-1.6.3]# echo $?1Workaround: Install GCCyum install gcc -yOnce again, config compiles successfully[[emailprotected] apr-1.6.3]# ./configure --prefix=/usr/local/apr[[emailprotected] apr-1.6.3]#make make install[[emailprotected] apr-1.6.3]# echo $?04. Compile and install apr-util-1.6.1cd /usr/local/src/apr-util-1.6.1./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/aprmake make inst
installation of MOD-JK, mods-enabled inside will be more than one jk.load
Create file/etc/apache2/mods-enabled/jk.conf
>nano/etc/apache2/mods-enabled/jk.conf
Jkworkersfile/etc/apache2/workers.propertiesJkshmfile/var/log/apache2/mod_jk.shmJklogfile/var/log/apache2/mod_jk.logJkloglevel Info
Create file/etc/apache2/workers.properties
>nano/etc/apache2/workers.prope
In Ubuntu and Debian, the APACHE2 main functional modules (Multi-Processing module, multi-channel processor, abbreviated MPM) are divided into different packages, respectively:
Apache2-mpm-event: Event-driven MPM;
Apache2-mpm-perchild: This is just a transitional "fake" package that relies on worker;
Apache2-mpm-prefork: Traditional MPM, compatible with apache1.3, not using threads;
Apache2-mpm-worker: High speed MPM supporting multithreading and multi-process hybrid models;
Ubuntu recommends u
=/usr/local/apr
[[emailprotected] apr-1.6.3]# echo $?
After installing GCC, execute the configuration command 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
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
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.