Page 1 of 3

Which "Web Template" to use?

Posted: Thu Jun 25, 2015 8:47 am
by Ardi
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.

Re: Which "Web Template" to use?

Posted: Thu Jun 25, 2015 9:58 am
by skurudo
For Apache is more suitable basedir and hosting templates.
For Nginx - hosting

Re: Which "Web Template" to use?

Posted: Thu Jun 25, 2015 10:08 am
by Ardi
skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Thank You.

Re: Which "Web Template" to use?

Posted: Thu Jun 25, 2015 10:10 am
by skurudo
Ardi wrote:Thank You.
Good luck with your server ;-)

Re: Which "Web Template" to use?

Posted: Thu Jun 25, 2015 11:49 am
by hafeezksa
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)

Re: Which "Web Template" to use?

Posted: Thu Jun 25, 2015 6:44 pm
by patstan
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?

Re: Which "Web Template" to use?

Posted: Sat Jun 27, 2015 5:32 pm
by Ardi
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

Re: Which "Web Template" to use?

Posted: Sat Jun 27, 2015 5:35 pm
by Ardi
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 :)

Re: Which "Web Template" to use?

Posted: Sat Aug 08, 2015 8:04 am
by pandabb
Thanks for the guide.

Re: Which "Web Template" to use?

Posted: Thu Feb 11, 2016 8:31 am
by MrBlue
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?