Which "Web Template" to use?
Which "Web Template" to use?
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.
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?
For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
For Nginx - hosting
Re: Which "Web Template" to use?
Thank You.skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Re: Which "Web Template" to use?
Good luck with your server ;-)Ardi wrote:Thank You.
Re: Which "Web Template" to use?
For wordpress or other CMS sites which is best Nginx+php-fpm or else ? (VPS only with 1MB ram)skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Re: Which "Web Template" to use?
Basedir is more secure in general right?skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Is that because of better account seperation?
Re: Which "Web Template" to use?
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:
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
--- 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
--- Translated by Google ---
Thanks go to EduZRO
Re: Which "Web Template" to use?
I used hosting for HTTPD and Nginx and so far so good :)hafeezksa wrote:For wordpress or other CMS sites which is best Nginx+php-fpm or else ? (VPS only with 1MB ram)skurudo wrote:For Apache is more suitable basedir and hosting templates.
For Nginx - hosting
Re: Which "Web Template" to use?
Thanks for the guide.
Re: Which "Web Template" to use?
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?
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?