]# CD Httpd-2.2.16[[email protected] httpd-2.2.16]#./configure--prefix=/usr/local/apache2-- Enable-mods-shared=most--enable-soCompile[[email protected] httpd-2.2.16]# make make installCheck that the installation is successful (the command is appropriate for all, 0 indicates successful installation)[Email protected] httpd-2.2.16]# echo $?0View information[Email protected] httpd-2.2.16]# ls/usr/local/apache2/bin cgi-bin error icons lib man modulesbuild
The relevant IP settings used in this tutorial should be modified in your environment.Update apt-get before using because the server is basically a bare systemApt-get Update;Apt-get upgrade; 1 We use the root account to install, first switch to the root account, enter the command: sudo su
2 Installing MySQL 5 Enter command:Apt-get Install Mysql-server mysql-clientThe root account password needs to be set during installation and the following prompts are made:New password for the MySQL "root" us
Yesterday put Ansible-tower installed on this machine, and then the original Nginx occupied, forcing the Zabbix of the Web into Apache, the source code installed on Apache and recompile PHP, this PHP error appears.Change the session path of the php.ini, and then change the Session Directory recursion permission to 777, then restart PHP and Apache.Attached to the Zabbix of the Apache and PHP source specified by the module./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2.4/bin/apxs
Apache is the name of a foundation, HTTPD is the package that we want to install, earlier its name is ApacheApache official website www.apache.orgwget http://mirrors.cnnic.cn/apache/httpd/httpd-2.4.26.tar.gzwget http://mirrors.hust.edu.cn/apache/apr/apr-1.5.2.tar.gzwget http://mirrors.hust.edu.cn/apache/apr/apr-util-1.5.4.tar.gzApr and Apr-util are a common library of functions that allow httpd to be easily ported (from Linux to Windows) and 2.4 dependent on APR, without caring for the underlyin
already guess:
Apt-get install Nginx An order, buttoned up. When configured, set up the corresponding configuration file in the/etc/nginx/sites-enabled/with Apache/etc/apache2/sites-enabled/and restart the nginx. Configuration file Example:
code is as follows
copy code
Server { Listen 80; server_name lamp.xehost.com; Access_log/var/log/nginx/access.log; Location/{ Proxy_redirect off; Proxy_set_header Host $host; Proxy_set_header x-real-ip $remote _addr
loading--enable-rewrite \ Start rewrite support--enable-mods-shared=most \ Enable Module--with-mpm=worker \ Enable Multithreading--disable-cgid \--DISABLE-CGI Universal Gateway InterfaceAfter the Software configuration module is installed, use make to format the conversion, so that the configuration file into binary can be recognized by the system executionThen use make install to perform the installation of the software compilation environmentThen u
Apache Configuration Wsgi What is WsgiWsgi is called the Web server gateway interface, in the author's view is actually based on the CGI standard for the Python language to make some improvements, its main function is to standardize the Web server and PYTHONJ application interaction between the way, for Python in web development to provide convenience. About WSGI native development you can read the first link in the Reference section. This article explains how to configure WSGI so that the Apach
Tag: Compile and install ApacheExperiment Preparation
Lab environment: Red Hat Enterprise 6.5
Packages: Apr, Apr-util, httpd
Remarks: Apache official website Download http://www.apache.org/Download the required packages for the experiment and unzip to the specified folder to start the experimentFirst copy the extracted Apr and Apr-util to the designated folder.cp -R cp -R apr /opt/httpd-2.4.2/srclib/aprcp -R apr-util /opt/httpd-2.4.2/srclib/apr-utilInstall the build environment (
avoids polluting the Glo Bal namespace. It can explicitly list its dependencies and get a handle in those dependencies without needing to refer to global objects, But instead receive the dependencies as arguments-to-the function that defines the module. Modules in Requirejs is an extension of the Module Pattern, with the benefit of not needing globals to refer to other mods Ules.The REQUIREJS syntax for modules allows them to being loaded as fast as
. Configuration
./configure \--prefix=/usr/local/apache \--ENABLE-SO \--enable-rewrite \--enable-mods-shared=most \--with-mpm=worker \--disable-cgid \--disable-cgi
6. Compiling and installing
Make make install
7. Filter out the comment lines (#) and copy the httpd service file to/etc/init.d/
Grep-v "#"/usr/local/apache/bin/apachectl >/ETC/INIT.D/HTTPD
8. Modify the configuration file vim/etc/init.d/httpd inse
1. Connect to SVN server
2. Switch to root user
3. Switch to SVN root directory
4. Create SVN directory
5. Authorize Apache to read and write directory permissions
6. View the test directory
Directory Description: Conf: Related configuration, commonly used passwd, used to store user information, username and encrypted password.
7. Add User and password
The "test" in the figure indicates the SVN directory you created, and "test" is the user name, changing according to the actual situation. Note
The server-side system is Ubuntu 14.04To modify the root directory:modifying 000-default.conf in/etc/apache2/sites-availableThe documentroot/var/www/in is modified to the desired directoryFor example: Documentroot/var/www/html/mainpage
Next restart Apache,sudo apache2ctl-k restart
To modify the default Web page:Modify the contents of the/etc/apache2/mods-available/dir.confThe original is:
Add the desired/wordpress on the line ~
First download the required installation package before starting the operation.
apache2:http://httpd.apache.org/download.cgi
Apr and apr-util:http://apr.apache.org/
tomcat7:http://tomcat.apache.org/download-70.cgi
Jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
When things are ready, start compiling and installing.
First, the compilation of APR
TAR-ZXVF apr-1.5.0.tar.gzCD apr-1.5.0./configure–prefix=/usr/local/apr-httpd/MakeMake install
Second, com
a file, called passwd, used to store user name and password.Then authorize this version of the warehouse directory to Apache Read and write:sudo chown-r www-data:www-data/directory AddressThen come to open the Apache configuration file:sudo gedit/etc/apache2/mods-available/dav_svn.conf
Add the following content:
DAV SVNSvnpath/home/svn/projectAuthType BasicAuthName "MyProject Subversion repository"authuserfile/home/svn/project/conf/passwd# Require
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.