Category : Apache

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 –add-service=https firewall-cmd –reload #install mariadb dnf install mariadb-server mariadb -y systemctl start mariadb systemctl enable ..

Read more

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 with different MPM. One of them will use event and the other one will use ..

Read more

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

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

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 “Previously Saved Config” and click on “start customizing”. For both Apache and PHP, click on ..

Read more

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 and Document Root (where the public files are located) DirectoryIndex index.html index.php DocumentRoot /home/dominname/public_html # ..

Read more

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

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