installatron install cpanel servers

Hi,

Please follow the steps to install installatron in your cPanel servers.

For Redhat servers.

rpm -Uvh http://data1.installatron.com/installatron-plugin-cpanel-7.0.10-1.noarch.rpm

For Non-Redhat distributions

wget http://data1.installatron.com/installatron/installatron_setup.sh 
chmod +x installatron_setup.sh
./installatron_setup.sh -f

Reference : http://installatron.com/

Thank you for viewing helpinlinux.com

Invalid command ‘header’ perhaps misspelled or defined by a module not included

Hi,

 

If you are getting the following error in your apache logs then you should probably load “mod_headers.so” to your apache server.

 

Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

Fix

==

If you are using Centos server then you need to edit your apache configuration file and add the following line

LoadModule headers_module modules/mod_headers.so 
/etc/init.d/httpd restart 

Reference: http://littletechthoughts.blogspot.com/2009/02/invalid-command-header-perhaps.html

 

 
If you are using Ubuntu based Operating system then you need to do the following and restart your apache service.

 

cp -arp /etc/apache2/mods-available/headers.load  /etc/apache2/mods-enabled/headers.load  
/etc/init.d/apache2 restart

 

 

Thank you for viewing helpinlinux.com

RVM ree install linux

Hi,

 

The following are the steps to install RVM(Ruby version manager) and ree in your Linux box.

 

The following commands will install both the softwares in it.

 

#cd /usr/local/src/
#wget https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
#chmod 755 rvm-installer
#./rvm-installer

The above commands will install rvm in to your linux box at multi-user mode.

You should logout and login to make sure that your shell has rvm configurations loaded in it.

To check if rvm is installed in your server type the command

# type rvm | head -1

The above command should produce result as

# rvm is a function

To install ree you need to run the following command

 # rvm install ree

To check rvm requrements you can run the following command

 # rvm requirements

Thanks for viewing helpinlinux.com

AddType application x-httpd-php .html not working

Hi,

If you are trying to execute php coding with html page. You will be directed to add the following line to your .htaccess file.

 

AddType application x-httpd-php .html .htm

But this sometime won’t work it will simple ask you to download that .html page. If you are facing issues like this all you need to do is, edit the above line to

 AddType application x-httpd-php5 .html .htm

Problem
=======
The server is running in php version 5 and it needs an 5 suffix at the end of x-httpd-php like x-httpd-php5.

 

To make them work on server wide you need to add

 

AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml .html

In your php.conf file.

Thank you for viewing helpinlinux.com

ERROR: Connection dropped by IMAP server.

If you are getting the following error when while you access your webmail

Query: FETCH 1 (FLAGS UID RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance Priority Content-Type)])

then probably you are having permission issues with the mail directory of your emails.

Fix
===
chmod to mail directory and change the mail folder to user user.

chown user.user /path/to/maildir -R

for cPanel emails it is chown username.username

/home/username/mail/.user@domainname/cur/ -R

Thank you for viewing helpinlinux.com

Install horde in plesk

Steps to install horde in plesk

Before starting please make sure you have backups of you plesk database.

cd /root
mysqldump -u admin -p`cat /etc/psa/.psa.shadow` psa > psabackup.sql

Go to plesk admin binary folder

[root@admin ~]# cd /usr/local/psa/admin/bin

Then run auto installer with install component horde

[root@admin /usr/local/psa/admin/bin]# ./autoinstaller –select-release-current –install-component horde

That’s it. You have installed horde in your plesk panel.

Reference: http://logicsupport.com/blog/?p=240

Disable Dr. Web notification mails in plesk

Hi,

 

To disable the notification mails from Dr. Web service you need to edit the configuration file.

 

#vi /etc/drweb/drweb_handler.conf

and edit it as below.

[VirusNotifications]
SenderNotify = no
AdminNotify = no
RcptsNotify =no

Then restart drweb service

/etc/init.d/drwebd restart

Thank you for viewing helpinlinux.com

Add additional FTP user Proftp

Hi,

 

You can add additional FTP user to your contents with default user permissions, so that if the additional user uploads contents to the server the files will be uploaded with default user’s permissions. All you need to do is to add a additional user and to add the following entries to your proftpd.conf file.

 

# vi /etc/proftpd.conf

<VirtualHost xx.xx.xx.xx>
  ServerName                    "server name"

  <Limit LOGIN>
   AllowAll
  </Limit>

  <Anonymous /path/to/your/documents>
    User                        defaultuser
    Group                       defaultuser
    UserAlias                   additionaluser defaultuser

    <Limit LOGIN>
      AllowAll
    </Limit>

    <Limit WRITE>
      AllowAll
    </Limit>

    <Directory incoming>
      <Limit WRITE>
        AllowAll
      </Limit>
    </Directory>
  </Anonymous>

then restart FTP service
#/etc/init.d/proftpd restart

 

Now, you will be able to connect to the server using FTP.

 

Thank you for viewing helpinlinux.com

The file *.php is part of Plesk distribution

Hi,

 

If you are getting any errors representing is part of Plesk x distribution. It cannot be run outside of Plesk x environment

 

something like for the below file

php /usr/local/psa/admin/plib/DailyMaintainance/script.php

 

The file /usr/local/psa/admin/plib/DailyMaintainance/script.php is part of Plesk 9 distribution. It cannot be run outside of Plesk 9 environment

 

All you need to do is to execute the php file from Plesk’s php binary. which will probably be located at “/usr/local/psa/admin/bin/php”.

 

/usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/DailyMaintainance/script.php

The above command will execute successfully.

 

Thanks for viewing helpinlinux,com

Find Commands

 

Hi,

This document will help you in using “find” command in linux server.

 

Find command to find a file name in the server is

 find /path/to/directory/which/you/need/to/search -name filename

Find command to list the files with 777 permissions is

 find /path/to/directory/which/you/need/to/search -type f -perm 777

change the 777 to the desired permission which you need eg: 644.

Find command to list the directories with 777 permission is

find /path/to/directory/which/you/need/to/search -type d -perm 777

change the 777 to the desired permission which you need eg: 755.

Find command to change the files with permission 777 to 644 is

find /path/to/directory/which/you/need/to/search -type f  -perm 777 -print -exec chmod 644 {} \;

Similarly the find command to change directories with permission 777 to 755 is

you can change the 644 to the desired permission you need to set to that particular file

find /path/to/directory/which/you/need/to/search -type d  -perm 777 -print -exec chmod 755 {} \;

you can change the 755 to the desired permission you need to set to that particular directory

 

To find all files modified on the 7th of June, 2007

 find . -type f -newermt 2007-06-07 ! -newermt 2007-06-08 

 

 

Thank you for viewing helpinlinux.com