How To Install Apache Server Source Package On Linux Server
How To Install Apache Server Source Package On Linux Server
#make install
Or
Or
Prerequisites
Compiling PHP and Apache httpd requires a compiler. Let's install it.
yum install gcc
Let's create a user that will be used by Apache and PHP and the dir where our files
will be located
mkdir /var/www groupadd www-group useradd -d /var/www -g www-group -s
/bin/false www-user chown www-user:www-group /var/www
Create the dir where the source will be downloaded and extracted (it may already
exists).
mkdir /usr/local/src/
Create the configuration files (or copy the recommended ones) to their proper
places
cp /usr/local/src/php-7.0.4/php.ini-production /opt/php-7.0.4/lib/php.ini
cp /opt/php-7.0.4/etc/php-fpm.conf.default /opt/php-7.0.4/etc/php-fpm.conf
include=/opt/php-7.0.4/etc/php-fpm.d/*.conf
Start PHP-FPM
/opt/php-7.0.4/sbin/php-fpm --fpm-config /opt/php-7.0.4/etc/php-fpm.conf
It's done! Now we have a PHP installation and a running PHP-FPM daemon. Let's
install Apache httpd and point it towards PHP-FPM.
Start Apache
/opt/httpd-2.4.20/bin/apachectl start