yum install httpd
<IfModule mpm_prefork_module>
LoadModule cgi_module /opt/freeware/lib/httpd/modules/mod_cgi.so
</IfModule>
AddHandler cgi-script .cgi
#
# STOR2RRD
#
Alias /stor2rrd "/home/stor2rrd/stor2rrd/www/"
<Directory "/home/stor2rrd/stor2rrd/www/">
AllowOverride AuthConfig FileInfo
Options -Indexes
Options FollowSymLinks
AuthType basic
AuthName "STOR2RRD authorization"
Require valid-user
</Directory>
# CGI-BIN
ScriptAlias /stor2rrd-cgi/ "/home/stor2rrd/stor2rrd/stor2rrd-cgi/"
<Directory "/home/stor2rrd/stor2rrd/stor2rrd-cgi">
AllowOverride AuthConfig FileInfo
SetHandler cgi-script
Options ExecCGI FollowSymLinks
AuthName "STOR2RRD authorization"
AuthType basic
Require valid-user
</Directory>
KeepAlive On
KeepAliveTimeout 5
TimeOut 1200
/opt/freeware/sbin/apachectl restart
# su - stor2rrd umask 022 cd /home/stor2rrd/stor2rrd cp html/.htaccess www cp html/.htaccess stor2rrd-cgi
yum install httpd
Alias /stor2rrd "/home/stor2rrd/stor2rrd/www"
#
# STOR2RRD
#
<Directory "/home/stor2rrd/stor2rrd/www/">
AllowOverride AuthConfig FileInfo
Options -Indexes
Options FollowSymLinks
AuthType basic
AuthName "STOR2RRD authorization"
Require valid-user
</Directory>
# CGI-BIN
ScriptAlias /stor2rrd-cgi/ "/home/stor2rrd/stor2rrd/stor2rrd-cgi/"
<Directory "/home/stor2rrd/stor2rrd/stor2rrd-cgi">
AllowOverride AuthConfig FileInfo
SetHandler cgi-script
Options ExecCGI FollowSymLinks
AuthType basic
AuthName "STOR2RRD authorization"
Require valid-user
</Directory>
KeepAlive On
KeepAliveTimeout 5
TimeOut 1200
include conf.modules.d/*.conf
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so #LoadModule mpm_event_module modules/mod_mpm_event.so
apachectl restart
systemctl enable httpd.service
# su - stor2rrd umask 022 cd /home/stor2rrd/stor2rrd cp html/.htaccess www cp html/.htaccess stor2rrd-cgi
firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --add-port=8162/tcp --permanent firewall-cmd --reload
Step 1. Query for the Boolean value you need to change: # getsebool -a | grep httpd_dis httpd_disable_trans --> off Step 2. Disable the SELinux protection: # setsebool -P httpd_disable_trans=1 Step 3. Verify that the Boolean has changed: # getsebool -a | grep httpd_dis httpd_disable_trans --> on
# setenforce Permissive # vi /etc/sysconfig/selinux SELINUX=disabled
# apt-get install httpd
# a2enmod cgi # a2enmod ssl
AddHandler cgi-script .sh
#
# STOR2RRD
#
Alias /stor2rrd "/home/stor2rrd/stor2rrd/www/"
<Directory "/home/stor2rrd/stor2rrd/www/">
AllowOverride AuthConfig FileInfo
Options -Indexes
Options FollowSymLinks
AuthType basic
AuthName "STOR2RRD authorization"
Require valid-user
</Directory>
# CGI-BIN
ScriptAlias /stor2rrd-cgi/ "/home/stor2rrd/stor2rrd/stor2rrd-cgi/"
<Directory "/home/stor2rrd/stor2rrd/stor2rrd-cgi">
AllowOverride AuthConfig FileInfo
SetHandler cgi-script
Options ExecCGI FollowSymLinks
AuthType basic
AuthName "STOR2RRD authorization"
Require valid-user
</Directory>
KeepAlive On
KeepAliveTimeout 5
TimeOut 1200
apachectl restart
systemctl start apache2.service
# su - stor2rrd umask 022 cd /home/stor2rrd/stor2rrd cp html/.htaccess www cp html/.htaccess stor2rrd-cgi
firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --add-port=8162/tcp --permanent firewall-cmd --reload
Step 1. Query for the Boolean value you need to change: # getsebool -a | grep httpd_dis httpd_disable_trans --> off Step 2. Disable the SELinux protection: # setsebool -P httpd_disable_trans=1 Step 3. Verify that the Boolean has changed: # getsebool -a | grep httpd_dis httpd_disable_trans --> on
# setenforce Permissive # vi /etc/sysconfig/selinux SELINUX=disabled
AddHandler cgi-script .sh
#
# STOR2RRD
#
Alias /stor2rrd "/home/stor2rrd/stor2rrd/www/"
<Directory "/home/stor2rrd/stor2rrd/www/">
AllowOverride AuthConfig FileInfo
Options -Indexes
Options FollowSymLinks
AuthType basic
AuthName "STOR2RRD authorization"
Require valid-user
</Directory>
# CGI-BIN
ScriptAlias /stor2rrd-cgi/ "/home/stor2rrd/stor2rrd/stor2rrd-cgi/"
<Directory "/home/stor2rrd/stor2rrd/stor2rrd-cgi">
AllowOverride AuthConfig FileInfo
SetHandler cgi-script
Options ExecCGI FollowSymLinks
AuthType basic
AuthName "STOR2RRD authorization"
Require valid-user
</Directory>
KeepAlive On
KeepAliveTimeout 5
TimeOut 1200
# su - stor2rrd umask 022 cd /home/stor2rrd/stor2rrd cp html/.htaccess www cp html/.htaccess stor2rrd-cgi
firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --add-port=8162/tcp --permanent firewall-cmd --reload
cd /opt/freeware/etc/httpd/logs tail error_log
cd /etc/httpd/logs/ tail error_log
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so #LoadModule mpm_event_module modules/mod_mpm_event.so
KeepAlive On KeepAliveTimeout 5 TimeOut 1200
ps -ef| egrep "httpd|apache"| grep -v grep
firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --add-port=8162/tcp --permanent firewall-cmd --reload