Redhat use CentOS YUM source

As Redhat Enterprise Linux needs to be registered to use the yum source, managed to uninstalled the Redhat yum and installed the CentOS YUM source, 1, uninstall the yum source. # rpm -aq | grep yum|xargs rpm -e –nodeps 2, install the CentOS yum and source. # wget http://mirror.centos.org/centos/6/os/X86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm # wget http://mirror.centos.org/centos/6/os/X86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.i686.rpm # wget http://mirror.centos.org/centos/6/os/X86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm […]

Apache 403 Forbidden error

I added additional folder for browser to access, Apache encountered and returned error: 403 Forbidden, Forbidden You don’t have permission to access /pub/ on this server.   searched the solution, 1, changed the httpd.conf folder access attribute, still not working,  Require all granted 2, changed SELinux, changed two booleans, still not working, ‘httpd_enable_homedirs’ boolean and ‘httpd_read_user_content’ boolean […]

Apache CGI Perl error encountered and resolved

Tested the Apache CGI perl encountered quite a few problem and solved, 1, configure the /etc/httpd/conf/httpd.conf uncomment the line as: AddHandler cgi-script .cgi .pl   get the the access right of the CGI directory, add below lines, <Directory “/var/www/html/cgi”> Options +ExecCGI AllowOverride None Order allow,deny Allow from all </Directory>   Restart the httpd /etc/init.d/httpd restart […]