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
here are two parameters to note:
AutoLoad: Whether to load the underlying core library –{optional parameters when loading in.js –truefalse}Core: path to the underlying core library –{optional Parameters –url}
If the core is set and Autoload=true, the core is loaded into the page while the in.js is introduced.
B. Declaring addresses and dependencies for each module in.add (Name,{config})
1
2
3
In.add ("Mod-a", {path: "Mods/a.js",
-mysql.Preparing to unpack .../php-mysql_1%3a7.0+35ubuntu6_all.deb ...Unpacking Php-mysql (1:7.0+35UBUNTU6) ...Processing triggers for libapache2-mod-php7.0 (7.0.18-0ubuntu0.16.04.1) ...Processing triggers for PHP7.0-FPM (7.0.18-0ubuntu0.16.04.1) ...Setting up Php7.0-mysql (7.0.18-0ubuntu0.16.04.1) ... Creating config File/etc/php/7.0/mods-available/mysqlnd.ini with new version Creating config File/etc/php/7.0/mod
$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
-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
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.