I have heard Nginx for several years and finally i got the motive to start playing with it. Here the steps to install Nginx on Ubuntu 12.04.01 LTS server (Ubuntu Precise).
1. Update the repositories with the root privilege.
apt-get update
I have heard Nginx for several years and finally i got the motive to start playing with it. Here the steps to install Nginx on Ubuntu 12.04.01 LTS server (Ubuntu Precise).
1. Update the repositories with the root privilege.
apt-get update
New Relic supports the following list of PHP frameworks.
If you are monitoring a Drupal website, you will find the module tab on the Application menu.
Continue reading New Relic – Enable Drupal module monitoring
If you follow the New Relic instruction to setup the daemon. You will get all web applications as a single New Relic App named as PHP Application in the New Relic application console.
So how could we setup multiple New Relic Apps for different virtual hosts in Apache? Here you are.
1. Make sure you have enabled the Apache php5 module. If it is not enabled, enable it by the following command with root privilege.
a2enmod php5
Continue reading New Relic – Monitor multiple web applications or virtual hosts
In the 2nd DumpCamp meeting, Ronnie showed us a SAAS service called New Relic which provides Application Performance Management solution mainly for web applications and servers. It’s capabilities include but not limit to:
The Lite account is free and i tried it today. The setup is easy and straight forward. Just register an account online with some configurations on your web server through SSH. Then you could views your server and web application performance online.
Continue reading DumpCamp – Introduction to New Relic
We can deny the access for a specific folder in webroot. Create the following .htaccess file in that restrictive folder.
order deny,allow deny from all allow from 127.0.0.1
All access from other IPs are denied except for 127.0.0.1.
Done =)
Reference: .htaccess: Deny From All – Prohibit, Forbid or Restrict Directory Access
When i am trying to setup a new server, most of the time i just used the default settings of Apache. But sometimes if the server is not equipped with enough RAM, the Apache service may consume all the server resources causing server failure. Here is an example for limited the resource comsumption by Apache.
Continue reading Ubuntu – Limit the RAM consumption by Apache
If you can’t edit the Apache configuration, you can do the redirection by setting up a virtual host as discussed in the post below.
Apache – Redirect non-www to www Subdomain
Or if you can add the following lines in the webroot .htaccess for the redirection. Continue reading .htaccess – Redirect non-www to www Subdomain
Redirecting non-www to www url can be simply done by adding a virtual host configuration. For example, if i have a domain ykyuen.com and i want to redirect it to http://www.ykyuen.com, just add the following virtual host. Continue reading Apache – Redirect non-www to www Subdomain
We can use .htaccess to redirect http://example.com to http://www.example.com by using the rewrite engine. But i find another simple way to implement the redirection just by setting up a VirtualHost.
Assume you have the current VirtualHost setting as follow. Continue reading Apache – Redirect non www to www using VirtualHost setting
Recently i need to migrate a Drupal 6 website to a hosting. Everything seems work fine but the Admin module fails to work. The following error is shown in Firebug console.
Continue reading Drupal – Admin Module $.cookie is not a function Error