We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
VestaCP MultiPHP (Debian/Ubuntu)
Re: VestaCP MultiPHP (Debian/Ubuntu)
Hmm, the script is "Vesta Based" (check /usr/local/vesta/data/templates/web/apache2/phpcgi.sh) with small modification. Try to use the "phpcgi" template, then rebuild your user and check if you have a file in /home/$user/web/$domain/cgi-bin/.pligin wrote: Yes
I think this script is not workingin the folder "home/$user/web/$domain/cgi-bin/php" does not create any filesCode: Select all
wrapper_script='#!/usr/local/php/php53/bin/php-cgi -c/usr/local/php/php53/etc/php.ini' wrapper_file="/home/$user/web/$domain/cgi-bin/php" echo "$wrapper_script" > $wrapper_file chown $user:$user $wrapper_file chmod -f 751 $wrapper_file
P.S. nginx + apache2
If you want, you can provide me your login informations to your server (pn), will check it tomorrow morning.
Re: VestaCP MultiPHP (Debian/Ubuntu)
I don't have a file in /home/$user/web/$domain/cgi-bin/. I reviewed all of the templates - all uniformlyScIT wrote:Hmm, the script is "Vesta Based" (check /usr/local/vesta/data/templates/web/apache2/phpcgi.sh) with small modification. Try to use the "phpcgi" template, then rebuild your user and check if you have a file in /home/$user/web/$domain/cgi-bin/.pligin wrote: Yes
I think this script is not workingin the folder "home/$user/web/$domain/cgi-bin/php" does not create any filesCode: Select all
wrapper_script='#!/usr/local/php/php53/bin/php-cgi -c/usr/local/php/php53/etc/php.ini' wrapper_file="/home/$user/web/$domain/cgi-bin/php" echo "$wrapper_script" > $wrapper_file chown $user:$user $wrapper_file chmod -f 751 $wrapper_file
P.S. nginx + apache2
If you want, you can provide me your login informations to your server (pn), will check it tomorrow morning.
Re: VestaCP MultiPHP (Debian/Ubuntu)
As I wrote already, if you do the manual "step by step" it will work :-). Your problem was the inside of the wrapper script:pligin wrote:I don't have a file in /home/$user/web/$domain/cgi-bin/. I reviewed all of the templates - all uniformly
Code: Select all
...
wrapper_script='#!/usr/local/php/php53/bin/php-cgi -c/usr/local/php/php53/etc/php.ini'
-> wrapper_file="$home_dir/$user/web/$domain/cgi-bin/php"
...
Code: Select all
..
wrapper_script='#!/usr/local/php/php53/bin/php-cgi -c/usr/local/php/php53/etc/php.ini'
-> wrapper_file="/home/$user/web/$domain/cgi-bin/php"
...
EDIT: Ok, also a bit missdocumentation in on myside. Linked the wget to github site, not to raw files: https://git.scit.ch/rs/VestaCP-MultiPHP ... f2212114d5
Re: VestaCP MultiPHP (Debian/Ubuntu)
As I wrote already, if you do the manual "step by step" it will work :-). Your problem was the inside of the wrapper script:ScIT wrote:pligin wrote:I don't have a file in /home/$user/web/$domain/cgi-bin/. I reviewed all of the templates - all uniformly
Code: Select all
...
wrapper_script='#!/usr/local/php/php53/bin/php-cgi -c/usr/local/php/php53/etc/php.ini'
-> wrapper_file="$home_dir/$user/web/$domain/cgi-bin/php"
...
Code: Select all
..
wrapper_script='#!/usr/local/php/php53/bin/php-cgi -c/usr/local/php/php53/etc/php.ini'
-> wrapper_file="/home/$user/web/$domain/cgi-bin/php"
...
# PHP 5.3
wget http://git.scit.ch/rs/VestaCP-MultiPHP/ ... r/php53.sh -O /usr/local/vesta/data/templates/web/apache2/php53.sh
wget http://git.scit.ch/rs/VestaCP-MultiPHP/ ... er/php.tpl -O /usr/local/vesta/data/templates/web/apache2/php53.tpl
wget http://git.scit.ch/rs/VestaCP-MultiPHP/ ... r/php.stpl -O /usr/local/vesta/data/templates/web/apache2/php53.stpl
this string copied the html code for the page in vesta templates, so I had to download the template files from the site https://git.scit.ch/rs/VestaCP-MultiPHP/tree/master
... "step by step"...
Re: VestaCP MultiPHP (Debian/Ubuntu)
already noted and fixed:pligin wrote: this string copied the html code for the page in vesta templates, so I had to download the template files from the site https://git.scit.ch/rs/VestaCP-MultiPHP/tree/master
... "step by step"...
And as information: It's not a payed solution, it's provided as it is. If you like to contribute, you can do it. But it seems to be hard to just say "thanks" for a free solution :-)ScIT wrote: EDIT: Ok, also a bit missdocumentation in on myside. Linked the wget to github site, not to raw files: https://git.scit.ch/rs/VestaCP-MultiPHP ... f2212114d5
Re: VestaCP MultiPHP (Debian/Ubuntu)
if file was not created maybe is afected for bug
https://bugs.vestacp.com/issues/287
v16 bug, fastcgi template not working property, miss some arguments and not check correct path
You can check this solution https://github.com/serghey-rodin/vesta/pull/759
https://bugs.vestacp.com/issues/287
v16 bug, fastcgi template not working property, miss some arguments and not check correct path
You can check this solution https://github.com/serghey-rodin/vesta/pull/759
Re: VestaCP MultiPHP (Debian/Ubuntu)
I have a problem when compiling with this command in debian
its not installing all necessary streams such as https, ftps..
In phpinfo it shows this in configure command
any idea how i can compile it?
Code: Select all
phpbrew install 7.0 +default +openssl=shared -- --with-openssl-dir=/usr/include/openssl --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysql=mysqlnd --with-mysqli=mysqlnd --enable-pdo --with-pdo-mysql=mysqlnd --enable-exif --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --with-t1lib --with-zlib-dir=/usr --with-mcrypt=/usr --with-mhash --with-xsl=/usr --enable-zip --enable-cgi --with-curl --with-gd --enable-pcntl --enable-mbregex --enable-gd-native-ttf --with-libdir=lib64 --enable-dba=shared --enable-intl --with-readline=/usr --enable-simplexml \--enable-soap --enable-zip --with-mhash=yes --enable-shmop --enable-sockets --enable-wddx --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-cdb --with-iconv --enable-exif --enable-ftp --with-gettext --with-pic
In phpinfo it shows this in configure command
Code: Select all
'./configure' '--cache-file='''/usr/local/php/cache/config.cache'''' '--prefix=/usr/local/php/php/php-7.0.13' '--with-config-file-path=/usr/local/php/php/php-7.0.13/etc' '--with-config-file-scan-dir=/usr/local/php/php/php-7.0.13/var/db' '--disable-all' '--enable-session' '--enable-short-tags' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--with-openssl=shared' '--enable-libxml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-opcache' '--with-bz2=/usr' '--enable-cli' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-json' '--enable-mbstring' '--with-mhash=/usr' '--with-pcre-regex' '--enable-phar' '--enable-posix' '--enable-tokenizer' '--with-curl=/usr' '--with-pear=/usr/local/php/php/php-7.0.13/lib/php' '--with-openssl-dir=/usr/include/openssl' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--enable-pdo' '--with-pdo-mysql=mysqlnd' '--enable-exif' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr' '--with-t1lib' '--with-zlib-dir=/usr' '--with-mcrypt=/usr' '--with-mhash' '--with-xsl=/usr' '--enable-zip' '--enable-cgi' '--with-curl' '--with-gd' '--enable-pcntl' '--enable-mbregex' '--enable-gd-native-ttf' '--with-libdir=lib64' '--enable-dba=shared' '--enable-intl' '--with-readline=/usr' '--enable-simplexml' '--enable-soap' '--with-mhash=yes' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-cdb' '--with-iconv' '--enable-ftp' '--with-gettext' '--with-pic'
Re: VestaCP MultiPHP (Debian/Ubuntu)
Don't know what you exactly mean with https/ftps streams. Normaly if you need something additional, you can adjust the phpbrew compilation string.krok wrote: its not installing all necessary streams such as https, ftps..
Re: VestaCP MultiPHP (Debian/Ubuntu)
It was user fault, i mixed up the workspace and edited the wrong files... solved now. thanks!ScIT wrote:Don't know what you exactly mean with https/ftps streams. Normaly if you need something additional, you can adjust the phpbrew compilation string.krok wrote: its not installing all necessary streams such as https, ftps..
Re: VestaCP MultiPHP (Debian/Ubuntu)
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 ?
Please let me know how do i set host specific CLI version ?