Archive for April, 2007

How to increase SquirrelMail maximum attachment size from 2MB.

Friday, April 27th, 2007

SquirrelMail is written in PHP, the max attachment size for webmail is inherited from the “upload_max_filesize” value set forth in php.ini

Here you go..

1, Locate your php.ini.
2, Open it in a text editor
3, Search for upload_max_filesize.
4, Change 2M to something else, for example 5M.
5, If the upload_max_filesize is larger than post_max_size, you must increase post_max_size so that it’s bigger than upload_max_size
6, If the value of post_max_size is larger than memory_limit, you must increase memory_limit so that it’s larger than post_max_size.
7, Save your changes to the file.
8, Restart your web server.

Note 1:
There’s no documented max upload size.

Note 2:
If uploading the file is slow, you may have to increase the max_execution_time so that the script does not terminate before the entire file is uploaded.

Thank you :)

WHM not updating quotas

Friday, April 27th, 2007

The binary /usr/sbin/repquota is missing onthe server which is used by the Cpanel script /usr/local/cpanel/bin/cachedrepquota to write to the file
/var/cpanel/repquota.cache.

After copying this binary and executing this script and restarting Cpanel ,
the issue should be resolved.

Enjoy

Ninad

Synchronize time on Cpanel servers

Friday, April 27th, 2007

Command to Synchronize time on Cpanel servers

rdate -s rdate.cpanel.net

Enjoy

Ninad

PHP5 install as CGI

Friday, April 27th, 2007

1) Download PHP 5.1.2 and do the usual

cd /usr/local/src
http://www.php.net/get/php-5.2.1.tar.bz2/from/a/mirror
tar -jxvf php-5.2.1.tar.bz2

2) Compile php as in a new directory such as /usr/local/php5

Use the same ./configure line required but with the following changes:

–with-config-file-path=/usr/local/php5/etc –prefix=/usr/local/php5 –with-mysqli=/usr/bin/mysql_config (only with Mysql 4.1)

3) Compile and install
make
make install

IMP Steps :

cp php.ini-dist /usr/local/php5/etc/php.ini
cp /usr/local/php5/bin/php /usr/local/cpanel/cgi-sys/php5
chown root:wheel /usr/local/cpanel/cgi-sys/php5

4) Edit httpd.conf and add lines below::

AddHandler application/x-http-php5 .php5
Action application/x-http-php5 /cgi-sys/php5

Just use .php5 and it will invoke php5.

Enjoy

Ninad

How do I check how many messages are in the mail queue?

Friday, April 27th, 2007

This can be done by typing in the following command:
Standard:
/usr/local/psa/qmail/bin/qmail-qstat
RPM:
/var/qmail/bin/qmail-qstat

Enjoy

Ninad

Modernbill Gateway connection test for v4.

Thursday, April 26th, 2007

1. Authorize.net
==========

If the authorize.net is set as payment module and if tested in the VT then we get 68 codes which shows that it is working fine and connecting Authorize from MB perfectly.

——————————————————————————————

2. BluePay
=======

If the Bluepay is set as payment module and if tested in the VT then we get 40 codes which shows that it is working fine and connecting Bluepay from MB perfectly.
————————————————————————————–

3. Echo
====

If the Echo Inc is set as payment module and if tested in the VT then we get 9 codes which shows that it is working fine and connecting Echo from MB perfectly.
————————————————————————————————–

4. eWAY
=====

If the eWAY is set as payment module and if tested in the VT then we get 5 codes which shows that it is working fine and connecting eWAY from MB perfectly.
————————————————————————————————–

5. FirePay
======

If the FirePay is set as payment module and if tested in the VT then we get 9 codes which shows that it is working fine and connecting FirePay from MB perfectly.
———————————————————————————————–

6.LinkPoint
=======

If the Linkpoint is set as payment module then turn on the debug mode and test it in VT,

In debug mode if you are looking for the following:
return_dump: r_csp:
r_time:
r_ref:
r_error: SGS-020003: Invalid XML.
r_ordernum:
r_message:
r_code:
r_tdate:
r_score:
r_authresponse:
r_approved:
r_avs:
AUTH CODE:
AVS CODE:
TRANS ID:

This means it’s good to go with the Linpoint Module and the connection is successful from MB.
————————————————————————————————

7. PSIGate
=======

If the PSIGate is set as payment module and if tested in the VT then we get 49 codes which shows that it is working fine and connecting PSIGate from MB perfectly.
————————————————————————————————

8. Cybersource
==========

Your order cannot be processed at this time. Your credit card was not accepted. Please try again later.
(102)

* Code1: reasonCode: 102
* Code2: invalidField_: billTo_email
* Code3: decision: REJECT
* Code4: invalidField_0: billTo_email
* Code5: invalidField_1: item_0_unitPrice
* Code6: requestID: 1388991845120169622803
* Code7: StatusDetail: REJECT -
——————————————————————————

Is there any need to create the packages in plesk?

Thursday, April 26th, 2007

When we create a package in MB for the Plesk server then there is no need to create a package in Plesk. We use the package attirubtbes in Modernbill and pass those via API.  If you want to match the attibutes then no you either have to do it in the way described above or have to do it in your own way w/o using Modernbill.
There is no need to setup a package in Modernbill and a package in plesk, you can setup a package in Modernbill and that is the only place that there needs to be a package. There does not need to be the same package setup as a template in Plesk.

What is Installatron ?

Thursday, April 26th, 2007

Installatron is a state-of-the-art auto-installer plugin for the DirectAdmin and cPanel, and Plesk Reloaded server control panels.

Once installed on a DirectAdmin/cPanel/Plesk server, your users are able to install, manage, and upgrade a growing list of web scripts at the click of a button.

Installatron can also be used to install scripts from CLI/shell, allowing newly created hosting accounts to be pre-populated with software. It is also possible to create your own installers and customize the official installers.

How to install Installatron ?

On DirectAdmin Server

Increase the DirectAdmin timeout value:

Login to DirectAdmin using an admin level account.
Click Administrator Settings (available on the Admin Level page).
Change the Timeout (Seconds) value to ‘300′.

Now, to install Instrallatron:

Return to the Admin Level page in DirectAdmin.
Click the Plugin Manager tool.
Copy and paste this URL into the Url field:

http://www.installatron.com/iTron.tar.gz

Enter your DirectAdmin password in the Password: field.
Click Add Plugin.

The installation process can take a while. Do not reclick ‘Add Plugin’.

If you experience any errors, consult the troubleshooting guide.

Installatron is now installed and ready to use.

You will find the “Installatron Admin” tool added to the DirectAdmin Admin Level and Reseller Level pages, and the “Installatron” tool added to all User Level pages.

On cPanel Server

Disable IXED & Enable API
Disable cPanel’s IXED loaders and enable the plugin API:

Click ‘Server Configuration’ in WHM.
Click ‘Tweak Settings’.
In the ‘Software’ section, set ‘Loader to use for internal cPanel PHP’ to None.
In the ‘System’ section, enable ‘Allow cpanel and admin binaries to be run from other applications’.
Save.

Now, to install Instrallatron, run these commands as ROOT:

wget http://files.installatron.com/cp_installer.sh
chmod 755 cp_installer.sh
./cp_installer.sh

Installatron is now installed and ready to use.

The installatron tool will be available from the main tool list in cPanel.

On Plesk Reloaded Server

Install Instrallatron, run these commands as ROOT:

wget http://files.installatron.com/psa_installer.sh
chmod 755 psa_installer.sh
./psa_installer.sh

Installatron is now installed and ready to use.

Users will find the Installatron tool added to Plesk when they log in.

For more details please visit http://www.installatron.com/

Thank You :)

What is CAD/CAM?

Thursday, April 26th, 2007

The term CAD/CAM is a shortening of Computer-Aided Design (CAD) and Computer-Aided Manufacturing (CAM). The term CAD/NC (Numerical Control) is equivalent in some industries.

CAD/CAM software uses CAD drawing tools to describe geometries used by the CAM portion of the program to define a toolpath that will direct the motion of a machine tool to machine the exact shape that was drawn.
History

Numerically-Controlled Machines

Well before the development of Computer-aided design, the manufacturing world adopted tools controlled by numbers and letters to fill the need for manufacturing complex shapes in an accurate and repeatable manner. During the 1950’s these Numerically-Controlled machines used the existing technology of paper tapes with regularly spaced holes punched in them (think of the paper roll that makes an old-fashioned player piano work, but only one inch wide) to feed numbers into controller machines that were wired to the motors positioning the work on machine tools. The electro-mechanical nature of the controllers allowed digital technologies to be easily incorporated as they were developed.

By the late 1960’s Numerically-Controlled machining centers were commercially available, incorporating a variety of machining processes and automatic tool changing. Such tools were capable of doing work on multiple surfaces of a workpiece, moving the workpiece to positions programmed in advance and using a variety of tools - all automatically. What is more, the same work could be done over and over again with extraordinary precision and very little additional human input. NC tools immediately raised automation of manufacturing to a new level once feedback loops were incorporated (the tool tells the computer where it is, while the computer tells it where it should be).

What finally made NC technology enormously successful was the development of the universal NC programming language called APT (Automatically Programmed Tools). Announced at MIT in 1962, APT allowed programmers to develop postprocessors specific to each type of NC tool so that the output from the APT program could be shared among different parties with different manufacturing capabilities.
CAD & CAM Together at Last

The development of Computer-aided design had little effect on CNC initially due to the different capabilities and file formats used by drawing and machining programs. However, as CAD applications such as SolidWorks and AutoCad incorporate CAM intelligence, and as CAM applications such as MasterCam adopt sophisticated CAD tools, both designers and manufacturers are now enjoying an increasing variety of capable CAD/CAM software. Most CAD/CAM software was developed for product development and the design and manufacturing of components and molds, but they are being used by architects with greater frequency.

Today, over three-quarters of new machine tools incorporate CNC technologies. These tools are used in every conceivable manufacturing sector, including many that affect building technologies. CNC technology is related to Computer Integrated Manufacturing (CIM), Computer Aided Process Planning (CAPP) and other technologies such as Group Technology (GT) and Cellular Manufacturing. Flexible Manufacturing Systems (FMS) and Just-In-Time Production (JIT) are made possible by Numerically-Controlled Machines.

Common FAQs in Plesk

Thursday, April 26th, 2007

How can I view my webpages using IP before the DNS gets updated?
http://IP/$sitepreview/domainname.com

Mailbox hasn’t created with the email accounts I have created. Why?
Login PleskCp–>Domains–>domain.name–>Mail–>Preferences,enable webmail, then mailbox will be created automaticaly

where does the configuration for Plesk session time out set up and how we manage it?
You can set session idle time in Plesk->Server->Session Settings and we can edit it.

Plesk backup - how to create?
You may back up domain only via Plesk control panel (CP -> Domains -> domain.tld -> back up)
If you want to back up whole client account you have to use plesk back up utility.