Sunday, 30 September 2012

Download and Install GIT

cd /usr/local/src
 
>> download the GIT
wget http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2
 
>> Next, extract the downloaded file.
tar xvfj git-1.7.6.tar.bz2
cd git-1.7.6
 ./configure
 make
 make install
 

Enabling Railo on a domain using Tomcat

>> Go to the directory: /opt/railo/tomcat/conf (This is the default install directory     we run on servers for Railo)

>>  Edit the file: server.xml

>>  Go to the line where it has commented code and has: HOST ENTRY TEMPLATE

>>  Enter new lines after the commented code with the following replacing domain.com with your domain and the docBase with the path on your server to your public_html or wwwroot or httpdocs:

<Host name="domain.com" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/username/domain.com" />
<Alias>www.domain.com</Alias>
</Host>

>> Save the  server.xml file

>>  Now you need to restart Railo

 /etc/init.d/railo_ctl restart

>>  Allow a up to 30 seconds for the service to restart and then try going to your Railo web administrator example below:

http://www.domain.com/railo-context/admin/web.cfm

>> You can access this URL using the default password of railo server admin. You can view this default password by login to 

 http://IP/railo-context/admin/server.cfm  and  go to Password under the section 'Security' .

>> Once you login to the railo web admin page of the domain using this default password, you can reset password there.

Disable cfexecute in the coldfusion server

Enabling cftags will cause many security issues in the server especially in a shared server.

 We can disable cftags like CFEXECUTE and CFREGISTRY on ColdFusion Server as follows:

For ColdFusion Standard Edition
Open the ColdFusion Administrator
Browse to Security and Select Resource Security
Click on the CF Tags tab at the top
Select CFEXECUTE, CFREGISTRY, and any other unused tags
Click the right arrow to move the tags to the disabled column
Click 'Finish' to save changes

Directory index forbidden by Options directive

tail -f  /usr/local/apache/logs/error_log   
shows error Directory index forbidden by Options directive


Make sure that following line present in your .htaccess file

Options +Indexes

 will fix this issue.

DATABASE ERROR: CONNECTION FAILED! when login to roundcube

issue: when login to webmail via RoundCube getting this error

=====================
DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.
=====================

solution:
Try the following proceedures.
>> Repairing the database 'roundcube'.
>>  Running the command /usr/local/cpanel/bin/update-roundcube --force will also help
>>  Last try /scripts/upcp --force

check suphp enabled from shell

run

/usr/local/cpanel/bin/rebuild_phpconf --current

Can't remove an ip address

issue: When go to
WHM -> IP Functions -> Show or Delete Current IP Addresses and click a Remove l it shows removed and
then i check again .The ip is still there


Fix: Remove it from /etc/ips - if it's not in there, you probably have to remove the configuration file for it in /etc/sysconfig/network-scripts/ifcfg-XXXX where XXXX is the device it is bound to, then down the device using:

ifconfig XXXX down