1. Install and configure Xdebug in Homestead virtual boxFirst run vagrant up and Vagrant Ssh,ssh remote to homestead in the terminal, then copy the following code into a shell file and execute it.#!bash/BINCD~#download and UncompresswgetHttps//xdebug.org/files/xdebug-2.4.0.tgzTarXvzf xdebug-2.4.0. Tgz#compile and Make InstallCD Xdebug-2.4.0Phpize7.0./configure--enable-Xdebug Makesudo Make Installmkdir-p/usr/local/php/Xdebugsudo CP~/xdebug-2.4.0/modules/xdebug.so/usr/local/php/xdebug/xdebug.soCa
Title, divided into 3 parts:1, SVN server Setup. Operating system Ubuntu 14.04.2 LTS. The specific method degree Niang many, no longer the fine number.Installation: sudo apt-get install subversionCreate repository: sudo mkdir/home/svn/repo,svnadmin create/home/svn/repoIt is important to note that the permissions for the file directory are to be integrated with Apache2, so the permissions are using www-data:subversion,7552, the installation of APACHE2 related modules.Installation: sudo apt-get in
automatically copied to the php extension library and configured.
Ii. Install yar
1. Download yar
wget http://pecl.php.net/get/yar-2.0.0.tgz
2. decompress and compile
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:
Checking for cURL in default path... not foundConfigure: error: Please reinstall the libcurl distribution-easy. h shoshould be in
3. Install curl-devel
yum -y install curl-develsudo apt-get install libcurl4-gnutls-
1. Update the SOFTWARE sourcesudo apt-get update2. Installing Apachesudo apt-get install apache23. See if Apache is installed successfullyApache2–v4. Installing PHP5sudo apt-get install php55. View the version of PHP5Php5–v6. Check to see if Apache has loaded the Libphp5.so module, a module that Apache uses to command PHP parsers to execute PHP code.Cat/etc/apache2/mods-enabled/php5.load7. Install MySQL, the installation process will let the input dat
Original: ubuntu-server14.04 Build lamp environmentFor 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. Ac
1. Open Apache Mod_rewrite module#去掉LoadModule Rewrite_module modules/mod_rewrite.so before the "#" symbol # if it is an Ubuntu system, the default is to turn on rewrite cd/etc/apache2/ mods-enabled# See if there is a rewrite.load link file, and if not, establish a linked file Cd/etc/apache2/mods-enabledln-s: /mods-available/rewrite.load rewrite.load//This step i
a newer version of the Php-memcached module, we can build it manually. Here's how:First, we install some basics, including development packages for PHP and Memcached:sudo apt-get install -y php7.0-dev git pkg-config build-essential libmemcached-devThen we can get the php-memcached repository, check out php7 the branch, and build it!cd ~git clone https://github.com/php-memcached-dev/php-memcached.gitcd php-memcachedgit checkout php7phpize./configure --disable-memcached-saslmakesudo make installT
-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
/SVN.sudo mkdir/home//home/svnStart to create your own knowledge base.-R root:subversion promanage// requiredfor www-$sudo chmod-r g+rws promanage //$ sudo svnadmin create/home/svn/promanage 3. Configure SVN access modeThere are several ways to access the Subversion file repository, where you access the SVN file repository via the WebDAV protocol, and you need to configure Apache to add the following code to/etc/apache2/mods-available/
MCrypt is a cryptographic extension, in PHP if you want to use this encryption must install the MCrypt extension, let's take a look at Ubuntu laravel hint of the lack of mcrypt extension solution, I hope that the following will help you.
Solutions.
sudo apt-get install Php5-mcrypt
sudo mv-i/etc/php5/conf.d/mcrypt.ini/etc/php5/mods-available
sudo php5enmod mcrypt
Service Apache2 Restart
The method above doesn't know why sometimes it doesn't w
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.