Kurinchi Blogger Scribbles …


Posts Tagged ‘SELinux’

Oct 15
2011

Linux: How to list or allow access to ports ?

Last updated: November 15th, 2011

SELinux is a feature that may be turned on certain servers and it can restrict access to certain ports. In order to gain access and make the ports work, you need to open those ports.

To see if SELinux is set, type

$ sestatus

To list all port, try the semanage command

$ semanage port -l

To check for a specific port that is opened

$ semanage port -l | grep 8085

To allow access to a specific port

$ semanage port -a -t http_port_t -p tcp 8085

Aug 02
2009

MediaWiki: The requested URL /index.php/Main_Page was not found on this server

Last updated: July 29th, 2009

Some possible solutions to this problem:

i) Check if .htaccess file is making any redirections

ii) Check if /LocalSettings.php have any invalid reference to root

ii) If you have freshly installed the server, check if AppArmor or SELinux is installed on the machine. If it is try to remove those software and try you website url.

To remove appArmor follow the below steps:

$ /etc/init.d/apparmor stop
$ update-rc.d -f apparmor remove
$ apt-get remove apparmor apparmor-utils

Apr 17
2009

SELinux – Security Enhanced Linux

Last updated: April 16th, 2009

How to find the status of SELinux?
$ cat /selinux/enforce

The above command will print 0 or 1 which means,
0 – permissive mode
1 – enforcing mode (more…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict