human choroinic gonadotropin

Archive for October, 2011


 Powered by Max Banner Ads 

Install mod_Security in Centos

Thursday, October 27th, 2011

below is the steps to install Mod_security in Centos Linux server

1-    # yum install mod_security

2- you should see the below

Loaded plugins: downloadonly, fastestmirror, priorities, protectbase
Loading mirror speeds from cached hostfile
 * epel: www.gtlib.gatech.edu
 * base: mirror.skiplink.com
 * updates: centos.aol.com
 * addons: mirror.cs.vt.edu
 * extras: mirror.trouble-free.net
0 packages excluded due to repository protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mod_security.x86_64 0:2.5.9-1.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================
 Package                                  Arch                               Version                                   Repository                        Size
==============================================================================================================================================================
Installing:
 mod_security                             x86_64                             2.5.9-1.el5                               epel                             935 k
Transaction Summary
==============================================================================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 935 k
Is this ok [y/N]: y
Downloading Packages:
mod_security-2.5.9-1.el5.x86_64.rpm                                                                                                    | 935 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mod_security                                      [1/1]
Installed: mod_security.x86_64 0:2.5.9-1.el5
Complete!
vi /etc/httpd/modsecurity.d/modsecurity_crs_10_config.conf
make sure this is one
SecRuleEngine On
service httpd restart
tail -f /var/log/httpd/error_log
simple out put
[Sat May 09 23:18:31 2009] [notice] caught SIGTERM, shutting down
[Sat May 09 23:18:33 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat May 09 23:18:34 2009] [notice] ModSecurity for Apache/2.5.9 (http://www.modsecurity.org/) configured.
[Sat May 09 23:18:34 2009] [notice] Original server signature: Apache/2.2.3 (CentOS)
[Sat May 09 23:18:34 2009] [notice] Digest: generating secret for digest authentication ...
[Sat May 09 23:18:34 2009] [notice] Digest: done
[Sat May 09 23:18:35 2009] [notice] Apache/2.2.0 (Fedora) configured -- resuming normal operations
Thank you

Create Subdomain in plesk 10

Tuesday, October 18th, 2011

To create subdomain in Plesk please follow the followinig steps:-

1) Log in to Plesk control Panel.

2) Click on “Domains” and then Click on “Control panel” in front of the domain whose files permession you want to change.

3) Click on “Websites and Domains“.

4) Click on “Add new Subdomain” option at the bottom of the page.

5) Enter the subdomain name that you want to enter and also define the document root of that subdomain.

6) Click on “OK” once you have entered the above details.

Can’t execute FLUSH PRIVILEGES: MySql error 1146:Table ‘mysql.servers’ doesn’t exist

Sunday, October 9th, 2011

If you got the below error once you tried to create database user

Add new database user failed: Can’t execute FLUSH PRIVILEGES: MySql error 1146:Table ‘mysql.servers’ doesn’t exist
———————- Debug Info ——————————-
0: plib\DatabaseManagerMySQL.php:83
DatabaseManagerMySQL->addUserToDatabaseImpl(string ‘tendy_test3’, string ‘*********’, string ‘trendy_test2′)
1: plib\DatabaseManager.php:163
DatabaseManager->createUser(object of type dbUser)
2: htdocs\domains\databases\db_usr_edit.php3:116

the solutions is below

got the below solutions for the same

Step 1: SSH to your server
Step 2: Open mysql by typing:

mysql -u YOURUSERNAMEHERE -p

Make sure to put in your own username. When you hit enter, you’ll be asked for your mysql password.

Step 3: Use the mysql database:

USE mysql;

Step 4: Place this code in to create the table:

CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
COMMENT=’MySQL Foreign Servers table’;

I hope that helps someone out there!

References.

http://forum.parallels.com/showthread.php?t=110100

FileList::init() failed: ls_dir_wrapper() failed: Unable to logon user (PLESK900W2K3\USER1): (1326) Logon failure: unknown user name or bad password.

Sunday, October 2nd, 2011

Resolution

Make sure that the account associated with the domain is active on the server. If it is disabled, you need to enable it by modifying properties of the account.

If account is enabled, the most possible reason of the issue is that the password of domain owner account is not synchronized with corresponding record in Parallels Panel database.
To fix that take the following steps:

1. Retrieve the password of the domain owner from Parallels Panel database with the command below (where USER1 is an owner of the domain, it can be taken from the error):

C:\> "%plesk_bin%"\dbclient --direct-sql --sql="select su.login, a.password from accounts a, sys_users su  where a.id=su.account_id and su.login='USER1'"

login       password
USER1  p@ssw0rd

2. Synchronize system password with accordance of retrieved one as follow:

C:\> net user USER1  p@ssw0rd
References
http://kb.parallels.com/6649