apt update
apt install htop iftop iotop mc curl
curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | bash -s –
apt purge apache2*
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh –nginx yes –phpfpm yes –apache no –named yes –remi yes –vsftpd yes –proftpd no –iptables yes –fail2ban yes –quota no –exim no –dovecot no –spamassassin no –clamav no –softaculous yes –mysql yes –postgresql no –hostname idrv.ru –email ilevkov@gmail.com –password w1thgod5helpdewev0
/usr/local/vesta/bin/v-restore-user admin admin.2019-07-31_05-10-02.tar
*******************************************
https://gitlab.com/desbest/celeron-dude-indexer/
**********************************PHP5 to PHP7*************
First Remove PHP5
CODE: SELECT ALL
apt-get remove –auto-remove php5-fpm
Presuming you are on Debian 8 and you want to install PHP 7.1 FPM
Add repo
CODE: SELECT ALL
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” > /etc/apt/sources.list.d/php.list
apt-get update
Install PHP 7.3 FPM
CODE: SELECT ALL
apt install -y php7.3-fpm
Install Supporting PHP7.3 modules
CODE: SELECT ALL
apt install -y php7.3-xml php7.3-zip php7.3-mysql php7.3-curl php7.3-mbstring php7.3-json php7.3-gd php7.3-intl php7.3-mcrypt php7.3-xsl php7.3-soap php7.3-common php7.3-readline php7.3-cli php7.3-opcache php7.3-iconv php7.3-sqlite3 php7.3-imap
apt-get install php7.3-apcu php7.3-mbstring php7.3-bcmath php7.3-cli php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-mysql php7.3-soap php7.3-xml php7.3-zip php7.3-memcache php7.3-memcached php7.3-zip
update-rc.d php7.3-fpm defaults
CODE: SELECT ALL
ln -s /lib/systemd/system/php7.3-fpm.service /lib/systemd/system/php-fpm.service
thanks. this helped me… i’ve totally forgotten to remove php 5
So how i got it working:
remove the old and install the new php-version as posted by mehargags
copy your config files from /etc/php5/fpm/pool.d/ to the new directgory /etc/php/7.3/pool.d/
remove /etc/php5 from the filesystem
change the config in /usr/local/vesta/conf/vesta.conf
CODE: SELECT ALL
WEB_BACKEND=’php7.3-fpm’
v-list-sys-services will now show that php7 is running & you can add new configs (yay \o/ )
mv /usr/local/vesta/web/edit/server/php5-pfm to /usr/local/vesta/web/edit/server/php7.3-fpm (now edit works)
Thanks for the help! 🙂
if you previously had Php5, just verify you remove it on /etc or /etc/php
Because you should have a pool.d directory for php5 too and the vesta script find 2 directories and doesn’t know how to play with …
if you want to have a copy of your php5 distrib, just rename /etc/php5/fpm/pool.d to /etc/php5/fpm/pool1.d
and try again ….
Restart PHP
===
error: php7.3-fpm restart failed:
@klou , You should just specify name of the service which controls php-fpm process in /usr/local/vesta/bin/v-change-sys-service-config script at 98th row, not binary filename.
For example, replace php-fpm7.1 (or more complicated statement, like =$(ls /usr/sbin/php*fpm* |cut -f 4 -d /) ) with just php-fpm And it works well for me.
My excerpt from the script mentioned above
if [ “$service” = ‘php’ ]; then
if [ “$WEB_SYSTEM” = “nginx” ]; then
service=”php-fpm”
else
service=$WEB_SYSTEM
fi
fi
For Ubuntu 16.04
===
===
Can’t create new domain?:
Delete /etc/init.d/php5-fpm
https://forum.vestacp.com/viewtopic.php?t=15860
https://forum.vestacp.com/viewtopic.php?t=17129
https://github.com/serghey-rodin/vesta/issues/1286
**************************************
**************Config for WonderCMS*********
location = /database.js {
deny all;
return 404;
}
autoindex off;
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?page=$1 last;
} ####Inside Location /###
CONFIG:
server {
listen 162.208.8.213:80;
server_name hp.idrv.ru www.hp.idrv.ru;
root /home/admin/web/hp.idrv.ru/public_html;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/hp.idrv.ru.log combined;
access_log /var/log/nginx/domains/hp.idrv.ru.bytes bytes;
error_log /var/log/nginx/domains/hp.idrv.ru.error.log error;
###
location ~ database.js {
return 403;
}
autoindex off;
###
location / {
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
###
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?page=$1 last;
}
###
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias /home/admin/web/hp.idrv.ru/document_errors/;
}
location ~* “/\.(htaccess|htpasswd)$” {
deny all;
return 404;
}
location /vstats/ {
alias /home/admin/web/hp.idrv.ru/stats/;
include /home/admin/conf/web/hp.idrv.ru.auth*;
}
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
include /home/admin/conf/web/nginx.hp.idrv.ru.conf*;
}
********************************************
Index:
<meta http-equiv=”Refresh” content=”0; url=http://6000.idrv.ru/CA393-00880 – Parts Catalog 6000.htm” />
robots:
User-agent: *
Disallow: /
Autoindex folder:
location / {
###
alias /home/admin/web/docs.idrv.ru/public_html/files/;
autoindex on;
###
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
******************************
OPENVPN:
Installed Debian 9
https://github.com/angristan/openvpn-install#faq
wget –no-check-certificate https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh -O openvpn-install.sh && bash openvpn-install.sh
ORT: 443
DNS: Cloudflare
Vesta installed – VPN stopped working