Archive for July, 2007

What is Clientexec?

Clientexec is a robust client management software use for managing hosting clients, as well as many other types of clients, that offers the ability for monthly billing. CE Clientexec) also offers an area for your clients to create support tickets, and allows you to respond to the tickets as well. CE integrates with Paypal, Authorize.net, and many other 3rd party online payment processors. Here is the procedure on how to install ClientExec

You will have to buy the license for that from here
You will get the licencekey from them. Depending upon your server configuration you will have to download exect clientExec from here.

Detail of CE
For example if you have following configuration

- PHP versions between 4.3.0 and 5.0.5
- MySQL versions till 4.1

then you can download the CE ( clientExec Files from here)

wget http://download.powervps.com/clientexec/Clientexec.2.7.3.Ion.zip
wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Now To install ClientExec:

- The first step is to create a database. (You need to create a mySQL database, database
username, and database password.)

- Upload the entire contents of the zip file to your server in BINARY mode.

- Apply any patches as needed.

- Change CHMOD permissions on the config.php file to 666.

- Also modify the config file as per your database configuration.

- Point your browser to http://domain.com/install.php

- After the installation is complete, delete or move the install.php file

That is it. You should have a clean install and ready to go.

READ the CHANGELOG.txt file

1) First step in any upgrade is to backup your database. You can do so using an application
like phpmyadmin which is commonly found with your hosting control panel utilities.
NOTE: We can not stress this step enough. We can not help you easily with any issues to
your data unless you have a backup before any upgrade.
2) Unzip the contents of your compressed ClientExec file.
3) FTP to your server, which contains the domain of your ClientExec installation.
4) Remove all of your files except for:
config.php
license.php - If upgrading from 2.2.x you do not need to keep your license file
uploads/files - Do not remove this folder if you have files in your files manager
5) Upload all the content files from the ClientExec zip file. Ensure that you do not overwrite
config.php or license.php
6) Visit http://yourceurl/install.php and click on Upgrade. Follow the steps until completion.
7) If you are getting any error o the above URL then please check that you have change the file permission to 666.
8) Delete install.php.

Upgrading Notes:
-If you see the install option available when you run the install.php script then you need to
check your config.php and ensure that you didn’t overwrite by mistake.
-If you are upgrading from beta 2.2.x then you do not need to keep your license.php file prior
to running the upgrade.
-After you have upgraded your version of CE you can now delete your license.php file.
-After you have upgraded your version of CE make sure you remove your install.php file.
-If after upgrading you find that you have unauthorized version installed message do not stress,
just follow the instructions below on obtaining a new license.
-After each upgrade go to admin->settings->3rd party invoices to ensure all plugins are synched
properly

You can have detail info for clientexec at following URLS:
http://www.clientexec.com/manual
http://www.clientexec.com/kb
http://www.ce-talk.com/

Hello,

If you trying to installed Zend optimize and ionCube Loader on plesk server .

After installing Zend 3.0.1 and ionCube Loader php -v returns this:
———————————————————————-
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

Here solution of this problem

1) Please go to cd /etc/php.d/ directory , edit ioncube.ini file and comment following line

#zend_extension=/usr/lib/php4/ ioncube_loader_lin_4.3.so

2) Now open php.ini file and add following code

zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1

zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1

zend_optimizer.version=3.0.1

zend_extension=/usr/local/ioncube/ioncube_loader_lin_4.3.so

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so

zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

(Note : Depend of php veriosn please change ioncube_loader_lin_4.X.so file )

Problem fixed ……. :)

Enjoy ………………….

Regard’s

Alex P

System Administrator.

8
Jul

How do you repair a corrupt MySQL table?

   Posted by: admin    in MySql

Hello,

Error: Table ‘tbl_ name’ doesn’t exist databasename_tablesname.frm can’t open

If you get either of the following errors, it usually means that no table exists in the current database with the given name:

Table ‘tbl_name’ doesn’t exist

Can’t find file: ‘tbl_name’ (errno: 2)

A ) In some cases, it may be that the table does exist but that you are referring to it incorrectly:

Because MySQL uses directories and files to store databases and tables, database and table names are case sensitive if they are located on a file system that has case-sensitive filenames.

Even for file systems that are not case sensitive, such as on Windows, all references to a given table within a query must use the same letter case.

B ) In some cases, it may be that the table exist but same error occurs then

1 ) Check the permission and ownership of database i.e. it should be same below

drwx—— 2 mysql mysql cpanelusername_dbname.

2) If the permission are corrects but same error occurs then it seems that your database table may be corrupts then there are following way to repair the DB

a) Go to whm >>SQL Services >> Repair a Database >> select database name and click Repair Database.

b) Go to cpanel >> mysql section MySQL Account Maintenance >> search database then click on Repair.

C) You can repair it though shell when mysqld server is running

i) login in mysql to that particular user by using following command

mysql>mysql –u databaseusername –p databasename

ii) select particular database

mysql> use databasename;

iii) Check whether database table is corrupted or not if following command output shows null value then it should be corrupts otherwise it is fine

mysql>show table status like ‘table name’\G; Or
mysql>check table tablename ;

iv)If it is corrupts then use the following command to repair that particular database table.

mysql>repair table tablename;

D] You can repair it though shell when mysqld server is not running

Repairing MyISAM mySQL Tables/Databases:

# cd /var/lib/mysql/DBNAME

# myisamchk tablename.MYI

Repairing ISAM mySQL Tables/Databases:

# cd /var/lib/mysql/DBNAME
isamchk tablename.MYI
where

-c –> check database is corrupted or not
-r –> recorver
-o –> optimise the database

Hello,

If you are getting Can’t create new tempfile: ‘tablesname.TMD file  error while repairing corrupted database tables please try use following command to fix it

Solution.

myisamchk -r -f  tables.MYI

Regard’s

Stacy.

5
Jul

How to installed mod_ruby and eruby on Linux server ?

   Posted by: admin    in Linux

What is mod_ruby?

”mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby.”

1) Install eRuby

# wget http://www.modruby.net/archive/eruby-1.0.5.tar.gz

# tar -xzvf eruby-1.0.5.tar.gz

# cd eruby-1.0.5/

# ./configure.rb –with-charset=euc-jp –enable-shared

# make; make install

2) Install mod_ruby

i)Download latest mod_ruby tar file

# wget http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz

# tar -xzvf mod_ruby-1.2.6.tar.gz

 # cd mod_ruby-1.2.6/

#  ./configure.rb –enable-eruby –with-apxs=/usr/local/apache/bin/apxs

# make; make install

ii)Edit apache configuration file ( httd.conf) and add following code

LoadModule ruby_module libexec/mod_ruby.so
ClearModuleList
AddModule mod_ruby.c
AddHandler cgi-script .rb
<IfModule mod_mime.c>
# for Ruby/eRuby
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
# for Apache::ERubyRun
RubyRequire apache/eruby-run
# for development
# RubyRequire auto-reload
# for add library
#RubyAddPath /usr/local/lib/ruby
# exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# handle *.rhtml as eruby files.
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
</IfModule>

 

iii) Restart apache service on server