Tutorial Tag

apache

  1. Apache Web Server Hardening (Part-I)

    Apache is widely used web server at present date. Having a default configuration is highly vulnerable to exploitation as it supplies most sensitive information to attacker. So, hardening a apache web server enhances the server security and prevents attacks on server that is caused by the exploitation of default setting of the apache web server.
  2. How to integrate litespeed with WHM/Cpanel

    Follow the steps below to install Litespeed as a cPanel Plugin. This would help you to install, configure and manage LiteSpeed from the WHM itself.1) Login to your cpanel server as root user and then use below commands to download plugin. # cd /usr/local/src # curl http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh | sh2) Log-in to WHM panel wtih root user & you should see “Litespeed Web Server” menu under “Plugins” menu.3) Click ‘Install LiteSpeed’ and let it run through the installation procedure, which is completely automated.4) Upload the trial license key file...
  3. How To Redirect HTTP to HTTPS using an .htaccess file

    The below code when added to an .htaccess file will automatically Redirect HTTP traffic to https:RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] ...
  4. How to install LAMP (Linux Apache, MariaDB & PHP) on CentOS 7

    By Patrick Raftery tagged in apache,applications,centos,install,lamp,mariadb,php,systemctl
    In the following tutorial we are going to show you how to install LAMP (Linux Apache, MariaDB & PHP) on a CentOS 7 VPS.What is LAMP?LAMP is actually an acronym for a web services solution stack consisting of Linux, the Apache HTTP Server, the MySQL or MariaDB database engines, and the PHP, Perl or Python programming language. All components are free and open-source software, and the combination is suitable for building dynamic web pages.Requirements?We are using our ...
  5. How To Update Your Apache Module From Source Code

    Introduction Are you using Apache as a web server? Of course you are. In fact, most of the world also uses it. It's one of the most popular web servers on the planet. It's very flexibly and allows you to add lots of modules to customize it to your needs.Sometimes you need to upgrade one of those modules due to new features, bugs in the older versions, performance issues and so on. The repository's you've chosen for your Linux distribution does not always have...
  6. How To Redirect or block traffic based on country geographical location using Apache mod_geoip

    In this tutorial you will learn how to block or redirect web traffic based on the visitor's country (geographical location) using Apache's geoip mod.1. Apache mod_geoip installation Assuming that you already have a Apache webserver installed and running we will start by the installing mod_geoip:UBUNTU/DEBIAN # apt-get install libapache2-mod-geoip CENTOS/REDHAT/FEDORA ( epel enabled only ) # yum install mod_geoip.x86_64Confirm that geoip and rewrite modules are enabled:# apache2ctl -M | grep -E "geoip|rewrite" geoip_module (shared) rewrite_module (shared)If the above command does not produce any output or if only a single mod is listed the enable...
  7. How To Install Drupal 7 On Ubuntu Linux

    Install Drupal 7 In this tutorial you will learn how to Install Drupal 7 ( CMS ) on Ubuntu Linux using Apache web server and MySQL database. This installation guide assumes that Apache web server and MySQL database are already installed on your Linux system.These instructions can be also used on a Debian server or any other Debian based Linux systems.All commands below are run as root. If you are a sudo user, prefix all commands below with sudo.Prerequisites Installation # apt-get install php5-mysql apache2 \ mysql-server...
  8. How To Install Apache Solr 4.7 multicore on Ubuntu 12.04 and Tomcat7

    Install Apache Solr 4.7 multicore Overview I will show you how to install the Apache Solr search engine under Tomcat7servlet container on Ubuntu 12.04.4 LTS (Precise Pangolin) to be used later with Drupal 7. In this writeup I'm gonna discuss only the installation and setup of the ApacheSolr server. Specific Drupal configuration and/or Drupal side configuration to be discussed in future writeup.Install Tomcat7 We’re installing Oracle Java 7 before installing Tomcat7:$ sudo apt-get purge oracle-java6-installer $ sudo apt-get install software-properties-common python-software-properties $...
  9. How To Install Varnish 4 With Apache 2 On Ubuntu 14.04

    install varnish Introduction Apache is popular web server used by most web hosting companies. install Varnish cache - an HTTP accelerator and reverse proxy. We can use it with any HTTP server. In this example, we will be using Apache 2.As a web server, Apache can use a considerable amount of server resources to serve pages. If you are running a high-traffic website, then you might need an HTTP accelerator to boost server performance. Varnish will help you with that.Install Apache server Activate it by using the following commands:sudo...
  10. How TO Configure Apache Virtual Hosts On A VPS

    Introduction to Apache Virtual Hosts One great benefit of VPS hosting is being able to easily host multiple websites off the same server. Owning a VPS offers much more than just web hosting but in this tutorial we will show you how to setup virtual hosts with Apache.Apache HTTP Server is probably one of the most influential pieces of open-source software that let to the explosive growth of the World Wide Web today. Still going strong it is the leading web server used across the internet today. Apache...
  11. Apache CentOS 6 Can Not Send eMail And Drupal Gets HTTP Request Status Fails

    Pressflow Send Mail error I’m installing a Pressflow 6 on a new machine running CentOS 6. I’m using Apache MPM Worker with FastCGI. Then I get the classical mail error:Unable to send mail. Please contact the site administrator if the problem persists.Then I try to use sendmail:sendmail -v yourmail@example.com < testmailWhere testmail is a file containing these lines:Subject: test mail Ozu Yasujiro Ozu [blank line here]And i get the message. PHP cannot send email through apache!Trying a simple php script to send mail like drupal core do I got this error: sendmail: fatal:...
  12. How To Check Apache Connections

    Introduction to Apache server You can use the following command to see how many connections a specific IP has to an Apache server running on port 80.The more connections from an IP, the more of a chance that the server could be under some type of attack from that IP.netstat -tn --inet 2> /dev/null| grep ':80' | awk '/tcp[\ ]*[0-9]+[\ ]*[0-9]+[\ ]+[^\ ]+[\ ]*[^\ ]*/ { print $5; }' | cut -d':' -f1 | sort | uniq -c | sort -n ...
  13. How To Remove / Modify open_basedir In Plesk

    By Jessica tagged in apache,Modify,open_basedir,Plesk,Remove
    Let’s think about a situation where you have a subdomain and you want it to be able to access files from the domain httpdocs directory. You cannot do that by default in Plesk, because of open_basedir. You can edit the httpd.include file in: /var/www/vhosts/domain.com/conf/httpd.includebut that will only work until the next plesk restart or major modification.But, the httpd.include file that manages a domain and subdomain explicitly says: # ATTENTION! # DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK # FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM # MODIFICATIONS TO BE...
  14. How To Redirect Apache NON-SSL to SSL

    By Christopher Belson‏ tagged in apache,NON SSL,Redirect,SSL
    If you want to force your site visitors to view your web site over an SSL connection and you have your SSL vhost already properly created in Apache, you can add the following to your .htaccess file in the root of your site:RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}...
  15. How To Install Apache On Ubuntu

    By Jill tagged in apache,install,Install Apache,ubuntu
    Apache HTTP Server, commonly referred to as just Apache, is a web server. It is the “A” in the “LAMP” acronym, which stands for Linux (you have that, it’s your Ubuntu VPS where you’ll install Apache!), Apache, MySQL and PHP (or, Perl, or, Python?)Installing Apache with apt-get is simple. SSH to your Pod as root, and run these commands: root@mypod:~# sudo apt-get update root@mypod:~# sudo apt-get install apache2You can test that this worked by opening a web browser, and going to http://youripaddress/ which should show you a screen that says “It works!”If you don’t know your ip...
  16. How To Start, Stop, And Restart Apache Web Server On Ubuntu

    To start, stop, and restart the Apache Web Server (httpd) on Ubuntu, you can use the /etc/init.d/apache2 script.You need to ssh to your Pod as root, or use sudo command. Here are each of the commands:Start: root@mypod:~# sudo /etc/init.d/apache2 startStop: root@mypod:~# sudo /etc/init.d/apache2 stopRestart: root@mypod:~# sudo /etc/init.d/apache2 restart...
  17. ImageMagick [Imagick] PHP Class Broken Or Fails To Install

    Introduction to Imagick Some versions of CentOS (including the most recent 5.5) have an issue with a buggy 6.4.8 RPM version of ImageMagick. This version prevents the Imagick PHP class from working properly, and also prevents the extension from being installed via PECL.If you are using this PHP class on your site, you will see an error something like:Fatal error: Class 'Imagick' not found in /home/user/public_html/file.php on line 92When trying to install via PECL, the error will be: ...
  18. How To Stress Test An Apache Server Using AB (Apache Benchmark)

    Using a benchmarking tool to test the limits of your apache server will help you prepare for upgrades.Installing AB on CentOS (with cPanel)cPanel adds in an exclusion for all packages named httpd* (any files starting with httpd) to prevent accidentally overwriting apache.SSH into your server.Edit /etc/yum.conf and remove the entry httpd* from the Exclude linevi /etc/yum.confexclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* spamassassin* squirrelmail*Once...
  19. How To Redirect HTTP Traffic To HTTPS Using An .htaccess File

    The below code when added to an .htaccess file will automatically redirect any traffic destined for http: to https:RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]...
  20. How To Put Your Site Into Maintenance Mode

    ...