Author Topic: Disable SuPHP And Use DSO with Apache 2.4.28 and PHP 5.6.33  (Read 11691 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Disable SuPHP And Use DSO with Apache 2.4.28 and PHP 5.6.33
« on: January 25, 2018, 07:39:35 PM »
Quote
rm -rf /tmp/apache-build
mkdir -p /tmp/apache-build
cd /tmp/apache-build

Quote
wget http://www.eu.apache.org/dist//httpd/httpd-2.4.28.tar.gz
wget http://www.eu.apache.org/dist//apr/apr-1.6.3.tar.gz
wget http://www.eu.apache.org/dist//apr/apr-util-1.6.1.tar.gz


Quote
tar zxvf httpd-2.4.28.tar.gz
tar zxvf apr-1.6.3.tar.gz
tar zxvf apr-util-1.6.1.tar.gz


Quote
cd /tmp/apache-build/apr-1.6.3
make distclean
./configure
make
make install

Quote
cd /tmp/apache-build/apr-util-1.6.1
make distclean
./configure --with-apr=/usr/local/apr/
make
make install

Quote
cd /tmp/apache-build/httpd-2.4.28
rm -rf /usr/local/apache/conf/httpd.conf
make 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-speling
make && make install
echo "Include /usr/local/apache/conf/sharedip.conf" >> /usr/local/apache/conf/httpd.conf
echo "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.conf
mv /usr/local/apache/conf.d/suphp.conf /usr/local/apache/conf/suphp.conf


Quote
cd /tmp/php-build/
wget http://fr2.php.net/distributions/php-5.6.33.tar.gz
tar zxvf php-5.6.33.tar.gz
cd php-5.6.33
make 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.sock
make && make install
rm -rf /usr/local/php/php.ini
cp php.ini-production /usr/local/php/php.ini
sed -i "s|.*modules/libphp5.so.*||g" /usr/local/apache/conf/httpd.conf


Quote
wget --output-document="/usr/local/apache/conf.d/php.conf" http://dl-package.bullten.in/cwp/files/dso/php.txt


uncomment
Quote
LoadModule proxy_module modules/mod_proxy.so
LoadModule rewrite_module modules/mod_rewrite.so

Quote
ln -s /usr/local/apache/bin/httpd /usr/sbin/httpd
service httpd restart

Quote
chmod 755 /home/user/public_html


Offline
*
Re: Disable SuPHP And Use DSO with Apache 2.4.28 and PHP 5.6.33
« Reply #2 on: March 29, 2018, 08:30:14 PM »
cd /tmp/apache-build/apr-1.6.3
make distclean

says:
make: *** No rule to make target `distclean'.  Stop.

I think this tutorial is broken :S

Offline
*
Re: Disable SuPHP And Use DSO with Apache 2.4.28 and PHP 5.6.33
« Reply #3 on: March 29, 2018, 08:51:25 PM »
do not use those distclean and install before: yum install expat-devel

after will continue with more error, I gave up LOL ... unresolved external related with XML...

Offline
***
Re: Disable SuPHP And Use DSO with Apache 2.4.28 and PHP 5.6.33
« Reply #4 on: March 30, 2018, 09:48:22 AM »
Its working very fine already verified