HostOnNet Blog

Category Archives: Apache

Windows could not start the Apache2 on Local Computer

Some of the local sites on my pc is not working. When i tried to access, its showing like Unable to connect Firefox can’t establish a connection to the server at hostonnet.co. The site could be temporarily unavailable or too


Redirect yourdomain.com to www.yourdomain.com

By default most sites allow yourdomain.com and www.yourdomain.com It is better to select one of the url you want and stay with it instead of using both URLs for same web site. It is better to use URL with www


Htaccess Tips and Tricks

Block All traffic Create .htaccess file with Allow Only Specific IP Create .htacces with following code If your IP changes, you can use CIDR format to white list IP range of your ISP. Block Specific Browser/Version To block visitors using


How to analyze Apache access logs using Scalp

What is Scalp ?? Scalp! is a log analyzer for the Apache web server that aims to look for security problems. The main idea is to look through huge log files and extract the possible attacks that have been sent


How to install Apache MySQL and PHP on Cent OS 6.6

Following tutorial describes how to install Apache MySQL and PHP on a Cent OS based server. First we need to identify the version of OS using on the server. For that, login to the server as root user and run


Installing NewRelic on CentOS 7 Server

NewRelic is an Application performance monitoring tool. To install it on CentOS LAMP server (PHP), run You need need a NewRelic.com account before you can start monitoring your Application.


How to check which Apache/PHP modules are installed?

Login via SSH to your server to run the following commands. Apache: apachectl -M Sample Output: PHP: php -m Sample Output


How to install an Apache Server on ubuntu

First check if the package is installed or not If you did not get any output, install the package Run below commands Now start the apache service On the service at booting time Check if the web server is running


Terminal Commans to find out which ports are listening / open on your Linux Server

You may use netstat command, which print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships etc. Another (and suggested) option is to use lsof command, which list open files, and ports on Linux, FreeBSD, Solaris and other


Enabling CGI/Perl scripts in Ubuntu Apache 2

Apache 2 in Ubuntu is configured to work with .pl/.cgi scripts by default. But it won’t work as cgi module is not loaded. To activate CGI scripts, you need to run Apache configuration used for localhost in my PC is