Apache HTTP Server (Apache) is an open source Web server for the Apache Software Foundation that can run in most computer operating systems due to its cross-platform and security. is widely used, is one of the most popular Web server-side software.
Article Title: Construct an apache LAMP framework. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
LAMP
Puppet3 installation in CentOS6.5 Cluster
Puppet3 installation in CentOS6.5 Cluster
Environment: three hosts,
The IP addresses are 10.211.55.11, 12, and 13 respectively.
Install puppet master on 10.211.55.11
Puppet agent is installed on 10.211.55.11,
Today, I tried to build FOSSologyV2.0. When getting the httpd service, I found that there will always be Restartinghttpd (viasystemctl) Jobfailed at startup. seesystemlogsand 'systemctlstatus' fordetails. search for logs/var/log/httpd/err_log.
1. First, cut apache logs by day
Vi/etc/httpd/conf/httpd. confErrorLog "| rotatelogs/var/log/httpd/% Y % m % derror_log 86400 480"CustomLog "| rotatelogs/var/log/httpd/% Y % m % daccess_log 86400 480" combined
Ii. Restart the apache service
Service
Web service installation configuration under centosThis article mainly uses CentOS 6 series as the operating system to install and configure web Services, and implement virtual users, https, and basic user authentication. Before: OS: CentOS 6.5
Article Title: linux dual-line server configuration. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
China
Note: Turn off the firewall, SELinux VirtualHost Definition: Based on IP address virtualhost:
Edit httpd.conf File:
#DocumentRoot "/web/html" #注释主服务配置
Below to establish a virtual host, if you do not edit the virtual host
1. Introduction to rewrite rulesThe main function of Rewirte is to implement a URL jump, and its regular expression is based on the Perl language. Can be based on both server-level (httpd.conf) and directory-level (. htaccess) methods. If you want
How to install Moodle in Ubuntu)
This is a step-by-step guide on how to install Moodle on Ubuntu 16.04. Moodle (Modular object-oriented dynamic learning environment Modular-object-oriented dynamic learning environment) is a free and open-source
1. Apache logs are recorded by date
In the pache configuration file, findErrorlog logs/error_logCustomlog logs/access_log common
Linux system configuration method:
Change itErrorlog "|/usr/local/Apache/bin/rotatelogs/Home/logs/www/% Y _ % m _ %
Delete a folder in Linux -- RM, rmdir
Deleting a directory in Linux is very simple. Many people are still used to using rmdir. However, once the directory is not empty, it is deeply worried. Now we can use the RM-RF command.You can
Before the start:I want to say that this article is actually a document I learned when I first came into contact with rewrite. It should be reprinted, but I do not want to specify the original address here, the reason is that most of the
1 shell $! , $ ?, $, $ @
• $ N $1 the first parameter, $2 the second...• $ # The number of command-line parameters.• $0 the name of current program.• $? Last Command or function's return value.• $ The program's PID.• $! Last program's PID.• $ @
I found the Apache configuration under Ubuntu on the Internet. because I forgot to write down the original website, I cannot reference the original address. Please forgive me.1) location of the configuration file:
In/etc/apache2/apache2.conf
The
Http service details (2) -- Common settings of httpd2.2 configuration files,
Abstract: A service configuration file is very important. Understanding the configuration file is a prerequisite for mastering the service.1. Introduction to common httpd-2.
1> standard configuration under/etc/vsftpd. conf
# Example config file/etc/vsftpd. conf## The default compiled in settings are fairly paranoid. This sample file# Loosens things up a bit, to make the FTP daemon more usable.# Please see vsftpd. CONF.5
To use the rewrite module, you must first install or load the rewrite module. There are two ways to install the rewrite module directly when compiling apache. The other is to install apache in DSO mode when compiling apache, and then use the source
Implementing code One,
Mypath= "/var/log/httpd/" myfile= "/var/log/httpd/access.log" # Here's the-x parameter to determine if $mypath exists and has executable permissions if [!-X ' $myPath]; Then mkdir "$myPath" fi# here the-d parameter to
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.