What is Apache HTTP Server?
The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
The Apache HTTP Server (“httpd”) was launched in 1995 and it has been the most popular web server on the Internet since April 1996. It has celebrated its 25th birthday as a project in February 2020.
How to install Apache HTTP Server on openSUSE Linux?
Update zypper packages
1 2 |
## Update zypper packages sudo zypper refresh |
Install Apache Web Server
1 2 |
## Install Apache Web Server sudo zypper install --no-confirm apache2 |
Allow Apache Server on Firewall
1 2 3 |
## Allow Apache Server on Firewall sudo firewall-cmd --permanent --add-service=http --add-service=https sudo firewall-cmd --reload |
Start and enable Apache HTTP Server
1 2 3 |
## Start and enable Apache HTTP Server sudo systemctl start apache2 sudo systemctl enable apache2 |
Test your Apache HTTP Server
1 2 3 4 |
## Test your Apache HTTP Server sudo -i echo "hello world" > /srv/www/htdocs/index.html curl -s localhost # should return hello world |