Tuesday, March 19, 2013

Which Linux distribution we choose Centos or Fedora

There are many different versions of Linux, and unlike other commercial operating systems that are controlled, distributed and supported by only one company, the core of Linux is free to distribute and use. This creates a situation in which numerous companies, organizations and individuals have developed their own specific version of the Linux operating system. When these versions are made publically available for use, they are known as “distributions”.

Monday, March 11, 2013

Centos 6.3 Screen resolution - GUI not fit for default resolution and we not able to change it. No other option available in screen display settings



Centos screen resolution - GUI not fit for default resolution and no other option was in screen display settings.
Remove xorg.conf file having resolution setting. Follow below steps:
  1. Go to /etc/x11/ 
  2. Remove xorg.conf file
  3. Reboot System
When system starts and comes to gui. Now go to screen display settings. All other options for screen resolution will be visible now. We can set it now.
 

Saturday, March 2, 2013

Set selinux to allow Apache and Samba on the same folder



First off, you can view the context of something with ls using ls -Z
[root@servername www]# ls -dZ /var/www/html
drwxr-xr-x  root root system_u:object_r:httpd_sys_content_t /var/www/html
 
Second, there are two options for giving Samba and Apache access to the same directory.
The simple way is to just allow samba read/write access everywhere with:

PHP files not working after LAMP (linux, PHP, Mysql, Installation) Add entries in IPtable for port 80 and 443

After successfully installing PHP, Mysql, Apache if still you are not able to execute php files. You need to check firewall settings on server. Check entries in iptable and allow access to port 80 and 443

open /etc/sysconfig/iptables

Add below lines :
# Allow traffic on port 80 (HTTP traffic)
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
#Allow traffic on 443 (HTTPS traffic)
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT


 Save and restart apache.

Try to run now your php files in browser it will work.

How to configue screen resolution after centos/linux installation if no option to change resolution

Sometimes after Centos installation screen resolution creates issue as you will not be able to view full window and configuration options tabs will be hidden.

The simplest way to sortout this issue is delete xorg.conf file.

Follow belwo steps :
  1. Navigate /etc/XII/ directory
  2. Remove or rename xorg.conf configuration file
  3. Restart the system (Type init 6 in terminal)
After restart system will automatically open configuration screen for set screen resolution.. You can select according to your choice.

Monday, January 21, 2013

Run web pages or console to be served via common HTTP or HTTPS that runs on port 80 and port 443 with Skype

Many developer face problem when they run http apache in xampp,wamp and  skype conversation tool simultaniously. You can not run both at a time because skype also uses port 80 and 443 as alternatives for incomming connections.

In oeder to solve this issue and run  both web pages or console to be served via common HTTP or HTTPS that runs on port 80 and port 443 and Skype you need to change configuration setting for listning post in either webserver or skype.

Linux command for starting samba service

Samba is a suite of utilities that allows your Linux to share files and other resources, such as printers, with Windows.

In order to start/stop samba service on linux machine you need use following commands -

To start :    /etc/init.d/smb start

To Stop :   /etc/init.d/smb stop

To Restart : /etc/init.d/smb restart