FIX TO : Reason: Protocol https not supported or disabled in libcurl'

Hey guys there is not a quick fix to  this problem ..  soo lets start.

How did I install my own PHP/cURL/OpenSSL for use with the shared web-server?

You can do the above by the following commands:

The steps to install your own OpenSSL/cURL/PHP

Install OpenSSL

mkdir ~/src
cd ~/src
wget http://www.openssl.org/source/openssl-1.0.0g.tar.gz
tar -xzf openssl-1.0.0g.tar.gz 
cd openssl-1.0.0g
./Configure --prefix=$HOME linux-x86_64
make
make install

Install Curl

cd ~/src
wget http://curl.haxx.se/download/curl-7.24.0.tar.gz
tar -xzf curl-7.24.0.tar.gz 
cd curl-7.24.0
./configure --prefix=$HOME --with-ssl=$HOME/lib
make
make install

Build PHP 5.4 against the cURL/OpenSSL installed above

cd ~/src
wget http://in2.php.net/get/php-5.4.0.tar.bz2/from/sg2.php.net/mirror
tar -xjf php-5.4.0.tar.bz2 
cd php-5.4.0
./configure --prefix=$HOME --with-pdo-mysql --with-pdo-pgsql=/usr/pgsql-9.1 --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-mbstring --enable-soap --enable-zip --with-curl=$HOME --with-freetype-dir --with-gd --with-gettext --with-gmp --with-iconv --with-jpeg-dir --with-kerberos --with-mhash --with-mysql --with-mysqli --with-openssl=$HOME --with-pgsql=/usr/pgsql-9.1 --with-png-dir --with-regex --with-xmlrpc --with-xsl --with-zlib-dir --with-config-file-path=$HOME/lib --without-pear --enable-sockets --enable-intl --with-mysql-sock=/var/lib/mysql/mysql.sock
make
make install

Convert your app to use your own PHP installation

cd ~/webapps/example_app
cp $HOME/bin/php-cgi my_php.cgi
echo "
Action php_custom /my_php.cgi

    SetHandler php_custom

">>.htaccess

If you want to use FastCGI

cd ~/webapps/example_app
cp $HOME/bin/php-cgi my_php.fcgi
echo "
Action php_custom /my_php.fcgi

    SetHandler php_custom

">>.htaccess

0 pensamientos:

Post a Comment

feedback!