VestaCP MultiPHP (Debian/Ubuntu)
Re: VestaCP MultiPHP (Debian/Ubuntu)
I do not have any solution to change php on cli atm. Also noted this problem with Magento 2 installation, whitch is impossible on multiphp envroiment. But feel free, if you find a solution, to post it here.nik00726 wrote:It is working fine but What about PHP CLI version ? It is still shown old PHP version not host set php CLI.
Please let me know how do i set host specific CLI version ?
Re: VestaCP MultiPHP (Debian/Ubuntu)
Can you help me on that.When I complie/Build php adn after that PHPinfo it it show openssl disbale
OpenSSL support disabled (install ext/openssl)
I have try to figured it but could not get why it is disabled.
OpenSSL support disabled (install ext/openssl)
I have try to figured it but could not get why it is disabled.
Re: VestaCP MultiPHP (Debian/Ubuntu)
Can you check if you have any files in openssl (dev) dir?nik00726 wrote:Can you help me on that.When I complie/Build php adn after that PHPinfo it it show openssl disbale
OpenSSL support disabled (install ext/openssl)
I have try to figured it but could not get why it is disabled.
Code: Select all
ls /usr/include/openssl
Re: VestaCP MultiPHP (Debian/Ubuntu)
Hello,
Here is output of command you have given
I am using VPS and I have following info.Also I am using latest vestacp with that there us default php 5.6.4 and have no problem in openssl.If I use phpbrew's php 5.6.28 then problem in open ssl show OpenSSL support==>disabled (install ext/openssl)
Here is output of command you have given
Code: Select all
root@mail:~# ls /usr/include/openssl
aes.h camellia.h des.h ec.h kssl.h opensslv.h rc2.h srtp.h ts.h
asn1.h cast.h des_old.h ecdh.h lhash.h ossl_typ.h rc4.h ssl.h txt_db.h
asn1_mac.h cmac.h dh.h ecdsa.h md4.h pem.h ripemd.h ssl2.h ui.h
asn1t.h cms.h dsa.h engine.h md5.h pem2.h rsa.h ssl23.h ui_compat.h
bio.h comp.h dso.h err.h modes.h pkcs12.h safestack.h ssl3.h whrlpool.h
blowfish.h conf.h dtls1.h evp.h obj_mac.h pkcs7.h seed.h stack.h x509.h
bn.h conf_api.h e_os2.h hmac.h objects.h pqueue.h sha.h symhacks.h x509_vfy.h
buffer.h crypto.h ebcdic.h krb5_asn.h ocsp.h rand.h srp.h tls1.h x509v3.h
Code: Select all
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
Re: VestaCP MultiPHP (Debian/Ubuntu)
Hello,
Installation works fine, but i've some timeout problems on nginx+apache installation
when I execute some script I receive
504 Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.
i've tried to increase some timeout limit, but after 60 seconds.. webserver give me this 504 :(
PS. with distro default 5.5 all works fine
Installation works fine, but i've some timeout problems on nginx+apache installation
when I execute some script I receive
504 Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.
i've tried to increase some timeout limit, but after 60 seconds.. webserver give me this 504 :(
PS. with distro default 5.5 all works fine
Re: VestaCP MultiPHP (Debian/Ubuntu)
Check your php.ini file, they are for each version different. Normaly they should be under the folowing path:ang3lx wrote:Hello,
Installation works fine, but i've some timeout problems on nginx+apache installation
when I execute some script I receive
504 Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.
i've tried to increase some timeout limit, but after 60 seconds.. webserver give me this 504 :(
PS. with distro default 5.5 all works fine
Code: Select all
/usr/local/php/php-[version]/etc/php.ini
Re: VestaCP MultiPHP (Debian/Ubuntu)
thanks for replyScIT wrote: Check your php.ini file, they are for each version different. Normaly they should be under the folowing path:You don't have to restart your apache2 service, because they will be reloaded on every php requested.Code: Select all
/usr/local/php/php-[version]/etc/php.ini
i've already edited /usr/local/php/php56/etc/php.ini
Code: Select all
max_execution_time = 1200
max_input_time = 1200
max_input_vars = 99000
memory_limit = 1024M
Re: VestaCP MultiPHP (Debian/Ubuntu)
thanks for replyang3lx wrote: You don't have to restart your apache2 service, because they will be reloaded on every php requested.
i've already edited /usr/local/php/php56/etc/php.ini
Code: Select all
max_execution_time = 1200
max_input_time = 1200
max_input_vars = 99000
memory_limit = 1024M
Can you check with phpinfo, if the values are correctly displayed in configuration for your webpage?
Code: Select all
<?php
echo phpinfo();
?>
Re: VestaCP MultiPHP (Debian/Ubuntu)
yes, values are correctly displayedScIT wrote: Can you check with phpinfo, if the values are correctly displayed in configuration for your webpage?
Code: Select all
<?php echo phpinfo(); ?>
Re: VestaCP MultiPHP (Debian/Ubuntu)
In my case, the file php_openssl.so is missing from the extension directory. But when I go to the dir, there have few files and openssl.so, so basically I just create symlink to the file openssl.so with filename php_openssl.so :)nik00726 wrote:Can you help me on that.When I complie/Build php adn after that PHPinfo it it show openssl disbale
OpenSSL support disabled (install ext/openssl)
I have try to figured it but could not get why it is disabled.
If you are using 5.5.38 PHP, you need to do this:
1. go to
Code: Select all
/usr/local/php/php/php-5.5.38/lib/php/extensions/no-debug-non-zts-20121212
Code: Select all
ln -s openssl.so php_openssl.so