Resolve the location where ubuntu comes with Apache and self-compiled and installed Apache
In linux, Apache has a previous management tool: apachectl, which is used to manage the startup, shutdown, and some settings of Apache in the background.
Apachectl -- help
View usage.
Here we can use the apachectl script
After the Apache HTTP server is installed, it is reported that it cannot be started because the parallel configuration of the application is incorrect-(resolved). After apache is installed
Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. You must specify the source when you repost them. Otherwise, you have the right to pursue legal liability for copyright.
Deep Blue blog
[TOC]Apache and PHP combined with Apache default virtual host 11.14 ~11.5 configuration Apcahe (httpd) Support Php1.apache (httpd) Master profile:/usr/local/apache2.4/conf/ httpd.conf, edit the file[[emailprotected] ~]# vim /usr/local/apache2.4/conf/httpd.conf2. Why modify the servername before modifying the configuration file[[emailprotected] ~]# /usr/local/apac
11.14/11.15 Apache and PHP combinedWhen you start httpd, there are warning prompts to define the servername in the configuration file.Vim/usr/local/apache2.4/conf/httpd.confEnter/ServerName search to cancel the previous #, enter/ Php5.so Search will PHP7 or PHP5 commented out, according to the actual situation of the Apache module, I here is the comment PHP5, the comment php7 Restart service will error, bec
Apache module:See what parameters Apache has:/application/apache2.2.34/bin/apachectl
See what modules Apache has installed:/application/apache2.2.34/bin/apachectl-lTracking Apache Process: strace/application/apache2.2.34/bin/apachectl-m
If parsing is slow, open the/etc/hosts/file and add httpd after the f
One, Apache and PHP combined
First open the local Telnet client (test port use)/usr/local/apache2.4/bin/apachectl start //启动apache服务
Modifying the Apache configuration file
Because PHP5 and PHP7 have been loaded before, so here's a close one, run one of themvim/usr/local/apache2.4/conf/httpd.conf//Modification of the following 4 places
Server
One opens the Apache configuration file httpd.conf.
Two will #loadmodule Rewrite_module Modules/mod_rewrite front of the # Remove
Three Add in httpd.conf:
Rewriteengine on
#RewriteCond%{env:script_url} (?: Index|dispbbs) [ -0-9]+\.html
Rewriterule ^ (. *? (?: Index|dispbbs))-([ -0-9]+) \.html$ $1.php?__is_apache_rewrite=1__rewrite_arg=$2
Four to implement the ASP post URL to the PHP post map, in the third step between the Rewritemap toLowerCase Int:t
Configure apache Virtual Machine + software download, apache Virtual MachineStep 1:
Open the httpd. conf file in c:/wamp/apache/conf,
In httpd. conf, press ctrl + f and enter vhosts.
Find the line and remove the # above
Operation
Step 2:
Open the master configuration file of the VM
Httpd-vhosts.conf in c:/wamp/apache
Find your Apache installation directory, the directory of Apache installed for small series
2 Click the Conf folder Enter the configuration directory, locate the httpd.conf file,
3 To open the httpd.conf file, Find 475 rows, or ctr+f find httpd-vhosts.conf Remove the previous # Ps:include conf/extra/httpd-vhosts.conf (this refers to the Apache
The performance is as follows:Apache:1. The Apache service named reported the following error:>>> (OS 5) denied access. : Httpd.exe:could not open error log file D:/xxxx/apache/logs/error.log. .2. The Apache service named reported the following error:>>> Unable to open logs.Mysql:1, Can ' t create test file D:\xxxx\MySQL5.1\data\yyyy.lower-testLet security label
This article is mainly to share with you Apache so that other hosts on the same LAN can access this Apache server method, I hope to help everyone.
Apache2.2 and its previous versions
In the addOrder Allow,denyAllow from all
Apache2.4 version
In the Apache2.4 version of the above settings after the restart Apache will error, the search found that the Apache2.
Apache: configure the virtual host and apache virtual host. Apache configure virtual host, apache virtual host # enable VirtualhostsIncludeconfextrahttpd-vhosts.conf in httpd. conf # then configure in the httpd-vhosts.conf # match according to ip # Vi apache configure virtua
. It does not respond to user requests. It is used to create idle processes or destroy processes.
Httpd: Apche, Apache (Worker Process) Worker Process
It also has its own service script:
/Etc/rc. d/init. d/httpd
Port: (80/TCP), (https: 443/tcp)
The installation directory of the task software is in the/etc/httpd directory;
/Etc/httpd: Working root directory, equivalent to the program installation directory in Windows
/Etc/httpd/conf: configuration f
Using Hadoop to analyze and process data requires loading the data into a cluster and combining it with other data in the enterprise production database. It is a challenge to load large chunks of data from production systems into Hadoop or to get data from map reduce applications in large clusters. Users must be aware of the details of ensuring data consistency, consuming production system resources, and supplying downstream pipeline data preprocessing. Using a script to transform data is ineffi
Turn from: http://hi.baidu.com/pibuchou/blog/item/5cd41315d7a99215962b4334.html
Common compile parameter list
/configure//Configure the Source code tree–PREFIX=/USR/LOCAL/APACHE2//System-independent file top-level installation directory prefix, also on Apache's installation directory.–ENABLE-MODULE=SO//Open so module, so module is used to lift the DSO support of the Apache core module–enable-deflate=shared//Support for Web page compression–enable-exp
Tags: Apache server1. First find the Windows Task Scheduler 2. Periodically call the. Bat program to point to the appropriate action by creating a Windows task schedule1) Back up the MySQL data The. bat code is as follows @echo off
Set "ymd=%date:~,4%%date:~5,2%%date:~8,2%"
e:/appserv/mysql/bin/mysqldump--opt-u root--password =password testdb > E:/db/testdb_%ymd%.sqlGeneral settings 1 days to back up the database once, notice that the trigger need
One: Apache restricts a directory against parsing PHPA directory is forbidden to parse PHP, this is very useful, we do the site security, this use a lot of, such asSome directories can upload files, in order to avoid uploading files have xxx, so we prohibit this directory under the Access solutionAnalysis of PHP.Php_admin_flag engine offOrder Deny,allowDeny from allDescription: Php_admin_flag engine off this statement is to prohibit parsing of PHP con
Cainiao O M notes: install and configure the Apache server, apache
A few days ago, I spent 49.5 yuan on a month's host in Alibaba. Try again.
Region: Qingdao
ZONE: Qingdao Zone
CPU: 1 core
Memory: 512 MB
Bandwidth: 1 Mbps
Operating System: CentOS 6.5 64-bit
Yundun: Yes
Install the apache server
2014/10/27Apache download package
Http://mirrors.hust.e
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.