Posts Under Category: Apache

Wordpress security
I am seeing a lot of WordPress wp-login.php brute force attack these days. In this tutorial I will explain how to stop wp-login.php attack on a cPanel server. read more

I was recently working on a server with CentOS 6 installed and trying to configure Apache virtual hosts to host several domains / websites without any control panel like cPanel.
read more

By default Apache loads lots of modules. If you are running only WordPress based websites on your VPS / Server, you should consider disabling un-needed Apache modules. This will save lots of memory and optimize server.
read more

By default Apache loads lots of modules. If you are running only Drupal based websites on your VPS / Server, you should consider disabling un-needed Apache modules. This will save lots of memory and optimize server.
read more

In this tutorial I will explain how to enable Drupal Clean URL support on a CentOS / RedHat Linux server.

Step 1

Before making any change in Apache configuration file, we will first make a backup of the Apache configuration file. Login as root to your server via SSH and run below commands: read more

By default Apache loads lots of modules which probably you do not need. If you want to optimize Apache on your VPS / Dedicated server, you should consider disabling un-needed Apache modules. Disabling un-necessary modules will save lots of memory and optimize server. In this tutorial I will explain how to disable un-needed Apache modules on a CentOS / RedHat server / VPS.
read more

In this tutorial I will explain how to install and setup LAMP on a RHEL/CentOS Linux 6.x server.
Before I start the tutorial, let’s know what is LAMP. LAMP stack is a group of open source software used to get web servers up and running. LAMP stands for Linux, Apache, MySQL, and PHP.
read more

If Apache / HTTPS is using lots of memory on your server, here is how you can optimize Apache on your server / VPS.
Login as root in WHM and navigate to:

WHM Home >> Service Configuration >> Apache Configuration >> Global Configuration

And change value of Max Connections Per Child. Default value of Max Connections Per Child is 10,000
You should reduce this value to 1000. This will greatly reduce memory usage by Apache on your server.

Our Recommended VPS Hosting

For security reason, it is recommended that you disable directory listings / indexing on your server. Apache default configuration comes with this feature enabled but its always a good idea to get it disabled unless you really need it.

When this option is enabled, user can see the list of files / folder of a directory when no index file is present.
apache-directory-index

With Apache listings / indexing option disabled, user will not be able to see content of a directory in absence of a index file.

Here is how you can disable this on a cPanel server.

Step 1

Login to your server WHM as root.

Step 2

Navigate to:
WHM Main >> Service Configuration >> Apache Configuration >> Global Configuration

Step 3

Under Directory ‘/’ Options >> uncheck Indexes >> Save >> Restart Apache

apache-directory-index-2

Done!!

Our Recommended VPS Hosting

Apache is the most popular HTTP server. Hers is how you can install Apache server on a CentOS / RedHat server.
Login to your server as root via SSH and run below command:

yum install httpd

Now start Apache

service httpd start

Done!!

Our Recommended VPS Hosting