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…

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: geekdecoder.com *.dominname.com #NameVirtualHost *:80 <VirtualHost *: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…

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…

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…

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…