In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install Ubuntu apache-2.1.11, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Install Ubuntu apache-2.1.11
1. Download
Http://httpd.apache.org/download.cgi
2. Decompress Ubuntu apache
Tar zxvf httpd-2.2.11.tar.gz
3. Establish the target folder
Mkdir / usr/local/apache
In other words, the Ubuntu apache to be installed later will be installed in this folder.
4. Ubuntu apache configuration
Go back to the folder generated after the original decompression
. / configure-prefix=/usr/local/apache-enable-module=shared
Add the following parameters, otherwise you cannot use php
5. Ubuntu apache compilation
Make
6. Ubuntu apache installation
Sudo make install
7. Start, restart and stop
/ usr/local/apache/bin/apachectl-k start
/ usr/local/apache/bin/apachectl-k restart
/ usr/local/apache/bin/apachectl-k stop
8. Configuration file
Gedit / usr/local/apache/conf/httpd.conf
Modify the following configuration (of course, these are the most basic changes, if you want more advanced, refer to other Ubuntu apache configuration manuals)
8.1 、
Find:
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
Add the following:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
8.2 、
Find:
DirectoryIndex index.html
Add:
DirectoryIndex index.html index.php
8.3 、
Find:
# ServerName www.example.com:80
Modified to:
ServerName 127.0.0.1 80 or ServerName localhost:80
Remember to remove the previous "#"
Otherwise, the following error message appears:
Httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
9. Ubuntu apache test
Type http://127.0.0.1 in the browser
If there is an It Works! It means it's successful.
The above is all the contents of the article "how to install Ubuntu apache-2.1.11". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.