Linux Apache Useful Command

Finding out what user Apache is running as? ps aux | egrep ‘(apache|httpd)’ ps -ef | egrep ‘(httpd|apache2|apache)’ | grep -v `whoami` | grep -v root | head -n1 | awk ‘{print $1}’ apachectl -S   Change folder permissions and…

[proxy_fcgi:error](70007)The timeout specified has expired

[proxy_fcgi:error](70007)The timeout specified has expired   Add the following lines into httpd.conf or apache2.conf (depending on your system) file: Timeout 600 ProxyTimeout 600 and restart apache sudo /etc/init.d/apache2 restart   OR For the latest versions of httpd and mod_proxy_fcgi you can simply add timeout= to the…

UPDATED-V2 : COMPILE AND BUILD APACHE2 AND PHP-FPM FROM SOURCE ON LINUX (PART 2)

Download or copy PHP. Current Directory ~ src https://www.php.net/downloads.php wget https://www.php.net/distributions/php-7.3.27.tar.gz sudo gunzip php-7.3.27.tar.gz or gzip -d php-7.3.27.tar.gz tar -xvf php-7.3.27.tar.gz   First Install PHP dependencies CURL Libjpeg Libpng FreeType2 Iconv GD (Optional) icu Tidy Libxml2 GMP Openldap LibDb Cmake…

Updated-V2 : Compile and Build Apache2 and PHP-Fpm From Source on Linux (Part 1)

Build Apache2.4.46 from souce manually. Install Apache2.4.46 and PHP-Fpm-7.3.27 offline manually Directory Structure opt src www Download or copy apache. Current Directory ~ src https://apr.apache.org/download.cgi wget https://www-eu.apache.org/dist//httpd/httpd-2.4.46.tar.gz gunzip httpd-2.4.46.tar.gz or gzip -d httpd-2.2.9.tar.gz tar -xvf httpd-2.4.46.tar   First Install Apache2…

Compile and Build Apache2 and PHP-Fpm From Source on Linux (Part 2)

Download or copy PHP. Current Directory ~ src https://www.php.net/downloads.php wget https://www.php.net/distributions/php-7.3.16.tar.gz sudo gunzip php-7.3.16.tar.gz or gzip -d php-7.3.16.tar.gz tar -xvf php-7.3.16.tar.gz   First Install PHP dependencies Openssl Zlib Libxml Curl Icu   Download and install Openssl if not installed already…

Compile and Build Apache2 and PHP-Fpm From Source on Linux (Part 1)

Build Apache2 from souce manually. Install Apache2 and PHP-Fpm offline manually Directory Structure opt src www Download or copy apache. Current Directory ~ src https://apr.apache.org/download.cgi sudo wget https://www-eu.apache.org/dist//httpd/httpd-2.4.41.tar.gz sudo gunzip httpd-2.4.41.tar.gz or gzip -d httpd-2.2.9.tar.gz tar -xvf httpd-2.4.41.tar   First…

Install Apache, Mysql, PHP (LAMP) on Ubuntu

Step 1: Update your system sudo apt-get update Step 2: Install Apache server sudo apt-get install apache2 apache2-doc apache2-utils libexpat1 ssl-cert Step 3: Install PHP (php7.2 latest version of PHP) sudo apt-get install libapache2-mod-php7.2 php7.2 php7.2-common php7.2-curl php7.2-dev php7.2-gd php-pear php-imagick…

Install Multiple PHP Version with Apache on Ubuntu 18.04 (Part -2)

To Install mysql follow below tutorial INSTALLING NGINX, PHP, MYSQL (LEMP) STACK ON UBUNTU 18.04 – PART -2    Install Phpmyadmin(for database) sudo apt-get install phpmyadmin Manually Installing phpMyAdmin (Ubuntu 18.04) Posted on Jan 17, 2019 in Tutorials Sometimes installing phpMyAdmin…

Install Multiple PHP Version with Apache on Ubuntu 18.04 (Part -1)

Apache Installation Install Apache web server from the official repository. Launch terminal on your system or login with ssh for remote systems. Execute the following commands to install the latest available version of Apache web server. sudo apt update sudo…

Install Apache, PHP and MySQL (LAMP) on CentOS 7

Prerequsitis The two most popular rpm repositories REMI and EPEL have most of the updated packages. They are also providing the latest packages for LAMP setup. Enable both repositories on your system using the following commands on your CentOS 7…