1. First create a private CA for 192.168.108.159#cd/etc/pki/ca# (Umask 077;openssl genrsa-out PRIVATE/CAKEY.PEM 2048)#ls private/#touch Index.txt#echo Index.txt2. Create a self-signed certificate on the server#openssl Req-new-x509-key private/cakey.pem-out cacert.pem-days 73003. Generate a Certificate signing request on the Web server, on the 192.168.108.160 virtual machine#cd/etc/httpd#mkdir SSL#cd ssl/# (Umask 077;openssl genrsa-out httpd.key 1024)/
HTTP IntroductionHTTPD is the main program of the Apache Hypertext Transfer Protocol (HTTP) server. is designed as a stand-alone background process that establishes a pool of child processes or threads that process requests.
HTTPD characteristics
Highly modular: Core+modules
Dso:dynamic Shared ojbect dynamic Add/Unload
Mpm:multi-processing module multi-channel processing modules
Virtual Host: Ip,port,fqdn
CGI: Universal
If there is no httpd service, every start must/usr/local/apache/bin/apachectl start very uncomfortable to say,The httpd is loaded into the service below, and the same can be done with other services.CD/ETC/INIT.D//Switch to this directory to see what system services are checked httpd is not a system serviceSteps to add the Apache service to the system serviceApac
Httpd. conf
Apache main configuration file:/etc/httpd/conf/httpd. confDefault site home directory:/var/www/html/The configuration information of the Apache server is stored in the master configuration file/etc/httpd/conf/httpd. in conf, there are a lot of content in this fil
How to solve httpd startup failure in Linux-Linux Enterprise Application-Linux server application information. Red Hat Linux enterprise 5
Start httpd faild
Linux httpd: httpd starts failed
I encountered this problem in the Virtual Machine. After trying many methods, I couldn't start it. Later I found that the problem
The lamp (Linux-Apache-mysql-PHP) website architecture is currently a popular Web framework, which includes: Linux operating system, Apache network server, MySQL DATA library, perl, PHP, or Python programming language. All components are open-source software and are internationally mature architecture frameworks. Many popular commercial applications adopt this architecture. Compared with the Java/J2EE architecture, lamp features rich web resources, lightweight, and fast development. compared wit
CentOS 6.9(1) Turn off SELinux
Note: If you do not turn off SELinux, there may be unpredictable problems such as forbidden when setting documentroot.
#sed -i ‘s/^SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config`(2) Turn off iptables and add system users
You can also open port 80, which is directly closed for testing convenience
# /etc/init.d/iptables stop# groupadd -r apache# useradd -r -g apache apache(3) Required dependency packages# yum -y groupinstall "De
Advantages and disadvantages of prefork, worker, and event in httpd working mode:
Http service requires a connection between the client and the server. httpd has three working modes: prefork worker event
Advantage: stable services when resources are sufficient
Worker: this is to improve the previous Working Model and let a process multiple responses.
Event: This model allows a process to generate multiple t
One, Perl + mod_perl
Install Mod_perl to make Perl scripts faster
[1] Install Mod_perl # from Epel install [root@linuxprobe ~]# yum--enablerepo=epel-y Install] mod_perl [2] Configure the Perlrun mode, always place the Perl interpreter on RAM. [Root@linuxprobe ~]# vi/etc/httpd/conf.d/perl.conf # line 15: Uncomment (check codes and output warnings to logs) Perlswi Tches-w # line 24: Uncomment Perlswitches-t # line 30-36: Uncomment the same alias/p
Pure Source Compilation installation Lamp,linux,httpd,php,mysql source compilation installationTutorial Goal: Use source code to compile the installed lamp, run the PHP web baseDate : August 19, 2015Contact e-mail:[email protected]Q q Group: 1851 1570151CTO Blog Home: http://990487026.blog.51cto.comBe a blogger responsible for the reader.Install a clean system like mine and I can install it successfully and you can also install it successfully.I can d
1. New Features of httpd-2.4
1) MPM supports loading at runtime;
-- Enable-MPMs-shared = all -- With-MPM = {prefork | worker | event}
2) event MPM supported
3) asynchronous read/write
4) use different log levels in each module and Directory
5) configuration of each request;
6) Enhanced expression Analyzer
7) Keep Alive timeout in milliseconds
8) the FQDN-based VM no longer needs the namevirtualhost command;
9) supports User-Defined variables
10) adde
Environment Description
CentOS 7 x64 4cpu 2G memory in VMware 12The installation of the CentOS 7 compilation installation MySQL-5.7.9, CentOS 7 compilation installation PHP7, and the firewall and open ports are already installed in the environment
Refer to "Configuring Firewalls and open Ports" in the CentOS 7 compilation installation MySQL-5.7.9 to compile the dependencies required to install httpd
DownloadApr-1.5.2.tar.gzApr-util-1.5.4.tar.gzHttpd-
Objective:Location of HTTP in the OSI:In the OSI seven-tier model, HTTP (Hyper Text Tranfer protocol) is located on the seventh tier of the application layer, a protocol that is local to the network host connection, partly based on the TCP protocol at the fourth Transport layer (and the UDP protocol). The TCP protocol is also the IP protocol based on the third layer network layer.The relationship between HTTP and httpdThe Web server that implements the HTTPD
Last year, the use of Tomcat, JBoss configured HTTPS two-way authentication, when the main use of the JDK with the Keytool tool. This time with httpd + OpenSSL, the difference is larger
Search on the Internet a lot of articles, found that the overall introduction is not much, or the version is older. So the process of my configuration is recorded completely for reference
First of all, the content of HTTPS involved is very complex, including a vari
This article refers to Yulaw's "puppet Combat", and get his guidance. Here, thank Yulaw.As mentioned in the previous article, Puppet is used to automatically generate files that are defined on the server by the client.We continue here to define the software that the client needs to install from the server.Here we install httpd for example.On the server side, we need to define the module, we define a httpd m
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.