ERROR: “/lib/cpp” fails sanity check

Dedicated Server Hosting, Linux VPS Hosting 1 Comment »

ERROR:

Recently while running “./configure” while installing a component on a Server I got following Error.

checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... unsupported
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[root@server1 ]#

_
SOLUTION:

I have checked and found that gcc and cpp modules are already installed on the server. This can be checked using command “rpm -qa | grep gcc” “rpm -qa | grep cpp“. I have searched on many websites and found that glibc-headers were not installed on the server. I have installed glibc-headers using command “yum install glibc-headers“. If you face this problem please make sure that following components are installed on the server:

1) GCC and GCC-C++

[root@server1 ~]# rpm -qa | grep gcc
gcc-c++-4.1.2-42.el5
compat-gcc-34-c++-3.4.6-4
libgcc-4.1.2-42.el5
gcc-4.1.2-42.el5
compat-gcc-34-3.4.6-4
compat-libgcc-296-2.96-138
gcc-objc-4.1.2-42.el5
compat-gcc-34-g77-3.4.6-4
gcc-objc++-4.1.2-42.el5
[root@server1 ~]#

_

2) CPP

[root@server1 ~]# rpm -qa | grep cpp
cpp-4.1.2-42.el5
[root@server1 ~]

_

3) GLIBC, GLIBC-DEVEL and GLIBC-HEADERS

[root@server1 ~]# rpm -qa | grep glibc
glibc-2.5-24
glibc-headers-2.5-24
compat-glibc-headers-2.3.4-2.26
glibc-common-2.5-24
glibc-devel-2.5-24
compat-glibc-2.3.4-2.26
[root@server1 ~]#

_

How can I change my user-account password from a remote computer?

Dedicated Server Hosting, Windows VPS No Comments »

You can change a Windows User Account password that is on any Windows computer from any other Windows computer regardless of whether the User Account is on a workstation, a stand-alone server, or a Windows domain controller. Additionally, it makes no difference whether the password being changed from a workstation, a stand-alone server, or a Windows domain controller. This is true for any NT 4.0, W2K, XP Pro and Windows Server 2003 computer.

You do not have to be logged on from the User Account Database that contains the Username, and you do not have to be currently logged on with that Username. This procedure is especially useful if you want to change your password in a User Account Database or security accounts manager that is not in your default logon domain.

To change your password:

1.Press CTRL+ALT+DEL to bring up the Windows Security dialog box.
2.Press the Change Password button.
3.Enter the User name whose password you wish to change.
4. In the From dialog box, click either the computer name or domain name in the drop-down list box, or type the computer name or domain name that contains the User Account Database where the user name exists.
5. Type the appropriate password in the Old Password, New Password, and Confirm New Password box.

You should receive a message indicating “Your password has been changed.”

This procedure is allowed even if the User Right “Access this computer from network” is disabled for the group Everyone. Changing a password does not use resources on the server. The ability to change a password without requiring the user to be logged on allows a user to change his or her password outside of the user’s logon hours, or when the password has expired and the user is not able to log on.

How do I create a new user account on windows 2003?

Dedicated Server Hosting, VPS hosting, Windows VPS No Comments »

How do I create a new user account on windows 2003?

Even if you will not be using Terminal Services or have any other users using your server it is ALWAYS recommended to create an additional two (2) users, apart from Administrator. These two users are - another member of the “Administrators” group (to avoid actually logging on with the Administrator account, but you have the same privileges) AND a regular user, who is part of the “Users” group. It is recommended to only log on with the regular user, and use the “runas” command when you need to run a program as an Administrator, and to only log on with the secondary Administrator user when it is absolutely needed. This will show you how to create a secondary Administrator.

>>>>>>>>

Click the Start button, then Run…

Then type lusrmgr.msc

In the window that opens, right click in the right panel and click “New User”

In the New User dialog, type in your new user name and password (this will be our secondary Administrator account). Uncheck User must change password, and check Password never expires

Now, right click the new user and click Properties in the pop up menu

Go to the “Member of” tab and press the Add button

Type Administrators, then press the Check Names button (to complete the name, it will add the name of your computer) and press OK when it is done, then press OK on the Local Users and Groups dialog

We now have a secondary Administrator account! To have a regular user (highly recommended) do the same as above, until the User properties.

Windows 2003 Advanced TCP/IP settings

Dedicated Server Hosting, Windows VPS No Comments »

Here is the “Advanced TCP/IP settings” article for windows users..

Advanced TCP/IP settings :-

The Advanced TCP/IP dialog will allow you to configure settings relative to DNS, WINS and specify multiple IP Addresses and Gateways. To bring up the Advanced TCP/IP Settings dialog, simply right click the desired connection from the Network Connections folder, and choose properties to open the Properties dialog of the selected connection. Now select Internet Protocol (TCP/IP) from the list and click the Properties button. This will open the Internet Protocol (TCP/IP) Properties dialog. Next, click the Advanced button and up pops the Advanced TCP/IP Settings dialog with four tabs to choose from:

IP Settings allows you to add more IP Addresses or change the routing properties of the network card.

DNS allows you to set how the TCP/IP connection uses DNS.

WINS allows you to set how the TCP/IP connection uses WINS for computers that can not access Active Directory.

Options allows you to set TCP/IP Filtering and specify which ports will be used for TCP/IP communication.

The IP Settings Tab : -

The IP addresses box at the top allows you to assign additional IP Addresses to a single network card. This is useful if you are hosting multiple websites on the same web server and want to give each its own IP Address for example.

Simply click the Add button to add an IP Address and Subnet Mask. Click Edit to modify the currently selected item and Remove to delete the currently selected item from the list.

The Default gateways box in the middle is used if you want the network connection to use multiple default gateways. Click the Add button to add a Default gateway and assign it a Metric value. A metric value is the cost of a specific route. Cost can reflect speed, reliability and number of hops. The route with the lowest metric value is used, so if you have two Default Gateways set up, one with a metric of 10 and the other with a metric of 20, the one with 10 will be chosen first. Leaving the metric at automatic means that the route metric for this default gateway will be calculated automatically, and the fastest route chosen.

The Edit and Remove buttons in the Default gateways box do exactly the same as for the IP addresses box.

At the bottom of the IP Settings tab you can set whether you want the Interface to have a specific metric or to be assigned one automatically. By default this option is checked. Uncheck it if you wish to input an Interface metric value of your choice.

The DNS Tab : -

The “DNS server addresses, in order of use box” at the top of the DNS tab is used to list the IP Addresses of the DNS Servers that will be used for name resolution. These servers are ordered and used in priority, so if one server does not work then it will move to the next one down the list. To set the order of IP Addresses, select an IP Address and press the up and down button on the right hand side.

It is important to keep in mind that TCP/IP will not move on to the next server if it fails to resolve the request. It will only move to the next server if the first server it tries is unavailable (perhaps down for maintenance or in the middle of a reboot).

Append primary and connection specific DNS suffixes, and Append parent suffixes of the primary DNS suffix are enabled by default. These options are used for resolution of unqualified names.

The first option is used to resolve unqualified names using the parent domain. For example, if you had a computer name of test and a parent domain called trulymanaged.com it would resolve to test.trulymanaged.com. The query would fail if test.trulymanaged.com does not exist in the parent domain. The second option is used to resolve unqualified names using the parent-child domain hierarchy. A DNS query will move one step up the domain hierarchy if it fails at the current level. It will do this until it reaches the root of the hierarchy.

The textbox on the right of the DNS suffix for this connection is used to explicitly set a DNS suffix that will override any other setting already specified for this connection.

Register this connections addresses in DNS will register all this connections IP Addresses in DNS under the computers FQDN. Using this connections DNS suffix in DNS registration will register all IP Addresses for this connection in DNS under the parent domain.

The WINS Tab : -

The WINS tab is used to specify WINS related settings such as the list of WINS servers to be used for NETBIOS name to IP resolution, the LMHOSTS file to be used as an alternate means of lookups and the NETBIOS settings for the network connection.

Use the “WINS addresses, in order of use box” at the top to add the WINS servers you want the system to use for IP to name resolution. Press the Add button for a small dialog box to appear waiting for you to enter the IP Address of the WINS server. Use the Edit and Remove buttons to modify or delete a selected item respectively. If you have more than one WINS server in the list, press the up and down arrow buttons to adjust the priority of which servers will be queried first. If one server is not available then the next one down will be used, and so on and so forth.

Check the Enable LMHOSTS lookup checkbox so that if WINS cannot resolve a name then the local LMHOSTS file will be used. The LMHOSTS file can be found in \WINDOWS\system32\drivers\etc. It goes by the name of lmhosts.sam and can be modified in a text editor. Entries are placed at the bottom of the file and when used, the listed IP Addresses are matched against a specified host name. If you already have an LMHOSTS file defined on another machine on the network, use the Import LMHOSTS button to select this file and import it to the local machine.

The NETBIOS settings at the bottom allow you to explicitly define how NETBIOS will be used on the system. Choose Default if you want the DHCP server to assign the NETBIOS setting, Enable NETBIOS over TCP/IP if you use a static IP Address or the DHCP Server does not give NETBIOS settings, and Disable NETBIOS over TCP/IP if you do not use NETBIOS or WINS on your network.

The Options Tab (TCP/IP Filtering) :-

The Options tab allows you to configure TCP/IP Filtering settings; you can define which ports or protocols are permitted. Select the Permit Only radio button and use the Add button to add TCP/UDP port numbers or a protocol version to the respective list. If you permit traffic only from a defined set of ports, all other traffic will be dropped.

DNS Concepts

Dedicated Server Hosting 1 Comment »

What this is and isn’t …

DNS is the Domain Name System. DNS converts machine names to the IP addresses that all machines on the net have. It translates (or “maps” as the jargon would have it) from name to address and from address to name, and some other things.

A mapping is simply an association between two things, in this case a machine name, like ftp.linux.org, and the machine’s IP number (or address) 199.249.150.4. DNS also contains mappings the other way, from the IP number to the machine name; this is called a “reverse mapping”. Fortunately DNS isn’t really that hard, this blog will try to make a few things clearer. It describes how to set up a simple DNS name server, starting with a caching only server and going on to setting up a primary DNS server for a domain.

Before you start on this you should configure your machine so that you can telnet in and out of it, and successfully make all kinds of connections to the net, and you should especially be able to do telnet 127.0.0.1 and get your own machine (test it now!). You also need good /etc/nsswitch.conf, /etc/resolv.conf and /etc/hosts files as a starting point, let me give a small idea about these files :)

1) The /etc/nsswitch.conf file is used to configure which services are to be used to determine information such as hostnames, password files, and group files.

2) resolv.conf : Name resolution means translating a string such as ‘gateway.enterprise.net’ into an IP address such as 194.72.194.1. When your machine is connected to the Internet, you need to be able to do this for addresses all over the world.

You do this through the Internet’s Domain Name Service, which is a decentralized system for address translation. You will not usually run a nameserver yourself, unless you are managing extensive sub-networks. The nameserver is run by your ISP.

You have to tell your software where to find the name servers. This is done in /etc/resolv.conf, which looks like this:

domain trulymanaged.com
nameserver 208.164.186.1
nameserver 208.164.186.2

The domain is your own domain name, corresponding to the suffixes in /etc/hosts. The nameservers are the primary and secondary nameservers of my ISP, Enterprise plc. The IP addresses are specified, rather than the names, because you would need a nameserver to translate the names to IP addresses. If you try to use an address which is not in your local domain, the name resolver will ask the primary nameserver for its IP address. If that fails, it will try the secondary nameserver before giving up.

3) /etc/hosts: As your machine gets started, it will need to know the mapping of some hostnames to IP addresses before DNS can be referenced. This mapping is kept in the /etc/hosts file.

When I say `your machine’ I mean the machine you are trying to set up DNS on, not any other machine you might have that’s involved in your networking effort. Name serving on Unix is done by a program called named. This is a part of the “BIND” package which is coordinated by The Internet Software Consortium. Named is included in most Linux distributions and is usually installed as /usr/sbin/named, usually from a package called BIND.

If you have a named you can probably use it otherwise please install bind 8 or 9 module. You can check installed bind version, if the named man page talks about (at the very end, in the FILES section) named.conf you have BIND 8; if it talks about named.boot you have BIND 4. If you have 4 and are security conscious you really ought to upgrade to the latest version of BIND 8 Nnw. DNS is a net?wide database. Take care about what you put into it. If you put junk into it, you, and others, will get junk out of it. Keep your DNS tidy and consistent and you will get good service from it. Learn to use it, admin it, debug it and you will be another good admin keeping the net from falling to its knees by mismanagement.

make: *** [libavdevice/v4l.o] Error 1

Dedicated Server Hosting, Linux VPS Hosting No Comments »

ERROR:

While installing FFMPEG on a server when we run “make” after “./configure” it gives following error:

math-errno       -c -o libavdevice/v4l.o libavdevice/v4l.c
In file included from libavdevice/v4l.c:32:
/usr/include/linux/videodev.h:56: error: syntax error before "ulong"
/usr/include/linux/videodev.h:72: error: syntax error before '}' token
libavdevice/v4l.c: In function `grab_read_header':
libavdevice/v4l.c:77: error: storage size of 'tuner' isn't known
libavdevice/v4l.c:141: error: invalid application of `sizeof' to incomplete type `video_tuner'
libavdevice/v4l.c:148: error: invalid application of `sizeof' to incomplete type `video_tuner'
libavdevice/v4l.c:77: warning: unused variable `tuner'
make: *** [libavdevice/v4l.o] Error 1

_

SOLUTION:

This problem can be fixed by disabling v41 and v42 for FFMPEG. This can be done when we run “./configure” for FFMPEG

./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --disable-demuxer=v4l --disable-demuxer=v4l2

_
Once this has been completed run “make” and “make install” to install FFMPEG.

Getting 404 error to “jsp” pages, even though Tomcat was auto-configured by [WHM/cPanel] installation

Dedicated Server Hosting, Linux VPS Hosting No Comments »

Error
Apache Web Server was not passing servlet requests to Apache Tomcat. It served 404 errors to jsp pages, even though the Apache Tomcat was auto-configured by the WHM / Cpanel installation.

SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base ççç does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)

Cause
This was occurring because Tomcat could not read from the “public_html” directory for the site. This was a result of file protect being enabled in easyapache. This option causes all public_html directories to be owned by the user and the group nobody, leaving all other users unable to index those directories. Unfortunately this leaves tomcat, which runs as the user tomcat, unable to access those files as well.

Solution
It should be addressed by executing following script.

/scripts/disablefileprotect

Restart Tomcat service

/scripts/restartsrv_tomcat

Issue Fixed, now “jsp” pages works fine.

Enjoy :)

How to login webmail directly without acessing cPanel?

Dedicated Server Hosting, Linux VPS Hosting, linux No Comments »

How to login direct using “webmail.domain.com” in to Squirrelmail or Horde of any account?

First you need to create a subdomain that you want to redirect to your preferred Webmail client [Squirrelmail /Horde].

Following are the steps to create subdomain.

1. Login in to your cPanel interface.

2. Select the Subdomain option, and create the subdomain. (For eg: webmail.domain.com)

3. Once it has been created, go to the File Manager option of the cPanel.

4. Change path to “public_html” by selecting the folder image beside the text “public_html”

5. Now change the path to folder that was create by your subdomain. (as per our example it would be the “ebmail” folder)

6. Once inside this directory webmail you will see “.htaccess” file, if it’s not there then you need to create it manually.

* If it is not there then create new using below steps : (if it already exists proceed to step 10)

7. Create it [.htaccess] by selecting the “Create New File” option.

8. A menu appears in the top right corner of the File Manager interface. Choose “Text Document” and name it “.htaccess” [without quotes]

9. Now refresh File Manager and you will then see your new file [.htaccess] in the listing of that directory.

10. Click on the text title for the .htaccess file on the left side of the screen and a menu appears in the top right of the screen.

11. Choose the “Edit File” option, a new window opens.

12. Add the following lines:

If You Want To Redirect “webmail.domain.com” to the Squirrel Mail Client

RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$
RewriteRule ^(.*)$ http://domain.com:2095/3rdparty/squirrelmail/index.php$1 [R=301,L]


If You Want To Redirect “webmail.domain.com”to the Horde Webmail Client

RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$
RewriteRule ^(.*)$ http://domain.com:2095/horde/$1 [R=301,L][/QUOTE]


NOTE
:-
replace “domain.com” above with your actual domain name.
Enjoy Direct Webmail Client Login.

enter VE failed: Unable to open pty

Dedicated Server Hosting No Comments »

Getting error accessing VPS through SSH:

 enter VE failed: Unable to open pty




 enter VE failed: Unable to open pty

Difference Between MSSQL Server 2005 Express, Standard and Work group Edition

Dedicated Server Hosting, VPS hosting, Windows VPS No Comments »

Difference Between MSSQL Server 2005 Express, Standard and Work group Edition

MS SQL 2005 Express Edition features are as follows :

* CPU : No
* 1 GB max memory limit for buffer pool : Yes
* 4GB max database size : Yes
* SQL Server Agent : Yes
* Full Text Search : Yes
* IMPORT/EXPORT : No
* Basic Integration Services : No
* Advanced Integration Services : Yes

MSSQL 2005 Standard Edition features are as follows :

* CPU : Yes
* 1 GB max memory limit for buffer pool : No
* 4GB max database size : No
* SQL Server Agent : Yes
* Full Text Search : Yes
* IMPORT/EXPORT : Yes
* Basic Integration Services : Yes
* Advanced Integration Services : Yes

MSSQL 2005 Workgroup Edition features are as follows :

* CPU : Yes
* 1 GB max memory limit for buffer pool : No
* 4GB max database size : No
* SQL Server Agent : Yes
* Full Text Search : Yes
* IMPORT/EXPORT : Yes
* Basic Integration Services : No
* Advanced Integration Services : No

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in