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
$sudovimauthz[groups] admin=admin # Add the Admin user to the admin group [/]@ admin=rw The permissions for the #admin group are read-write *=r # Other permissions are read-only4. Testing[Email protected]:/srv/svn/repos/conf$ sudo svnserve-d-r/srv/svn[email protected]:/srv/svn/repos/conf$ sudo netstat-ANTP | grep svn tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 13900/svnserveDiscovery 3690 Port is started.-D: Run as Daemon-r: Indicates the directory where the repository residesTest by TortoiseSVN
Zend TechnologiesThen load/check php5.load this PHP implementation of the apache2 operation of the module (first, regardless of why, first do so)[Email protected]:~$ cat/etc/apache2/mods-enabled/php5.loadLoadModule php5_module/usr/lib/apache2/modules/libphp5.so---Install MySQL[Email protected]:~$ sudo apt-get install Mysql-serverThis does not need to verify the version, but also to check PHP operation MySQL Module[Email protected]:~$ Cat/etc/php5/
debugging.Enable XdebugFirst, we create a configuration file for Xdebug, Xdebug.ini, here, notice to replace the Zend_extension directory with its own. So directory:zend_extension="/usr/lib/php/20151012/xdebug.so"xdebug.remote_enable = 1xdebug.remote_connect_back = 1xdebug.remote_port = 9000xdebug.max_nesting_level = 500After that, we copy the Xdebug.ini to the/etc/php/mods-available directory.Next, create the corresponding symbolic link in the curre
cd/usr/local/src/go to download Apache directoryTar zxvf httpd-Package name extract ApacheCD httpd extracted directory name into the extracted directoryInstalling Apache./configure--prefix=/usr/local/apache2--enable-mods-shared=most--enable-so Install the Apache process if the Apr and Apr-utilUse this command ./configure--prefix=/usr/local/apache2--with-apr=/usr/local/apr--with-apr-util=/usr/local/ apr-util/--enable-
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
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.