yum install httpd
<IfModule mpm_prefork_module> LoadModule cgi_module /opt/freeware/lib/httpd/modules/mod_cgi.so </IfModule>
AddHandler cgi-script .cgi # # LPAR2RRD # Alias /lpar2rrd "/home/lpar2rrd/lpar2rrd/www/" <Directory "/home/lpar2rrd/lpar2rrd/www/"> AllowOverride AuthConfig FileInfo Options -Indexes Options FollowSymLinks AuthType basic AuthName "LPAR2RRD authorization" Require valid-user </Directory> # CGI-BIN ScriptAlias /lpar2rrd-cgi/ "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/" <Directory "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi"> AllowOverride AuthConfig FileInfo SetHandler cgi-script Options ExecCGI FollowSymLinks AuthName "LPAR2RRD authorization" AuthType basic Require valid-user </Directory> KeepAlive On KeepAliveTimeout 5 TimeOut 1200
/opt/freeware/sbin/apachectl restart
# su - lpar2rrd umask 022 cd /home/lpar2rrd/lpar2rrd cp html/.htaccess www cp html/.htaccess lpar2rrd-cgi
yum install httpd
Alias /lpar2rrd "/home/lpar2rrd/lpar2rrd/www" # # LPAR2RRD # <Directory "/home/lpar2rrd/lpar2rrd/www/"> AllowOverride AuthConfig FileInfo Options -Indexes Options FollowSymLinks AuthType basic AuthName "LPAR2RRD authorization" Require valid-user </Directory> # CGI-BIN ScriptAlias /lpar2rrd-cgi/ "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/" <Directory "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi"> AllowOverride AuthConfig FileInfo SetHandler cgi-script Options ExecCGI FollowSymLinks AuthType basic AuthName "LPAR2RRD authorization" Require valid-user </Directory> KeepAlive On KeepAliveTimeout 5 TimeOut 1200
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 - lpar2rrd umask 022 cd /home/lpar2rrd/lpar2rrd cp html/.htaccess www cp html/.htaccess lpar2rrd-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 # # LPAR2RRD # Alias /lpar2rrd "/home/lpar2rrd/lpar2rrd/www/" <Directory "/home/lpar2rrd/lpar2rrd/www/"> AllowOverride AuthConfig FileInfo Options -Indexes Options FollowSymLinks AuthType basic AuthName "LPAR2RRD authorization" Require valid-user </Directory> # CGI-BIN ScriptAlias /lpar2rrd-cgi/ "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/" <Directory "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi"> AllowOverride AuthConfig FileInfo SetHandler cgi-script Options ExecCGI FollowSymLinks AuthType basic AuthName "LPAR2RRD authorization" Require valid-user </Directory> KeepAlive On KeepAliveTimeout 5 TimeOut 1200
apachectl restart
systemctl start apache2.service
# su - lpar2rrd umask 022 cd /home/lpar2rrd/lpar2rrd cp html/.htaccess www cp html/.htaccess lpar2rrd-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 # # LPAR2RRD # Alias /lpar2rrd "/home/lpar2rrd/lpar2rrd/www/" <Directory "/home/lpar2rrd/lpar2rrd/www/"> AllowOverride AuthConfig FileInfo Options -Indexes Options FollowSymLinks AuthType basic AuthName "LPAR2RRD authorization" Require valid-user </Directory> # CGI-BIN ScriptAlias /lpar2rrd-cgi/ "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/" <Directory "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi"> AllowOverride AuthConfig FileInfo SetHandler cgi-script Options ExecCGI FollowSymLinks AuthType basic AuthName "LPAR2RRD authorization" Require valid-user </Directory> KeepAlive On KeepAliveTimeout 5 TimeOut 1200
# su - lpar2rrd umask 022 cd /home/lpar2rrd/lpar2rrd cp html/.htaccess www cp html/.htaccess lpar2rrd-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