Here is a simple lamp install script for CentOS 8. #!/bin/bash #update system dnf update #install apache dnf install httpd httpd-tools -y systemctl enable httpd systemctl start httpd systemctl status httpd #update firewall firewall-cmd –permanent –zone=public –add-service=http firewall-cmd –permanent –zone=public…
Category: Apache
Benchmark Apache
How to test apache. Create 2 files: testload.php test.php Create a php file testload.php that checks the existence of another file named test.php in the same directory of two CentOS 7 servers with the same hardware characteristics and load but…
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.…
Install mod_cloudflare.so, file_cache_module.so and mod_mem_cache.so on CentOS 6
How to Install mod_cloudflare.so, file_cache_module.so and mod_mem_cache.so on CentOS 6
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…
How to enable Xcache in cPanel
How to enable Xcache in cPanel to speed up website? Xcache can be enabled in cPanel by using Easy Apache. Log into your cPanel server. After you login, search for “EasyApache” in left column and click on the link. Select…
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 # Admin email, Server Name (domain name) and any aliases ServerName dominname.com ServerAlias www.dominname.com ServerAdmin webmaster@dominname.com # Index file…
How to keep apache and mysql from starting automatically on Ubuntu 14
For all system services in /etc/init.d, disabling them can be done with the update-rc.d command, e.g.: # update-rc.d -f apache2 remove To restore it to running on startup: # update-rc.d apache2 defaults You can also manually start and stop via…
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…
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…