In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
Today, I would like to share with you the relevant knowledge points about how to install and configure the Lighttpd Web server under CentOS. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
Os: centos release 5.5
Lighttpd: 1.4.28
Installation
Sudo yum install lighttpd.i386 lighttpd-fastcgi.i386 lighttpd-mod_mysql_vhost.i386
Running
Check the configuration file
Lighttpd-t-f lighttpd.conf
Start the lighttpd service
Lighttpd-d-f lighttpd.conf
End the lighttpd service
Ctrl+c
Or use linux's system service to start and stop the lighttpd service
/ etc/init.d/lighttpd start/stop/restart
test
Create a file, index.html, under the / srv/www/lighttpd directory, as follows:
Hello lighttpd!
Then visit: http://localhost/index.html
Configure php support
Edit the / etc/lighttpd/modules.conf file to remove the comments before the following line
Include "conf.d/fastcgi.conf"
Edit the / etc/lighttpd/conf.d/fastcgi.conf file and add the following lines
Code:
Fastcgi.server = (".php" = >
("localhost" = >
(
"socket" = > "/ tmp/php-fastcgi.socket"
"bin-path" = > "/ usr/bin/php-cgi"
)
)
)
Create a file, test.php, under the / srv/www/lighttpd directory, as follows:
Code:
Then visit: http://localhost/test.php
These are all the contents of the article "how to install and configure Lighttpd Web server under CentOS". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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.