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

Which "Web Template" to use?

General questions about VestaCP
Locked
  • Print view
Advanced search
23 posts
  • 1
  • 2
  • 3
  • Next
Ardi
Posts: 14
Joined: Thu Jun 25, 2015 8:36 am

Which "Web Template" to use?

Post by Ardi » Thu Jun 25, 2015 8:47 am

Hello,

I got a new VPS and want to start my hosting business. I want to know which Vesta Web Template do you recommend me to use for building hosting's packages? (I'm new to Vesta CP)
By the way, I read https://vestacp.com/docs/#template-description but really don't understand which one is more suitable for me and my clients.

I have these Templates:
- default
- hosting
- basedir
- phpcgi

Best Regards.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Which "Web Template" to use?

Post by skurudo » Thu Jun 25, 2015 9:58 am

For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Top

Ardi
Posts: 14
Joined: Thu Jun 25, 2015 8:36 am

Re: Which "Web Template" to use?

Post by Ardi » Thu Jun 25, 2015 10:08 am

skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Thank You.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Which "Web Template" to use?

Post by skurudo » Thu Jun 25, 2015 10:10 am

Ardi wrote:Thank You.
Good luck with your server ;-)
Top

hafeezksa
Posts: 81
Joined: Mon Apr 27, 2015 5:45 pm
Contact:
Contact hafeezksa
Website

Re: Which "Web Template" to use?

Post by hafeezksa » Thu Jun 25, 2015 11:49 am

skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
For wordpress or other CMS sites which is best Nginx+php-fpm or else ? (VPS only with 1MB ram)
Top

patstan
Posts: 117
Joined: Wed Jul 30, 2014 10:53 am

Re: Which "Web Template" to use?

Post by patstan » Thu Jun 25, 2015 6:44 pm

skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Basedir is more secure in general right?
Is that because of better account seperation?
Top

Ardi
Posts: 14
Joined: Thu Jun 25, 2015 8:36 am

Re: Which "Web Template" to use?

Post by Ardi » Sat Jun 27, 2015 5:32 pm

I also found a great topic to clarifyTemplates: http://www.neeonez.com/configurar-templ ... n-vestacp/

--- Translated by Google ---

TEMPLATES AND DIRECTIVES SET VESTACP
The configuration of this panel hosting can give us any problems with your default setting if you use a CMS like WordPress or Drupal as the maximum memory limit that is assigned by default for each process PHP is quite small. Fortunately, we can configure this.

When we create a hosting account we must select a package and when editing or create a package must select a template or configuration to be applied to the package. These settings are directives for Apache, Nginx and DNS servers. The configuration files in the directory / usr / local / Vesta / data / templates /. We find multiple configuration files with the name you have on the panel and the .tpl extension; for example in / usr / local / Vesta / data / templates / web / httpd can edit or create new configuration files for Apache.

FILES THAT ARE INCLUDED BY DEFAULT
The files that are by default are as follows.

APACHE
These .tpl files used to create the virtual hosts. .stpl Also see files with extension with the same name as .tpl and equivalents will be used to create virtual hosts when we use SSL. Finally, there may be files with extension .sh serve custom shell to run each time we create a domain commands.

- default: it Works with most web sites and requires no additional configuration.
- basedir: To prevent possible include PHP scripts to a potential attacker, using the open_basedir directive.
- Hosting: To separate memory limits for a PHP script in each domain (php_admin_value memory / safemode / etc).
- phpcgi: PHP running as CGI, useful for running older versions of PHP is enabled.
- phpfcgid: To run PHP as mod_fcgi. It caters to concurrent requests of PHP.
- wsgi: To run projects in Python.

NGINX
This is another server that includes VestaCP, mainly used for serving static files. Files or settings with .tpl extension are:

- default: simply serving static content; most useful sites.
- hosting: Use the disable_symlinks directive to protect the server symlink attacks.
- сaching: Dynamic pages are stored in cache for 15 minutes to handle large traffic spikes.
- force-https: force users to use SSL.

DNS
- default: To use the common DNS records.
- child-ns: If you want to use a domain or subdomain as the server name-server.
- gmail: DNS records predefined for use Google apps are created.

APPLY NEW SETTINGS
After modifying a configuration file, you will need to rebuild it for each user. This can be done using the command:

Code: Select all

v-rebuild-user
You can also apply the configuration from the interface panel. Specifically from the section in which all users are listed. We select them all and in the drop down options, select the option to rebuild web, database, email and dns.

--- Translated by Google ---

Thanks go to EduZRO
Top

Ardi
Posts: 14
Joined: Thu Jun 25, 2015 8:36 am

Re: Which "Web Template" to use?

Post by Ardi » Sat Jun 27, 2015 5:35 pm

hafeezksa wrote:
skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
For wordpress or other CMS sites which is best Nginx+php-fpm or else ? (VPS only with 1MB ram)
I used hosting for HTTPD and Nginx and so far so good :)
Top

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

Re: Which "Web Template" to use?

Post by pandabb » Sat Aug 08, 2015 8:04 am

Thanks for the guide.
Top

MrBlue
Posts: 7
Joined: Thu Feb 11, 2016 8:25 am

Re: Which "Web Template" to use?

Post by MrBlue » Thu Feb 11, 2016 8:31 am

At first, the httpd template: default Nginx: default.
i use opencart and WordPress.
i changed template for each domains httpd template: hosting
OpenCart sites are good. This WordPress sites has 500 server error.

what should I do?
Top


Locked
  • Print view

23 posts
  • 1
  • 2
  • 3
  • 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
 

 

cron

Login  •  Register

I forgot my password