Category: Apache

Protecting Apache Server From Denial-of-Service Attacks

Protecting Apache Server From Denial-of-Service Attacks Denial-of-Service (DoS) attack is an attempt to make a machine or network resource unavailable to its intended users, such as to temporarily or indefinitely interrupt or suspend services of a host connected to the Internet. A distributed denial-of-service (DDoS) is where the attack source

PHP Sessions in Memcached

PHP Sessions in Memcached The moment a PHP application grows to run on more servers, normally people will see problems caused by PHP sessions. If the application is not persistent you are lucky and don’t care about this, but if not you will quickly see this regardless of how good

Installing Lighttpd with PHP (PHP-FPM mode) and MySQL or MariaDB on Ubuntu 15.04

Installing Lighttpd with PHP (PHP-FPM mode) and MySQL or MariaDB on Ubuntu 15.04 Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an Ubuntu 15.04 server with PHP support (through PHP-FPM) and MySQL. PHP-FPM (FastCGI Process Manager) is

Check / Determine Your Version of Tomcat and Java

Determine Your Version of Tomcat using console Linux: java -cp lib/catalina.jar org.apache.catalina.util.ServerInfo Windows: java.exe -cp lib\catalina.jar org.apache.catalina.util.ServerInfo   The output should be similar to this: java -cp catalina.jar org.apache.catalina.util.ServerInfo Server version: Apache Tomcat/7.0.42 Server built: Jul 18 2014 10:08:19 Server number: 7.0.42.0 OS Name: Linux OS Version: 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 Architecture: amd64

Enable Apache UserDir In CentOS 7 / RHEL 7 with SELinux

Lets show you how to install userdir for Centos 7 with Selinux Enabled. In this method all users should have their own public_html directory. 1. Go to root user su – root 2. Create /etc/httpd/conf.d/userdir.conf file Install apache:  yum install httpd -y Enable Apache Userdirs vi  /etc/httpd/conf.d/userdir.conf add: <IfModule mod_userdir.c> #

Chmod all files to 644 and all folders to 755 of a directory

Why to chmod ? Using suPHP or FastCGI you gonna notice that they need special permissions. In dso for example 777 is the default. Having those permissions using suPHP is first dangerous and secondly not recommended Especially when almost all providers forbid 777 when using suPHP. So we need to

LAMP Server (Apache / MariaDB /PHP) on Fedora 19+ and Centos/RHEL 7

LAMP is a combination of operating system and open-source software stack. The acronym LAMP comes from the first letters of Linux, Apache HTTP Server, MySQL/MariaDB database, and PHP, Perl or Python (and sometimes PhpMyAdmin too.)   Installing Apache Change to root (if not root already) user using the following command:

Install LAMP Server (Apache, MySQL or MariaDB, PHP) On Ubuntu 14.10/14.04/13.10

LAMP is a combination of operating system and open-source software stack. The acronym LAMP comes from the first letters of Linux, Apache HTTP Server, MySQL or MariaDB database, and PHP/Perl/Python. In this tutorial, we will see how to setup LAMP server on Ubuntu 14.10 system. Install Apache Apache is an