Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

VestaCP CentOS 7 Server Installer

General questions about VestaCP
Post Reply
  • Print view
Advanced search
61 posts
  • Page 5 of 7
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next
pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by pandabb » Thu Dec 08, 2016 1:16 pm

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
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by SS88 » Thu Dec 08, 2016 1:33 pm

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
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by pandabb » Thu Dec 08, 2016 5:43 pm

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.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by SS88 » Thu Dec 08, 2016 5:51 pm

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.
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by pandabb » Fri Dec 09, 2016 6:16 am

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.
Top

amitz
Posts: 46
Joined: Mon Nov 09, 2015 10:52 am

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by amitz » Fri Dec 09, 2016 12:36 pm

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
.......................................................................................................................................................................................................................................
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by SS88 » Fri Dec 09, 2016 1:35 pm

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.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by SS88 » Fri Dec 09, 2016 1:37 pm

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
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by pandabb » Mon Dec 12, 2016 11:32 pm

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.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: VestaCP CentOS 7 Server Installer
  • Quote

Post by SS88 » Mon Dec 12, 2016 11:57 pm

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.
Top


Post Reply
  • Print view

61 posts
  • Page 5 of 7
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password