View Apache Statistics with Apache mod_status module

The Apache mod_status module is something that can be very useful when troubleshooting high CPU or Memory usage with Apache. Taken it directly from the Apache documentation: – The number of worker serving requests. – The number of idle worker. – The status of each worker, the number of requests that worker has performed and Read more about View Apache Statistics with Apache mod_status module[…]

Install xcache

CentOS 6 # yum install php-xcache xcache-admin Debian/Ubuntu/Linux Mint # apt-get install php5-xcache Configure RHEL/CentOS/Fedora # nano /etc/php.d/xcache.ini Debian/Ubuntu/Linux Mint # nano /etc/php5/conf.d/xcache.ini OR # nano /etc/php5/mods-available/xcache.ini once you’re done with configuration settings, restart your Apache web server. # /etc/init.d/httpd restart # /etc/init.d/apache2 restart Verify # php -v Enabling XCache Admin Panel for PHP By Read more about Install xcache[…]

Set up vhost in CentOS

Make a vhosts file in /etc/httpd/conf.d # nano dominname.conf Add the following # file: /etc/http/conf.d/dominname.conf # vhost: secure-a-tech.com *.dominname.com #NameVirtualHost *:80 # Admin email, Server Name (domain name) and any aliases ServerName dominname.com ServerAlias www.dominname.com ServerAdmin webmaster@dominname.com # Index file and Document Root (where the public files are located) DirectoryIndex index.html index.php DocumentRoot /home/dominname/public_html # Read more about Set up vhost in CentOS[…]

Install Apache, Mysql and PHP on Ubuntu 14.04

How to install Apache, MySQL and PHP on Ubuntu 14.04 Update # sudo apt-get update Apache # sudo apt-get install apache2 Install MySQL # sudo apt-get install mysql-server php5-mysql # sudo mysql_install_db # mysql_secure_installation Install PHP # sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt Restart Server # sudo /etc/init.d/apache2 restart Check Apache Open a web browser Read more about Install Apache, Mysql and PHP on Ubuntu 14.04[…]

The requested resource does not allow request data with POST requests

The requested resource /marketplace/marketplaceaccount/editProfile/ does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit mod_security configuration in the /etc/httpd/conf.d/mod_security.conf file: # Maximum request body size we will # accept for buffering SecRequestBodyLimit 131072 You should be able to change this value and restart apache Read more about The requested resource does not allow request data with POST requests[…]

Find and disable specific ModSecurity rules

ModSecurity uses can help block potential attack attempts from malicious users, but sometimes it can also block legitimate requests. Note: Using SecRuleEngine Off in your modsecurity configuration, you won’t want to put that in your ModSecurity configuration file. As that completely turns off ModSecurity. The SecRuleRemoveById setting is used instead to only disable one specific Read more about Find and disable specific ModSecurity rules[…]