Page 5 of 7

Re: VestaCP CentOS 7 Server Installer

Posted: Thu Dec 08, 2016 1:16 pm
by pandabb
Thanks a lot! Can i ask another question?

How do i change the email address that receives system notification ex. ssh login, ip block.

Also prior the installation i was asked to enter email and pass and smtp info, i'm not sure if its for monit. Anyway, is there a way i could change these values that i entered before ?

Thanks

Re: VestaCP CentOS 7 Server Installer

Posted: Thu Dec 08, 2016 1:33 pm
by SS88
pandabb wrote:Thanks a lot! Can i ask another question?

How do i change the email address that receives system notification ex. ssh login, ip block.

Also prior the installation i was asked to enter email and pass and smtp info, i'm not sure if its for monit. Anyway, is there a way i could change these values that i entered before ?

Thanks
You can change the "admin" account in VestaCP and this will send you all Vesta related emails.

You need to change the CSF value. Login to VestaCP, click the CSF link, click the button Firewall Configuration, find the setting LF_ALERT_TO and change it. It's under Reporting Settings.

In order to change Monit you must edit /etc/monitrc near the top:

Code: Select all

set daemon  60
set logfile syslog facility log_daemon
set mailserver MAILSERVER port 587 username "SMTP_USERNAME" password "SMTP_PASSWORD"
set mail-format { from: EMAIL_ADDRESS_ALERTS_GO_TO }
set alert EMAIL_ADDRESS_ALERTS_GO_TO

Re: VestaCP CentOS 7 Server Installer

Posted: Thu Dec 08, 2016 5:43 pm
by pandabb
Great thank you.

Perfect setup for me and low in ram usage compared to my old build which is 750mb this one is around 300mb only.

Re: VestaCP CentOS 7 Server Installer

Posted: Thu Dec 08, 2016 5:51 pm
by SS88
The script was updated today to fix a bug with PHP.

First type:

Code: Select all

php -v
If the output shows PHP 7 then run the following commands:

Code: Select all

yum -y install yum-utils
yum-config-manager --disable remi-php56
This will disable PHP 5.6 so when you run the command yum update, it will not overwrite PHP 7 with PHP 5.6.

If you see PHP 5.6 installed run the following:

Code: Select all

service php-fpm stop
yum -y --enablerepo=remi install php70-php php70-php-pear php70-php-bcmath php70-php-pecl-jsond-devel php70-php-mysqlnd php70-php-gd php70-php-common php70-php-fpm php70-php-intl php70-php-cli php70-php php70-php-xml php70-php-opcache php70-php-pecl-apcu php70-php-pecl-jsond php70-php-pdo php70-php-gmp php70-php-process php70-php-pecl-imagick php70-php-devel php70-php-mbstring
rm -f /usr/bin/php
ln -s /usr/bin/php70 /usr/bin/php
sed -i 's/include=.*/include=\/etc\/php-fpm.d\/\*\.conf/' /etc/opt/remi/php70/php-fpm.conf
service php70-php-fpm restart
rm -f /usr/lib/systemd/system/php-fpm.service
ln -s /usr/lib/systemd/system/php70-php-fpm.service /usr/lib/systemd/system/php-fpm.service
systemctl daemon-reload
yum -y install yum-utils
yum-config-manager --disable remi-php56
service php-fpm restart
This will re-install PHP 7 and disable PHP 5.6 from being updated.

Re: VestaCP CentOS 7 Server Installer

Posted: Fri Dec 09, 2016 6:16 am
by pandabb
Hello thanks for the update:

After running the code heres what i get:
[root@server ~]# php -v
PHP 7.0.14 (cli) (built: Dec 7 2016 09:19:11) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.14, Copyright (c) 1999-2016, by Zend Technologies
Is this the supposed outcome?


As of now is there a way to switch php version ex. 5.6 and 7 because some wordpress plugins arent compatble yet for php7.

Re: VestaCP CentOS 7 Server Installer

Posted: Fri Dec 09, 2016 12:36 pm
by amitz
Hi,

I was installing it on a kvm vps and getting this situation,vestcp installation skipped?

Installed:
vim-common.x86_64 2:7.4.160-1.el7

Dependency Installed:
vim-filesystem.x86_64 2:7.4.160-1.el7

Complete!
./CentOS7.sh: line 96: /usr/local/vesta/bin/v-add-letsencrypt-domain: No such file or directory
Generating DH parameters, 4096 bit long safe prime, generator 2
This is going to take a long time
.......................................................................................................................................................................................................................................

Re: VestaCP CentOS 7 Server Installer

Posted: Fri Dec 09, 2016 1:35 pm
by SS88
pandabb wrote:Hello thanks for the update:

After running the code heres what i get:
[root@server ~]# php -v
PHP 7.0.14 (cli) (built: Dec 7 2016 09:19:11) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.14, Copyright (c) 1999-2016, by Zend Technologies
Is this the supposed outcome?


As of now is there a way to switch php version ex. 5.6 and 7 because some wordpress plugins arent compatble yet for php7.
Yes. You have PHP 7 installed:

Code: Select all

PHP 7.0.14 (cli) (built: Dec 7 2016 09:19:11) ( NTS )
All you need to do is run:

Code: Select all

yum -y install yum-utils
yum-config-manager --disable remi-php56
And this will disable PHP 5.6 overwriting PHP 7.

Re: VestaCP CentOS 7 Server Installer

Posted: Fri Dec 09, 2016 1:37 pm
by SS88
amitz wrote:Hi,

I was installing it on a kvm vps and getting this situation,vestcp installation skipped?

Installed:
vim-common.x86_64 2:7.4.160-1.el7

Dependency Installed:
vim-filesystem.x86_64 2:7.4.160-1.el7

Complete!
./CentOS7.sh: line 96: /usr/local/vesta/bin/v-add-letsencrypt-domain: No such file or directory
Generating DH parameters, 4096 bit long safe prime, generator 2
This is going to take a long time
.......................................................................................................................................................................................................................................
Hmm. More logs above that? Should tell us why VESTA was not installed.

Try

Code: Select all

sudo ./CentOS7.sh > OutputOfScript.txt
This will put all the logs into a file named OutputOfScript.txt

Re: VestaCP CentOS 7 Server Installer

Posted: Mon Dec 12, 2016 11:32 pm
by pandabb
Hello i just installed wordpress and it's asking me for ftp user when i try to install a plugin, i know how to fix this on apache but not on this one. Hope you can help again. Also which of the two wordpress nginx template built-in do you prefer or what's the intended use for each template.

Do you also know the reason why turning off cloudflare cache gives me more better result?

Test is :
Vanilla wordpress / no caching plugin 10k Clients per minute using loader.io

Result:
Cloudflare off average ms 42ms 0 Errors
Cloudflare on average ms 563 ms 0.5% Error

Thanks again.

Re: VestaCP CentOS 7 Server Installer

Posted: Mon Dec 12, 2016 11:57 pm
by SS88
pandabb wrote:Hello i just installed wordpress and it's asking me for ftp user when i try to install a plugin, i know how to fix this on apache but not on this one. Hope you can help again. Also which of the two wordpress nginx template built-in do you prefer or what's the intended use for each template.

Thanks again.

P.S - I just tested loader.io with 10k client per minute and only a couple of errors and this is w.o a caching plugin! V. nice
It should not do that? Have you uploaded WordPress files as root instead of FTP?

This will fix the problem but check who the files are owned by first:

Code: Select all

chown -R username:username /home/username/web/domain/public_html
I use socket because it's faster but if you start getting errors in the logs like Connection reset by peer (104) then your server is hitting limits and should be changed to the default template.