0 Members and 2 Guests are viewing this topic.
rm -rf /tmp/apache-buildmkdir -p /tmp/apache-buildcd /tmp/apache-build
wget http://www.eu.apache.org/dist//httpd/httpd-2.4.28.tar.gzwget http://www.eu.apache.org/dist//apr/apr-1.6.3.tar.gzwget http://www.eu.apache.org/dist//apr/apr-util-1.6.1.tar.gz
tar zxvf httpd-2.4.28.tar.gztar zxvf apr-1.6.3.tar.gztar zxvf apr-util-1.6.1.tar.gz
cd /tmp/apache-build/apr-1.6.3make distclean./configuremakemake install
cd /tmp/apache-build/apr-util-1.6.1make distclean./configure --with-apr=/usr/local/apr/makemake install
cd /tmp/apache-build/httpd-2.4.28rm -rf /usr/local/apache/conf/httpd.confmake distclean./configure --enable-so --prefix=/usr/local/apache --with-mpm=prefork --enable-ssl --enable-unique-id --enable-ssl=/usr/include/openssl --enable-rewrite --enable-deflate --enable-suexec --with-suexec-docroot="/home" --with-suexec-caller="nobody" --with-suexec-logfile="/usr/local/apache/logs/suexec_log" --enable-asis --enable-filter --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --enable-headers --enable-expires --enable-proxy --enable-cgi --enable-rewrite --enable-spelingmake && make installecho "Include /usr/local/apache/conf/sharedip.conf" >> /usr/local/apache/conf/httpd.confecho "Include /usr/local/apache/conf.d/*.conf" >> /usr/local/apache/conf/httpd.conf sed -i "s|DirectoryIndex index.html|DirectoryIndex index.php index.html|g" /usr/local/apache/conf/httpd.confmv /usr/local/apache/conf.d/suphp.conf /usr/local/apache/conf/suphp.conf
cd /tmp/php-build/wget http://fr2.php.net/distributions/php-5.6.33.tar.gztar zxvf php-5.6.33.tar.gzcd php-5.6.33make distclean./configure --with-apxs2=/usr/local/apache/bin/apxs --with-zlib --enable-soap --enable-exif --with-config-file-path=/usr/local/php --with-config-file-scan-dir=/usr/local/php/php.d --enable-phar --enable-bcmath --enable-calendar --with-curl --with-iconv --with-mysql --with-mysqli --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-mcrypt --with-gettext --with-xsl --with-xmlrpc --with-pdo-mysql=mysqlnd --enable-posix --enable-ftp --with-openssl --enable-mbstring --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-kerberos --with-xsl --with-bz2 --enable-sockets --enable-zip --with-gd --enable-sockets --with-pcre-regex --libdir=/usr/lib64 --disable-cgi --with-mysql-sock=/var/lib/mysql/mysql.sockmake && make installrm -rf /usr/local/php/php.inicp php.ini-production /usr/local/php/php.inised -i "s|.*modules/libphp5.so.*||g" /usr/local/apache/conf/httpd.conf
wget --output-document="/usr/local/apache/conf.d/php.conf" http://dl-package.bullten.in/cwp/files/dso/php.txt
LoadModule proxy_module modules/mod_proxy.soLoadModule rewrite_module modules/mod_rewrite.so
ln -s /usr/local/apache/bin/httpd /usr/sbin/httpdservice httpd restart
chmod 755 /home/user/public_html