How to install Apache2 http server on SUSE
Install
- connect to your site using ssh
- Elevate privileges to root using the
sucommand - In the terminal type
yum -y install httpdto install apache - This should install the program if there are any errors search the Apache2 site
Configure
- If you try starting now you may get an error about an
include.confto correct comment out the lineInclude /etc/apache2/sysconfig.d/include.confin/etc/apache2/httpd.conf. You do this by adding a#sign in front of the line. - go to
/usr/sbin/and starthttpd2
Create First Page
- To do this all you need to do is add a file named
index.htmlto the/srv/www/htdocs/folder
上一次變更: 2016/05/31 10:23 (外部編輯)