Categories
linux Technology

Fedora vs Redhat vs CentOS

What’s the difference between Fedora, Redhat and CentOS?

Fedora, Redhat and CentOS all three belongs to Linux family and for non-linux users they seems almost same. Though this is incorrect. Let me shade the light on the thin line between these sapiens.

Fedora is the main project, and it’s a community-based, free distro focused on quick releases of new features and functionality.

Redhat is the corporate version based on the progress of that project, and it has slower releases, comes with support, and isn’t free.

CentOS is basically the community version of Redhat. So it’s pretty much identical, but it is free and support comes from the community as opposed to Redhat itself.

fedora vs redhat vs centos

fedora

– Run by Redhat organisation
– Community driven
– Focused on quick release
– stresses on features and functionalities
– Free

redhat

– Based on Fedora
– Run by Redhat organisation
– Released corporately by Redhat
– Focused on long releases for stability
– Stresses stability over features
– Commercial (non-free)
– Red Hat Enterprise Linux is a subscription product that is developed, maintained, and supported by Red Hat for its subscribers.

CentOS

– Based off of commercial releases of Redhat (distro)
– Run by the community
– Basically Redhat without the cost or support
– CentOS is a community project that is developed, maintained, and supported by and for its users and contributors.

'Coz sharing is caring
Categories
linux PHP

How to Enable and disable phpinfo()

The phpinfo() function is mostly disabled in the shared hosting service due to security reasons. phpinfo()is disabled, as it displays information which can be used to compromise the server. By disabling the phpinfo() one can take a step to secure the server, but it becomes difficult for debugging.

phpinfo()
phpinfo()

Here are steps for enabling and disabling the phpinfo() :-

You want to enable phpinfo

Considering you have access to the server’s php.ini file then edit this file in any editor e.g. vim. Search and change the disable_functions directive from disable_functions = phpinfo to disable_functions =

Considering you don’t have access to your server’s php.ini file (most likely case), you may be able to create your own php.ini file. And change the disable_functions directive that way in your own version of php.ini. If that doesn’t work, learn “How to debug php application with phpinfo() disabled ?

You want to disable phpinfo

Considering you have access to the server’s php.ini file, then change the line that includes the disable_functions directive so that it says disable_functions = phpinfo

Considering you don’t have access to your server’s php.ini file, you may be able to create your own php.ini file and change the disable_functions directive that way. Or, add a line in the application that says

ini_set('disable_functions', 'phpinfo');
'Coz sharing is caring