December 1st, 2011 |
admin |
A step by step guide on installing subversion with http support on centos and redhat machine First of all, install apache/httpd yum install httpd Make sure you apache is running. You can also type ‘http://localhost’ at your browser and apache test page should appear if your apache is running /etc/init.d/httpd status Make it start by [...]
December 1st, 2011 |
admin |
Generally, a sub-domain is not accessed using the www prefix i.e. you can access subdomain.domain.tld but cannot access www.subdomain.domain.tld by default. To make a subdomain work with ‘www’ prefix on a Plesk server, you have to add a ServerAlias entry in the vhost configuration of the sub-domain and add an A record from Plesk. Solution: [...]
December 1st, 2011 |
admin |
Recently, I’ve noticed that in centos (5.4) dapper server with apache 2.2, apache by default listens to IPv6, thus was causing slow response times. The response times was much improved by having apache listen to IPv4 instead. Edit /etc/httpd/conf/httpd.conf and specify an IPv4 address on all Listen directives: Listen 0.0.0.0:80 Listen 0.0.0.0:443 Incoming search terms:centos [...]
November 30th, 2011 |
admin |
How to install SuPHP/phpSuExec on a Plesk server? SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”. The advantages of having suPHP are: 1. Files and Directories those need 777 permissions [...]
November 30th, 2011 |
admin |
If you made the decision to move your WordPress install from shared hosting to a shiny new VPS you should consider optimizing Apache by making some tweaks to your httpd.conf file. Apache is a fast, reliable, and flexible server but is heavy on resources by default. If you are running a small VPS, and using [...]
November 30th, 2011 |
admin |
How to install ImageMagick on Linux/Plesk server? Follow the below steps to install ImageMagick on a Plesk server. Login to your server as root and execute the following commands: 1. Install “ImageMagick” package via YUM. yum install ImageMagick 2. Now install “ImageMagick-devel” yum install ImageMagick-devel 3. Install “php-pear” required for “pecl”. It will install and [...]
November 30th, 2011 |
admin |
How to upgrade PHP on a Plesk server? You will have to download a script from ww.atomicorp.com and have to install it which will then allow you to upgrade PHP using yum. 1) Download the script: wget -q -O – http://www.atomicorp.com/installers/atomic.sh 2) Install the script: sh atomic.sh 3) Now upgrade PHP using yum: yum upgrade [...]
November 29th, 2011 |
admin |
Recently a particular folder in a site started coming up with blank php pages and the root cause being Segmentation fault after memory exhaustion. The subfolder contents would only come up after doing a restart of apache. So something tried to access a region of memory that it did not have rights to. May be [...]
November 28th, 2011 |
admin |
netstat -plan|grep :80|awk {’print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1 or netstat -pan | sort +4 | grep TIME_WAIT | awk ‘{print $5}’ | sed -e s/’:.*’//g | sort | uniq -c | sort -k 1 -nr | head -n 20 Incoming search terms:centos number connections (2)
November 28th, 2011 |
admin |
this script to help install ruby on rails cd /usr/src wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz tar -xzvf ruby-1.8.5.tar.gz cd ruby-1.8.5/ ./configure make make test make install cd /usr/src wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz tar -zxvf rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb gem update gem install rails –include-dependencies rails /usr/local/rails mv /usr/local/rails/public/.htaccess /usr/local/rails/public/.htaccessfile echo “RewriteBase /rails” > /usr/local/rails/public/.htaccess cat /usr/local/rails/public/.htaccessfile >> /usr/local/rails/public/.htaccess mv /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conffile [...]