Translate

Friday, December 3, 2010

Existing configuration file (./config.inc.php) is not readable.

1) Login to the server as root.

2) Go to the directory /usr/local/cpanel/base/3rdparty/phpMyAdmin.

[root@server~]# cd /usr/local/cpanel/base/3rdparty/phpMyAdmin

3) Check the ownership of the file config.inc.php. Check if the ownership of the file is assigned to root:cpanelphpmyadmin.

[root@server phpMyAdmin]# ls -l config.inc.php

-rw-r—– 1 root root 2409 May 25 11:18 config.inc.php

4) If the ownership is not proper set it to root:cpanelphpmyadmin.

[root@server phpMyAdmin]# chown root:cpanelphpmyadmin config.inc.php

5) Just restart the cpanel and mysql service on the server.

[root@server~]# /scripts/restartsrv cpanel

[root@server~]# /scripts/restartsrv mysql

This should sort the issue now.

Tuesday, September 21, 2010

Test connection to the database server has failed because of network problems: Failed to connect to database: Access denied for user 'admin'@'localho

Error: Test connection to the database server has failed because of network problems:

Hello,

Most of the time while configuring MY SQL server in windows plesk control panel we can get the following error.

Error: Test connection to the database server has failed because of network problems:

Failed to connect to database: Access denied for user 'admin'@'localhost' (using password: YES)

Fix :: Login the server via RDP >>> open my.ini with "%plesk_dir%databases\mysql\data." >>> add the parameter skip-grant-tables=1

Restart MYSQL service.

Then connect the mysql database with following command

"%plesk_dir%\mysql\bin\mysql.exe" mysql

Execute following query

mysql> update user set password=password('current_password') where user='admin';


Remove skip-grant-tables=1 from %plesk_dir%\databases\mysql\data\my.ini

restart MYSQL service.

And then no error will come while configuring MYSQL database in plesk

Saturday, September 18, 2010

BoxTrapper: Protect your inbox from spam.






Mailing Lists: Send messages to a large group of people.






Auto Responders: Send a message back automatically to anyone who sends an email to a certain account.






Forwarders: Send a copy of all mail from one email address to another.






Email Accounts: Manage the email accounts associated with your domain(s).






Edit Preview Images: Add a preview image to a branding style.






Edit UI: Modify the containers that hold icons and messages on the main page of the cPanel interface.






Edit Header/Footer: Change the header and footer images of the cPanel interface.






Edit Icons: Change the icons that appear on the main page of the cPanel interface.






Edit Logos: Resize and drag your own logo where you want it to appear.






Quick Image Edit: The basics on editing an image.






Getting Started: Getting Started on customizing your cPanel.






Branding (for root user): Learn branding specifically for a root user.






Web Disk: Easily drag and drop files to your hosting account.






Ftp Accounts: Access your web site's files through a protocol called FTP.






Backups

Download (to your computer) a zipped copy of either your entire site (your home directory, databases, email forwarders configuration, email filters configuration) or one of the previously mentioned parts of your site.






File Manager: Quickly manager all of your files with the new File Manager.

Quickly manager all of your files with the new File Manager.






SSH/Shell Access: Manage your SSH keys to allow automation when logging in via SSH.

Manage your SSH keys to allow automation when logging in via SSH.







Site Software: Blogs, Bulletin Boards, CMS, Chat, Ecommerce, and more!

Blogs, Bulletin Boards, CMS, Chat, Ecommerce, and more!






IP Deny Manager: Block a range of IP addresses to prevent them from accessing your site.

Block a range of IP addresses to prevent them from accessing your site.






Hotlink Protection: Prevents other websites from directly linking to files on your website.

Prevents other websites from directly linking to files on your website.






GnuPG Keys

Generate or import GnuPG Keys to encrypt messages using a "public key" that can only be decrypted by a "private key", which is retained by the intended recipient of the message.






My SQL: A guide to creating and modifying MySQL databases in cPanel.






Subdomains: Learn all about creating and managing subdomains.






MySQL Wizard: Create and manage MySQL databases with this step by step wizard.






Shortcuts: Easily access your cPanel by adding cPanel shortcuts to your desktop or browser's bookmarks toolbar.






Updating Your Contact Information: Change your contact information as well as preferences.






Change Style: A quick guide on changing the look and feel of cPanel to fit your personal style.






Parked Domains: Learn about creating and managing parked domains.






Addon Domains Learn about creating and managing addon domains.






Redirects: Learn how to make a specific web page redirect to another page and display the contents of that page with redirects






Kloxo Panel Demo

If you want Kloxo Panel Demo then you can use lxlab for the same. Cick on following link to get Kloxo panel Demo


http://demo.kloxo.com:7778/login/

you will find following information there

Login as Customer/Domain Owner (customer)
Login as Mail Account (postmaster@example.com)
You can also Visit kloxo forums.
If you need more information you can visit lxlabs.com
Generally this will not ask for any credential.

Saturday, September 11, 2010

Tuesday, August 31, 2010

How to restart FTP server if it hang on starting state

If you are facing issue in FTP server, if it Service is hang in a starting state then use following command to restart it.

IISRESET FTP

It will start working.

Monday, August 9, 2010

Package Plesk Backup from the Command Line

If you are unable to package plesk backup from plesk panel then I suggest you manually package the backup from the
command line using "%plesk_bin%\pmm-ras.exe". That is the utility that Plesk
uses internally to package backups for download. Below is the tool's usage
report followed by an example:

------------------------------------------------------
--get-dump-list Get local repository files list. Available options --type,
--guid, --id.

--get-ftp-dump-list Get ftp repository files list. Avaiilable option --mask.

--get-dump-info Get local backup info. Available options
--dump-file-specification, --dump-storage, --check-sign.

--get-ftp-dump-info Get ftp backup info. Available option --dump-storage,
--dump-file-specification.

--import-file-as-dump Import dump to file. Available options
--dump-file-specification, --dump-storage.

--delete-dump Delete dump. Available options --dump-specification,
--dump-storage.

--delete-exported-dump Delete exported dump. Available options
--dump-file-specification, --dump-storage.

--get-dumps-storage-credentials Get dump storage credentials. Use
--storage-type to specify storage type.

--rotate-dump Rotate dump. Available options --dump-specification,
--dump-rotation, --guid, --storage-structured, --dump-storage.

--get-domain-dumps-disc-usage Get domain dumps disk usage. Available options
--domain-guid, --owner-guid.

--export-file-as-file Export already exported dump (even splitted) to one
file. Available options --dump-specification, --dump-file-specification.

--help Display this help page.

--type=arg Plesk Object Type. Used with --get-dump-list

--guid=arg Guid of object who wants to see list of backups. Used with
--get-dump-list

--id=arg (=-1) Database ID of object. Used with --get-dump-list

--name=arg Name of object. Used in case when there are no top .discovered
directory. For admin: not required, for reseller and client: login, for
domain: ASCII-name. Used with --get-dump-list

--dump-storage=arg Dump Storage Credentials in format:
[://][@][/], where is 'ftp' or
'local'. Used with --delete-dump, --get-dump-info, --get-ftp-dump-info,
--get-ftp-dump-list, --import-file-as-dump, --export-file-as-file

--mask=arg Regex to search backup files. Used with --get-ftp-dump-list

--dump-file-specification=arg Path to the dump file. Used with
--import-file-as-dump, --delete-dump, --get-dump-info. For commands
--get-dump-info - relative to dump storage path.

--dump-specification=arg Path to an .xml file. Used with
--export-dump-as-file, --delete-dump. Relative to dump storage path

--storage-type=arg (=local) Dump storage type. Used with
--get-dumps-storage-credentials

--session-path=arg (=path) Session path.

--dump-rotation=arg Maximum counts of backup in the storage. Used with
rotate-dump

--storage-structured Used with centralized storage

--domain-guid=arg Guid of domain. Used with --get-domain-dumps-disc-usage

--owner-guid=arg Guid of object's owner. Used with
--get-domain-dumps-disc-usage

--file-from=arg Path to source file.

--file-to=arg Path to destination file.

--check-sign Check sign of dump

--use-ftp-passive-mode Use passive mode with ftp operations

--verbose Log verbose.

--debug Log debug.
------------------------------------------------------

"%plesk_bin%\pmm-ras.exe" --export-dump-as-file "--dump-specification=relative\path\to\backup.xml" "--dump-file-specification=full\path\to\backup.zip"

Once the packaged backup is created, you can transfer it to your server here
by any means (FTP, RDP, etc.) and then either upload it to the Plesk interface
or manually extract it to the Plesk backup directory.

Tuesday, July 20, 2010

Trimming the SQL log file

If your Microsoft SQL database transaction log file is big in size and you want to truncate it then use the following methods :

Step 1:

Run This command in Query Window

backup log [DATABASE NAME] with truncate_only

(This will makes the oldest parts of the log file redundant, the size doesnt change at this point though)


Step 2:


dbcc shrinkfile([LOGICAL NAME OF LOG FILE IN DATABASE],X)

(X is the size in megabytes that you wish to shrink the size of the log file to)

EXAMPLE:
Assume you had a database called "xyz" .

You must have to know the exact location of your .MDF and .LDF files.


backup log XYZ with truncate_only

dbcc shrinkfile(XYZ_log,20)

This will create your .LDF file around 20MB.

I have check it and it works for me.

Saturday, July 17, 2010

INDIAN RUPEE SYMBOL-UNLEASHED




The symbol for Indian Rupee is finalised.Many different countries has symbol for their currencies like US-'Dollar',France-'Euro',Japan-'yen' and many other.Indian government

The main aim for having symbol for Indian rupees was to give it an international recognisation to influence the economy of country at international level. Along with it the motto was also to differentiate the currency from RS which also used by the neighboring countries like Pakistan and Nepal.


Forward to all Indians

Wednesday, July 14, 2010

Sql Server 2005: Change schema for all tables

Sql Server 2005: Change schema for all tables

I recently needed to change the schema for all the tables in a Sql Server 2005 database.
Sql Server 2005 provides a T-SQl statement capable to change the schema for a given object called ALTER SCHEMA
You may use the following syntax to change the schema for all the tables in a database. Just change the "new_schema" string with the desired one:

exec sp_MSforeachtable "ALTER SCHEMA new_schema TRANSFER ? PRINT '? modified' "


Enjoy!

Sunday, July 11, 2010

Terminal server has exceeded maximum number of allowed connection – how to kill open sessions?

IF you are getting following error while trying to access remote your server:
Terminal server has exceeded maximum number of allowed connection.

Use following command:

mstsc /v:A.B.C.D /f -console

Where A.B.C.D is IP address of your server. I have checked it on 2003 and 2008, It Works perfectly.

Wednesday, July 7, 2010

Useful Plesk Commands

Plesk has various backend scripts to assist in correction any number of errors:

The most useful ones that we use here in Support are as follows:

Run Statistics Manually:

C:\Program Files\SWsoft\Plesk\admin\bin\statistics.exe


Re-build MailEnable according to Plesk DB:

mchk.exe --all --fix=all


Remove site from IIS:

websrvmng --remove-vhost --vhost-name=domainname.tld

Re-create Domain in IIS according to Plesk DB:

websrvmng --reconfigure-vhost --vhost-name=domainname.tld

or

websrvmng --reconfigure-all

Reset IUSR passwords (if particular site is prompting for password):

websrvmng --update-anon-password --domain-name=domainname.tld

Reset IUSR passwords For all accounts (if all sites are prompting for password)

websrvmng --update-anon-passwords-all


Fix webmail (404s)

"%plesk_bin%\defpackagemng.exe" --fix --type=webmail

For dnsmng related errors:

"%plesk_bin%\defpackagemng.exe" --fix --type=dnsserver
"%plesk_bin%\DNSMng.exe" update *

Monday, June 14, 2010

Horde webmail showing A fatal error has occurred

If you are getting "A fatal error has occurred" in horde then you can run the following script on shell to resolve this issue.


/script/fixwebmail

This command will resolve your issue

Tuesday, June 8, 2010

How to install ioncube

Here's a quick guide which will tell you how to install IonCube loader using SHELL.

* Root Shell Access to your server.
* Download the loader suitable for your server from here: wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz. (http://www.ioncube.com/loader_download.php.)
* Unpack the binary file by using this command tar -xvf ioncube_loaders.tar.gz (Change the ioncube_loaders.tar.gz to the file name appropriate for your server)
* After extracting it will create a folder called ioncube. Now use this command: cd ioncube
* Copy ioncube-install-assistant.php to a web directory by typing this command cp ioncube-install-assistant.php /home/userdirectoryhere/www
* Visit that file by going to http://www.example.com/loader-wizard.php.
* Go back to where you extracted the ioncube folder by using cd..
* Now move the ioncube folder in a safe and permanent location by using command: mv ioncube /usr/local
* Now edit the php.ini file for example: nano /usr/local/lib/php.ini
* Look for [zend] by typing CTRL + W and typing [zend]
* Paste the following line under [zend], zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
* Press CTRL + X, type Y and press Enter.
* Restart the server by typing: /etc/init.d/httpd restart
* Your installation is done.

How to Compile php with openssl

1. First of all download php from any source

wget http://in.php.net/get/php-5.2.13.tar.gz/from/this/mirror

2. untar it,

tar -xvf php-5.2.13.tar.gz

3. change directory

cd php-5.2.13

4.1 compile php with mysql

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql


4.2 Compile php with openssl

./configure --with-openssl /usr/bin/openssl

4.3 compile php with php5-ldap

./configure --with-php5-ldap


Php will be configured.

Monday, June 7, 2010

Reset Kloxo Password

This is very common issue that we forget Kloxo admin password and unable to retrieve it from forget password option. I am happy to inform you that you can reset password from shell. Yes If you have root access then just login into your shell and write these two commands.

cd /usr/local/lxlabs/kloxo/httpdocs

lphp.exe ../bin/common/resetpassword.php master admin


Now the password of your Kloxo panel is admin. You can login and reset password.

if you need password notification into your mail-id then after login into your kloxo admin panel go to Administration --> Information and provide your mail-id, You will get a new password into your mail id, if you will click reset password option into your Kloxo admin login window.

Thursday, May 13, 2010

How to Install cPanel in my server

If you want to install cpanel into your account then just do the following steps

1. cd /home — This will opens your directory /home.
2. wget -N http://layer1.cpanel.net/latest — By this command you will able to fetches the latest installation file from the cPanel servers.
3. sh latest — This command will runs the installation process. Now wait for cpanel to install into your server. After completion of installation run the following command.
4. /usr/local/cpanel/cpkeyclt — This command will activates your license after installation. If you haven't any license then you can get a 15 days trial license from cpanel. Register yourself here
https://www1.cpanel.net/store/

Wednesday, May 12, 2010

How to Find PHP Version From Command Line

This is very basic question that how to find the PHP version installed in my computer. It is well known that you can have more that one version of PHP in your computer.
just open your command prompt and write the following command.


root@servername [~]# php -v


You will see the output like :

PHP 5.2.13 (cli) (built: Mar 21 2010 16:37:21)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.3.14, Copyright (c) 2002-2010, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

Friday, April 23, 2010

This request cannot be completed becaus the link you followed or the form you submitted was only valid for minutes. (Unable to logout from webmail)

If you are facing the error while logout in horde then don’t worry this is a bug of horde. I am providing you steps to resolve it.

There is a math bug in the Horde.php checkRequestToken, the
paranthesis are missing

cd /var/www/html/horde-webmail-1.2.3/lib/VFS/

edit Horde.php

instead of


if ($_SESSION['horde_form_secrets'][$token] +
$GLOBALS['conf']['urls']['token_lifetime']
* 60 < time()) {
return PEAR::raiseError(sprintf(_("This request cannot be
completed because the link you followed or the form you submitted was
only valid for %s minutes"),
$GLOBALS['conf']['urls']['token_lifetime']));
}


it should be


if (($_SESSION['horde_form_secrets'][$token] +
$GLOBALS['conf']['urls']['token_lifetime'])
* 60 < time()) {
return PEAR::raiseError(sprintf(_("This request cannot be
completed because the link you followed or the form you submitted was
only valid for %s minutes"),
$GLOBALS['conf']['urls']['token_lifetime']));
}

I Have tried it and it works.

Note: If you are using windows operation system then path of the horde.php file is
C:\Inetpub\vhosts\webmail\horde\lib

Thursday, April 22, 2010

How to install Kloxo(Lxadmin)

Kloxo (LXadmin) is the best Control Panel that runs on even low memory VPS’s that has only 128MB memory and there is built in 2 web servers , Apache and Lighttpd.

Following are the step to install kloxo into your VPS

Connect to your server via SSH and run this commands

* cd /home
* mkdir kloxo
* cd kloxo
* wget http://download.lxlabs.com/download/kloxo/production/kloxo-install-master.sh
* sh ./kloxo-install-master.sh

Allow some time for the lxadmin installation to complete.

When the installation is done, open your browser and go to http://a.b.c.d:7778. (where a.b.c.d is IP address of your VPS)
The default username & password to your first login is admin / admin.

Wednesday, February 10, 2010

What is Web Hosting

This first definition is taken From Wikipedia, the free encyclopedia

A web hosting service is a type of Internet hosting service that allows individuals and organizations to make their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own or lease for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation.

About Me

My photo
Greetings Friend! I am Linux scholar, trying to learn as much I can and share it with you. I am in mid of my Professional Career. Doing Good. :)

Followers

Blog Archive