If you find these 2
errors in the error log.
…file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in…
…failed to open stream: no suitable wrapper could be found in…
php.ini and enable the following 2 settings.
allow_url_fopen = On
allow_url_include = On
Apache and they should be fixed.
HTTP Authentication is the easiest way to prevent anonymous user access to your website. If you are on Apache, you can refer to the following post.
.htaccess – Setting Password For Your Web Folder
After you have created the
password file, you could add the following line in the .htaccess or in the Apache VirtualHost.
MariaDB – Installation on Ubuntu Precise
1. Install phpMyAdmin.
apt-get install phpmyadmin
2. Select neither
Apache nor Lighttpd for the web server selection as we want to run it in Nginx.
3. And say
for the NO Configure database for phpmyadmin with dbconfig-common?
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
New Relic supports the following list of PHP frameworks.
Drupal 6 and 7 WordPress
CakePHP 1.2, 1.3 and 2.*
Joomla 1.5 and 1.6
Zend Framework 1
Magento 1.5 and 1.6
If you are monitoring a
Drupal website, you will find the module tab on the Application menu.
This entry was posted in
New Relic and tagged CakePHP, Apache, Drupal, PHP, Joomla, VirtualHost, Drupal Development, Wordpress, CodeIgniter, Magento, Drupal 7, New Relic, QDrupal, Symfony, Yii, Zend Framework, MediaWiki, Kohana on . August 14, 2012
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.
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:
Performance analytics on Ruby, Rails, PHP, Java, .Net, Python applications
Real User Monitoring
SQL/NoSQL Performance Monitoring
Web Application Transaction Tracing
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.
This entry was posted in
DumpCamp, New Relic and tagged .Net, Apache, Application Performance Management, DumpCamp, Java, New Relic, NoSQL, PHP, Python, Rails, Ronnie Kwok, Ruby, SAAS, SSH, VirtualHost on . July 17, 2012
deny the access for a specific folder in webroot. Create the following .htaccess file in that restrictive folder.
deny from all
allow from 127.0.0.1
access from other IPs are denied except for 127.0.0.1.
.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.
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