How to Install VestaCP on CentOS 6.5 VPS
| |My main reason releasing this blog was to help people who want to use VPS while saving some bucks by avoiding cPanel usage so I posted many tutorials to install either LAMP or LNMP on VPS with no control panel at all. But then I started to rethink of that and decided to also write tutorials about installing and using free control panel on a VPS as an alternative to cPanel.
For that, I posted about how to install zPanel and ServerPilot. But then few weeks ago I found Vesta CP, a Russian-made free hosting control panel with a bunch of awesomeness. Lets say with zPanel you’ll get necessary software set up including Apache, PHP5, MYSQL, PHPMyAdmin, FTP, Mail server and DNS. Vesta CP comes with whole new awesomeness, it has almost all zPanel features plus Nginx and Varnish Cache out of the box.
About Vesta Control Panel
Vesta is an open source hosting control panel currently supports both RHEL flavoured Linux releases (Red Hat, CentOS) and Ubuntu LTS 12.04 and Ubuntu 13.04. It comes with all necessary software to run and manage your websites hosted on your VPS, including:
– Web Server (Apache with Nginx as Reverse Proxy)
– DNS server
– Database Server
– Mail Server
– FTP Server
– Nginx out of the box
– SSL certificates & SNI
– Wildcard support
– Configuration Templates
– DKIM support
– Fast Backups
– System Monitoring
– AntiSpam / Antivirus
– WHMCS billing support
– EPEL integration
– Simple and Clean GUI
– Powerfull CLI
– Reliable Platform
– Open Data Format
How to Install Vesta CP
Vesta CP works on RedHat, CentOS and Ubuntu but in today’s guide I will show you how to get it installed on CentOS 6.5. Here’s my inventory:
A VPS on DigitalOcean, I created a New York droplet with 512MB of RAM, 20GB SSD, 1TB Bandwidth and I select CentOS 6.5 64-bit.
What I like from DigitalOcean is its painless process of creating a VPS. I’ve told you that before.
So now the VPS is ready, lets start installing VestaCP.
Step 1 – First, login to your server’s shell via SSH as root, as always, for this task I use putty.
Step 2 – Next, download VestaCP installation script using curl command:
curl -O http://vestacp.com/pub/vst-install.sh
Step 3 – Next, issue this magic command to start installing VestaCP:
bash vst-install.sh
pic:
Step 4 – The installer asks to confirm disabling SELinux and start the install process. Type Y and hit Enter.
Step 5 – The installer also asks to enter valid email address. So type your valid email address and double-check it to make sure your email is correct because VestaCP will also send your admin password there.
Step 6 – Once you hit Enter on your keyboard, the installer starts. Sit tight and wait for the installer to process and finish its job.
Step 7 – As long as you found no fatal error, the installer should finish quicker and you will see something like this on your screen:
You can also check your mailbox just to ensure the password is delivered and mail server (Exim) works properly on your server.
Step 8 – Now open up your favorite browser and login to VestaCP web-based UI using your VPS IP at port 8083.
https://xxx.xxx.xxx.xxx:2083/
Login as admin and use given password,
As you may also aware that the link is https:// which means via secure connection (SSL) so you may have to add / confirm exception on your browser.
Voila! You should now see the main UI of Vesta hosting control panel.
*click on image to view larger size.
Congratulation! You now have Vesta CP installed and a ready-to-use VPS to host all your websites.
What’s next?
I can say that’s it for now. Upcoming: Basic Vesta CP Setup, How to add your first domain / website on VestaCP, using Nginx and Varnish Cache on VestaCP, setting up EXIM4 to use TLS, etc. I can’t promise you when will I write next article but stay tuned.
Part 2: Basic Vesta CP Setup
Part 3: How to Add New Website on Vesta CP.
I have a question do I have to unistall apache mysql blind like we did for zpanel?
You can uninstall it via ssh terminal and execute “rpm -e packagename” followed by “yum remove packagename”. But why don’t you simply stop the services you don’t need? In VestaCP go to Services then stop the ones you don’t need
I am getting this error
Following packages are already installed:
httpd
It is highly recommended to remove them before proceeding.
If you want to force installation run this script with -f option:
Example: bash vst-install-rhel.sh –force
______________
I already removed httpd with ” yum remove httpd ” even tried rpm -e httpd but still showing this
rpm -e httpd
yum remove httpd
next, execute the command using “bash vst-install-rhel.sh –-force”
Hi, thanks for the tutorial. I installed vestacp on a 512mb droplet in digitalocean. Now i have 2 wordpress sites in it. I want to resize my package in the future add more web sites to it. But still i’m not decide which panel to use. I want to ask your advice and want to learn if im using the right setting.
1- I use w3 total cache in both wp sites with Better WP Security and Wordfence plugins for security. But sometimes the mysqld services stops and not restart until i reboot server. What should cause this; the wordpress settings, plugins or some server issue.
2- I want to use nginx thats the main reason i try vestacp. But im not really familiar with the settings. In nginx template settings which one should i use (default, caching, hosting) Can you suggest a example settings best suits for a wordpress site.
3- Should i install ClamAV and SpamAssassin or the current settings is enough.?
4- Im using and will use yandex for mail needs. How can i disable the exim and dovecot services and decrease the ram usage.
I’ll be glad if u can assist me about this issues.
Thanks again
Yes DO is rock! 🙂
1. You should not use similar WP plugins (with same functions) at once. About MYSQL, of course there are several aspects but as long as other services run well, it means not because server (DO’s end) issue. It’s your setup.
2. For default blog/wordpress-based site, use default.
3. That depends on your need. If you receive spam emails so frequently then yes you should.
4. Yes you can. Simply click “Services” link in very top of the main Vesta CP page. You can then disable services you don’t need there.
Have fun 🙂
Loving your work.
I have installed Vesta on my CentOS and I would greatly appreciate if you can tell me how to remove it. I would like to try ISPCONFIG 3. Thanks
hi, i explore your website, but i cant find about virtualmin or ajenti control panel..
can you post tutorial about virtualmin ( how to use) becouse i am very confuse how to add website..
Thanks for your suggestion 🙂
Thanks! it’s been a helpful guide, just sign up to DO because of your blog! btw there’s a limited coupon code 10$ credits : DELPOY2DO
You’re in my RSS feed 😀
I installed it and it’s so easy but one problem I have is can’t find anything about mail forwarding. Could you tell me where I can find it ?
Hi… my name is wiwi…
I’ve succesfully installed VestaCP on Server.. and also succeeded in adding websites as adminVesta…
But, when I tried to add website as userVesta, my website didn’t launch (ping to this domain succeeded)… resolver OK (equal to admin’s website)… what I’m actually missed..??? Is there any issue about this….???
have you set up DNS settings properly?
login to Vesta Panel
click DNS
choose your domain name and click Edit
change Template from default to child-ns
click save.
CMIIW.
Hey Sawiyati,
For some reason when I installed VestaCP when I go to RoundCube Email I get a “DATABASE ERROR: CONNECTION FAILED!” error. Does this happen on your installation? Do you know any fixes? Thank you and great tutorial! 🙂
Sorry Peter, I never experience such error. I wish I knew 🙂
Hey Sawiyati,
No problem. I actually figured it out. Here’s the fix for any other DigitalOcean members having problems:
The file mysql.initial.sql(which initially sets up Roundcube’s tables ) was not getting downloaded when I installed Vesta. So, you have to manually download the file, log into your Roundcube Database via phpMyAdmin, and copy&paste the contents into the SQL tab and run. This will create the default tables in the DB. Roundcube should now display the Default Login page after that.
The mysql.initial.sql file can be found at:
http://bit.ly/RoundCubeFix
Keep up the great Blog, Sawiyati!
-Peter
Sweet! 🙂 thanks for the workaround
Thnx mate! that did the trick!!
maaf minta saran mba kalau untuk vps ram 512
kalau diisi panel enaknya pake apa 😀
yg recomend buat yang baru beljar juga hiih
You can try zPanel or Vesta of course 🙂
Hey there, I wld like to log in on the root account of mysql. What password does vesta set for this and/or is it safe to change the root password or does Vesta crash then? I want to make seperate backups with mysqldump, but get the error “mysqldump: Couldn’t execute ‘SELECT /*!40001 SQL_NO_CACHE */ * FROM `INNODB_BUFFER_PAGE`’: Access denied; you need (at least one of) the PROCESS privilege(s) for this operation (1227)”.
Already found the answer on the Vesta CP forum. The login and password for the root mysql account can be found in /usr/local/vesta/conf/mysql.conf. I don’t think it would have been safe to change it manually in another way 😛
Thanks for tutorial,, i just want to ask, is there a file manager plugin for vesta? im tired use filezilla end etc going slow when read some file from server,, i very like a file manager like cpanel,, or any suggest? thanks
AFAIK, there is none at the moment 🙂
Halo,
Do you reckon this will work on vultr?
*salam indo*
I believe it will work on Vultr intance. 😉
Sawiyati, you should warn your readers that Vesta CP will eat their memory resources more than 400 mb per installation. Thus, VestaCP is not suitable for VPS with memory only 512 MB. CMIIW.
Hi,
How to remove the upload limit in the phpmyadmin of Vestacp?
Thanks..
thanks for the tutorial it worked like a charm…
Error: user admin exists
Error: can’t create admin user
Also I did not receive any mail.
I hadapache , php , dns , ftp , mysql all installed already , so uninstalled all . But still
Error: user admin exists
Error: can’t create admin user
=======================================================
_| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_|
_| _| _| _| _| _| _|
_| _| _|_|_| _|_| _| _|_|_|_|
_| _| _| _| _| _| _|
_| _|_|_|_| _|_|_| _| _| _|
——————————-
https://xxx.xxx.xxx.xxx:8083
username: admin
password: xxxxxxxxx
——————————-
Congratulations,
you have successfully installed Vesta Control Panel.
I got this message vesta started but in web browser it show web page not available
check it using “top” command whether nginx service is running or not
Yes , the same for me, I did not receive any mail for the installation and no after . Vesta CP Forum doesn’t help me. Installed on CentOS 5.9 32bit . When I see the Exim’s log : root@srv1.iacserver.com: Unrouteable address. But I have typed a different email, in aliases file too ! thanks
Hi there, I have been successful until step 7, I have received my log in details on my email but when I go to the https:/…. the browser response is: this website is not available. I have added this to my trusted sites list. Please help.
thank you in advance.
Fabian
try accessing it via your server’s IP like https://xxx.xxx.xxx.xxx:8083
also make sure all services are running especially nginx.
you have made my day sooo much easier this blog post save me from paying $38 month for cpanel for my server and made setting up this control panel a breaze!! thank you sooo much
Couldn’t agree more!
The way she explains the ‘step by step’ setup even better than the official Vesta did!
Thanks a lot! Terimakasih Ibu! You’ve just saved my day…
Hi Mom
I dont see your next article about how to setup varnish in VestaCP. It is quite interesting since I havent found nice article, even in their forum. Can you please refer me that link if it available?
Do you enabling phpfcgi? How is the performance?
Thanks a lot
Salam
Sorry but I never try it with phpfcgi enabled so I can’t tell you how it performs
Hi i installed vestacp , but my url not working how is possible.
let me know…
url is https://104.43.192.99:8083/
Thanks
hi Sawiyati. thanks for your blog and posts! they are awesome.
I am thinking to migrate some of my sites (wordpress and html sites) and scripts from a “X” hosting to Digitalocean.
I have some questions about that, and I really would appreciate you can help me with that:
1. do I need to install first LEMP to Digitalocean or with this post is enough?
2. which php version does vesta have?
3. which mysql version does vesta have?
4. Once everything is installed correctly inside Digitalocean, how can I install “IonCube Loaders 4.4” or more?
5. How can I know when I need to upgrade my digitalocean package? any tool inside vesta or external?
6. Inside Vesta, Can I install any wordpress, html site and Script as I do that normally inside a cpanel? or do I need to do other things inside either my Digitalocean account and vesta account ?
7. What can I do if I have any issue about my sites and scripts? do I need to contact with Digitalocean support or Vesta support?
thank you very much!
1. Vesta will install all software needed to host a website, so you don’t need to install LEMP again. Simply install Vesta CP and you are set.
2. Last time I installed, it is PHP v5.4.23 with Zend Engine v2.4.0
3. MySQL v5.5.35
4. Follow my tutorial to install IonCube Loader
5. Sorry I don’t get it. Which package you wish to update?
6. yes you can. But you have to manage your files via FTP (Filezilla is your friend)
7. Contact the developer of your script. DO is unmanaged and Vesta is free with paid support.
thank you very much! 🙂
by the way, how can I know if vesta is using apache or nginx ? Inside Vesta can we select any of them?
thanks again
Sorry, I forgot another question: what would happen if I migrate some sites from an Apache server to a Nginx server?
will there be any issue or problem?
thanks
If you setup correct configuration in nginx .conf file, then there should be no problem. Anyway, Vesta CP uses Apache while Nginx acts as reverse proxy only
Thanks Sawiyati. I appreciate your support.
hope this is my last question: about the domain installation inside vesta, do we need also to use the DNS feature inside Digitalocean for each one of these domains we install on vesta?
thanks!
thanks Sawiyati,very good work, but when you arrive here:
https://xxx.xxx.xxx.xxx:8083
username: admin
password: xxxxxxxxx
——————————-
Congratulations,
you have successfully installed Vesta Control Panel.
and not receive a email with login and password what I can do ? I need a mail server before I install Vesta cp ?
Its help me thanks and i also find tut here
http://www.forumfusion.net/topic/1500-installing-vestacp-on-centos/
thanks Waqar, I know this, the problem is to start the mail server correctly.
vestacp not install in centos 7 Error: httpd start failed
2015-04-13 23:20:59 (76.4 MB/s) – ‘/etc/logrotate.d/httpd’ saved [283/283]
Note: Forwarding request to ‘systemctl enable httpd.service’.
ln -s ‘/usr/lib/systemd/system/httpd.service’ ‘/etc/systemd/system/multi-user.target.wants/httpd.service’
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed. See ‘systemctl status httpd.service’ and ‘journalctl -xn’ for details.
Error: httpd start failed
who can help me!!
as far as I know, currently it does not support to run on CentOS 7 or RHEL 7
Hello there i am having this error when installing on centos 6.6 minimal installation:
2015-07-22 09:17:40 (51,4 MB/s) – `/etc/logrotate.d/httpd’ saved [283/283]
Starting httpd: Syntax error on line 1 of /etc/httpd/conf.d/mod_extract_forwarded.conf:
Invalid command ‘MEFaccept’, perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
Error: httpd start failed
It seems the installation of Vesta CP is corrupted. You can try rebuild your vps and reinstall it.
Nope, i already tried on a fresh centos 6.6 install same result.
thank you mom
hello i need your help while surfing web for help related to vesta cp i came across to your site so so i want to check is my vestacp is configure properly or not i have cloudvps with two ip.
Do I Need to yum upgrade first? What is the difference between 32bit and 64bit? What do you think compare to serverpilot? Is this good for production server? Which panel are you using now? Thank you for tutorial
No you don’t but doing so will not hurt at all. Serverpilot is good but I’ll stick with Vestacp (personally). Yes, Vestacp is good for production server. I use it for this blog. You can check my server setup here.
Thank you for prompt answer, i will try first at cloudatcost development cloud server .
what should i do with this when i install vesta:
Note: Forwarding request to ‘systemctl enable httpd.service’.
ln -s ‘/usr/lib/systemd/system/httpd.service’ ‘/etc/systemd/system/multi-user.target.wants/httpd.service’
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed. See ‘systemctl status httpd.service’ and ‘journalctl -xn’ for details.
Error: httpd start failed
Did you install it on CentOS 6.x or 7.x?
i use centos 6.7 now
please help error httpd and nginx
failed in vestacp
Hi Sawiyati ,
I read all your post and started to host my personnel first VPS server . I successfully installed every thing works all fine. But i have a problem with E-Mail. I can send emails and i cannot reserve some one else e-mail who sending to me. I tried every thing to solve this issues every time i failed.
I use DigitalOcean VPS CentOs 7 with VestaCP.
Can you give me a tip where i need to check or modify any file , really new for this. Hope you can help me with this.
Sorry for my english
Thank you again.
DigitalOcean is not blocking any email port so it is most probably because all emails going to spam box or you didn’t setup your DNS correctly
i think mail server (Exim) not works properly on my server.
if someone send email from a contact menu (website), i can’t receive email.
if i try to buy something at my online shop, i can’t receive invoice to.
im using WordPress
Hi, how do I setup email in my mobile phone?
Please help me
What do I use Pop3 or IMAP ?
What settings it use?
port and address.
Thank you very much.
Hello Servermom,
I installed vestacp and it works fine (except PHP7 update, I have asked about it in different post)..
Well after installation of Vestacp , I am not able send any mails through WordPress website. No emails is being sent for even authentication. This is a common issue with many people. There must be a simple solution for this which you must be knowing. Please tell me steps to start or open any port so that mails work as in other servers like Zpanel.
I found on my friends droplet DO blocking out going smtp port, just open ticket ask them to open port
wow this is best tutorial vesta CP that i have ever seen..
because of this post, i am able to install vesta CP on my Cloud VPS digital Ocean,
keep the good work 🙂
VistaCP uses Apache + niginx + varnish right? So why we above these? For that I finding on a Google & finally got answer something like niginx is so fast than Apache it will handle CSS HTML images very fast sending .htacess & php request to Apache… Some says Apache work as back end and niginx work for for front end. Varnish handle cached and specially for static site ( so I though it’s work little different way but finally both are use for static components) & iI found another good thing is “memcached” which is specially optimized the database by caching. & one more thing is remaining is cloudflare like CDN (if possible please explain whole thing by taking example of cloudflare because I like cloudflare and may me some of the thing will going to change in other CDN)
Now please give me explanation regarding Apache, nginx, varnish memcached, cloudflare. Give their important, how they work , how combination & all of or may be 2-3 can helpful to increase speed of server. Apache use more RAM ( 128 MB) vestcp (68MB) so inshort please also take notes that how we can save our RAM. & how much RAM is sufficient (above four things + 1 WordPress site with 1000 visitors per day) which thing we have to avoid to save RAM & how can we remove it if we don’t need after vistacp installation like if we not need Apache the what to do…
I know my questions are frustrating but if you give me idea then thank you very much & I think it’s good for all who wants to use their vps server very fast with low resources…
(If my questions are difficult to understand then sorry and avoid any geamner ???? because English is not my 1st language)
Obviously, you can simply ditch any control panel if your RAM is < 256 MB. VestaCP works flawlessly with 512MB RAM VPS.
hello mom
this problem appear to me when i want to add domain or remove it , this is the problem (Error: named restart failedError: DNS restart failed)
i hope u can help me
best wishes
Go to “Server” menu then restart your DNS server
I have successfully Installed vestacp and Now i added a website but after changeing name servers then my site showing this message ” It worked! by vesta cp”
please help me to come out this problem
Double check your: 1) DNS records; 2) Apache and nginx virtual hosts file
don’t panic..
just upload your website file to this VPS 😀
“It worked! by vesta cp” mean is… all config is work…
Ready to Host your Site
CMIIW
hye mom, what is the differences between vistaCP and the webmin? which one will you suggest?
Generally I still prefer VestaCP but Webmin is proven as best and secure free control panel due to its age. While VestaCP has very rapid development and its developers are actively updating the scripts. During the next few years, I believe that VestaCP will also be proven to be the best free control panel as well.
when i reboot my vps
vestaCp don’t work and my website also stop running – then i had re-installed vps and re-installed vesta-cp then uploaded all web-site’s files 🙁
any way – if we reboot vps then how to make run pre-installed vesta-cp properly
[ sorry for bad english ]
After enter the email address it is also asking for host name . please do update that also in this article
Hi Mrs Sawiyati
digital ocean vps base CentOS 6.7 x32
1) install vestacp – no problem
2) Add domain/ website – no problem
3) ad database – no problem
4) open phpmyadmin – warning message :
i) The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated
find out why
ii) Configuration of pmadb… not OK
iii)The configuration file now needs a secret passphrase (blowfish_secret).
Solution ???
https://forum.vestacp.com/viewtopic.php?t=10142
https://forum.vestacp.com/viewtopic.php?f=14&t=10875
can you please provide a tutorial tom install maradns with vestacp
Can you please also provide a tutorial to configure two VPS using DRBD. VPS 1 would be a main resource and VPS 2 would be a backup. It should automatically sync from VPS 1 to VPS 2