a) Add the following to /etc/services smtp-26 26/tcp mail
b) Copy /etc/xinetd.d/smtp_psa to /etc/xinetd.d/smtp_psa-26
c) Change the first line from service smtp to service smtp-26
d) service xinetd restart
a) Add the following to /etc/services smtp-26 26/tcp mail
b) Copy /etc/xinetd.d/smtp_psa to /etc/xinetd.d/smtp_psa-26
c) Change the first line from service smtp to service smtp-26
d) service xinetd restart
Apache, MySql and PHP; these three products are open source programs available for use on most well known operating systems. In this article I will explain how you can install Apache, MySql and PHP on a Linux box using yum in under 10 minutes.
1 – Checking and Removing Any Existing Installations of the 3 of Them
Run the following command to make sure that any existing installations of Apache, MySql or PHP are removed:
yum -y remove httpd mysqld mysql-server php
2 – Installing Apache
Run the following to install the Apache web server:
yum -y install httpd
3 – Installing MySql Server
Run the following command to install MySql Server:
yum -y install mysqld mysql-server
4 – Install PHP
Run the following command to install PHP:
yum -y install php php-mysql
5 – Installing PHP Libraries
PHP has many different libraries and add-ons which you want or need to utilize; in your case we want to install the PHP GD image library and the PHP IMAP library, to do this we’ll be using the following command:
yum -y install php-gd php-imap
Thats it – you have now AMP’d a server! All you need to do now is start the individual services, to do this run the following commands (individually):
service httpd start
service mysqld start
PHP will be seen by Apache as a library and so does not need to be started.
One of the many unique features about Horde webmail is it’s spell checker facility. However, the use of this requires that certain components be installed. To install these follow these instructions:
1) Login to your Linux box via SSH as root.
2) Install aspell by running the following command:
yum -y install aspell aspell-en-gb
Leave it to install; you shouldn’t need to make any changes to Horde as it should automatically detect the ASPELL installation.
Do you find that your VPS or dedicated machine is regularly running out of memory because of cPanel? The following tutorial will help you overcome this, and help you to make your machine run faster.
Stopping SpamAssassin
This program isn’t overly important to the stopping of spam. To turn it off do the following:
Go to WHM > Server Configuration > Tweak Settings > Disable Spamd
And:
Go to WHM > Service Manager > Disable Spamd
Stopping Mailman
If you or none of your customers aren’t running any mail listings through cPanel, it would be a good idea to disable Mailman.
Go to WHM > Server Configuration > Tweak Settings > Disable Mailman
Never Use Tomcat on a VPS
Never run TomCat on a VPS because of it’s high RAM needs.
Disable CatchAll
If you’re undergoing a mail attack, catch all can use up many resources + storage. To disable do the following:
Go to WHM > Server Configuration > Tweak Settings > Change to :fail:
Tweak Apache
Apache can be quite a memory consuming monster on it’s own. To tweak, do the following:
vi /etc/httpd/conf/httpd.conf
(Press ’shift’ and ‘i’ to enable inserting/editing.)
Change the following settings:
MinSpareServers 2
MaxSpareServers 5
StartServers 3
Save the file by pressing ‘esc’, then type ‘:wq:’, then hit return.
After that, restart Apache: /etc/init.d/httpd restart
All that should reduce your memory useage by a large amount.
Step # 1: Find Python version
Step # 2: Download bittorrent client
Step # 3: Linux Install BitTorrent client
Step # 4: Start using or downloading files
Login to the server as root and run the following:
cd /usr/local/cpanel/base
wget http://dfn.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1.1.tar.gz
tar -zxvf roundcubemail-0.1.1.tar.gz
rm -rf roundcubemail-0.1.1.tar.gz
mv -f roundcubemail-0.1.1 roundcube
chown root.root -R roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs
mysql -e “CREATE DATABASE roundcube;” -pDATABASEPASSWORD
mysql -e “use roundcube; source SQL/mysql.initial.sql;” -pDATABASEPASSWORD
cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.phpNote:Replace DATABASEPASSWORD with your server MySQL root password
2-Open db.inc.php with Pico
pico db.inc.php
Find this line in the file using (Ctrl+w)
$rcmail_config['db_dsnw'] = ‘mysql://roundcube:pass@localhost/roundcubemail’;
Replace the line above with the following line:
$rcmail_config['db_dsnw'] = ‘mysql://root:DATABASEPASSWORD@localhost/roundcube’;
Note:Replace DATABASEPASSWORD with MySQL server root password
save and close.
3-Open main.inc.php with pico
pico main.inc.php
find the following lines in the file and edit their values as the following:
$rcmail_config['enable_caching'] = FALSE;
$rcmail_config['default_host'] = ‘localhost’;
$rcmail_config['enable_spellcheck'] = FALSE;
Save and close
4-There are some changes need to be done in index.php file, instead of telling you what to find, add or remove, I have made a ready to made index.php file for you to use and you are done.
You can get the index.php file by running the following command lines:
cd /usr/local/cpanel/base/roundcube
wget http://www.2mhostblog.com/rc.1.1.tar
rm -f index.php
tar -xf rc.1.1.tar
rm -f rc.1.1.tar
5-Finally, restart your cpanel service