In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 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 and run apache2 on the suse operating system, I believe 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 learn about it!
Partners who have used debian or redhat operating systems know that installing apache2 on both operating systems automatically creates a html folder in the / var/www directory.
But oddly enough, this is not the case with the suse operating system, it is created under / srv/www, and the config file for apache2 is divided into several different files.
So there is a bit of content.
Start the apache service
/ usr/sbin/rcapache2 start
As a result, visit the ip address and take a look, 403, access denied
The initial impression is that wwwrun does not have permission to read the file, and then
Ls-la / srv/www/htdocs / srv/www
All show that they have read permissions, so that's not the problem.
After reading the suse forum, there are people who have the same problem as me, and it is also a group of people whose advice doesn't work.
Then I remembered that there was only one package installed when I installed apache2.
Sudo zypper in apache2
Maybe other configuration files have not been downloaded and installed?
(recommended study: php training)
Then took a look at all the installation packages
Sudo zypper se apache2
No matter three, seven or twenty-one, all are installed.
Sudo zypper in apache2 apache2-doc apache2-example-pages apache2-utils apache2-prefork apache2-mod_perl apache2-mod_php5
Start apache2
/ usr/sbin/rcapache start
Open the ip address in the browser, it works!
The above is all the contents of the article "how to install and run apache2 on the suse operating system". 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.