Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
Apache Templates differences
Apache Templates differences
What's the Apache Templates difference between basedir, default, hosting, phpcgi, phpfcgid?
Is basedir/hosting template for the primary domain?
Is basedir/hosting template for the primary domain?
Re: Apache Templates differences
Templates are stored in the following folder: /usr/local/vesta/data/templates/web/ you can compare them manually if you like.
Here is short description.
Apache
default - no additional settings, works well for any site
basedir - to fight with phpshells using openbasedir directive
hosting - php limits for each domain (php_admin_value memory/safemode/etc)
phpcgi - tempalte to run php as cgi. can be useful to run php4 or php5.2
phpfcgid - to php as fcgi
wsgi - template to run python projects
Nginx
default - serves static content, works well for most sites
hosting - disable_symlinks directive to protect from symlink atacks
сaching - dynamic pages are cached for 15 min to handle spontaneous traffic aka reddit-effect
DNS
default - general dns records
gmail - predefined records to host mail on google app
child-ns - template for vanity name servers
Here is short description.
Apache
default - no additional settings, works well for any site
basedir - to fight with phpshells using openbasedir directive
hosting - php limits for each domain (php_admin_value memory/safemode/etc)
phpcgi - tempalte to run php as cgi. can be useful to run php4 or php5.2
phpfcgid - to php as fcgi
wsgi - template to run python projects
Nginx
default - serves static content, works well for most sites
hosting - disable_symlinks directive to protect from symlink atacks
сaching - dynamic pages are cached for 15 min to handle spontaneous traffic aka reddit-effect
DNS
default - general dns records
gmail - predefined records to host mail on google app
child-ns - template for vanity name servers
Re: Apache Templates differences
Thank You for Your fast feedback! :)
Re: Apache Templates differences
Very sorry to bump this thread.
@Skid @imperio can you please let me know where the settings can be edited for the following component in terms of PHP limits?:
-hosting - php limits for each domain (php_admin_value memory/safemode/etc)
Cheers
@Skid @imperio can you please let me know where the settings can be edited for the following component in terms of PHP limits?:
-hosting - php limits for each domain (php_admin_value memory/safemode/etc)
Cheers
Re: Apache Templates differences
Templates stored in /usr/local/vesta/data/templates/web/apache2/hosting.tplpatstan wrote:Very sorry to bump this thread.
@Skid @imperio can you please let me know where the settings can be edited for the following component in terms of PHP limits?: -hosting - php limits for each domain (php_admin_value memory/safemode/
This part:
Code: Select all
php_admin_value max_execution_time 20
php_admin_value post_max_size 8M
php_admin_value memory_limit 32M
php_admin_flag safe_mode off
Re: Apache Templates differences
Thanks, but this file returns blank when i nano into it. Any ideas?skurudo wrote:Templates stored in /usr/local/vesta/data/templates/web/apache2/hosting.tplpatstan wrote:Very sorry to bump this thread.
@Skid @imperio can you please let me know where the settings can be edited for the following component in terms of PHP limits?: -hosting - php limits for each domain (php_admin_value memory/safemode/
This part:Code: Select all
php_admin_value max_execution_time 20 php_admin_value post_max_size 8M php_admin_value memory_limit 32M php_admin_flag safe_mode off
Re: Apache Templates differences
Can you show what you have in folder with templates?patstan wrote:Thanks, but this file returns blank when i nano into it. Any ideas?
ls -la /usr/local/vesta/data/templates/web/apache2/
Original file you always get here - http://c.vestacp.com/0.9.8/rhel/templat ... osting.tpl
Re: Apache Templates differences
@skurudo
This is the output i get:
"[root@server ~]# ls -la /usr/local/vesta/data/templates/web/apache2/
ls: cannot access /usr/local/vesta/data/templates/web/apache2/: No such file or directory"
I installed Vestacp like a week ago. Why isnt this file there?
Thanks!
This is the output i get:
"[root@server ~]# ls -la /usr/local/vesta/data/templates/web/apache2/
ls: cannot access /usr/local/vesta/data/templates/web/apache2/: No such file or directory"
I installed Vestacp like a week ago. Why isnt this file there?
Thanks!
Re: Apache Templates differences
Oh... my bad, sorry man, you must be using CentOS or Rhel?
See in this catalog /usr/local/vesta/data/templates/web/
In CentOS/Rhel webserver apache2 have a different name - httpd
See in this catalog /usr/local/vesta/data/templates/web/
In CentOS/Rhel webserver apache2 have a different name - httpd
Re: Apache Templates differences
Hi guys can i add this line on basedir template
php_admin_value upload_tmp_dir %home%/%user%/tmp
I cant upload images in wordpress while using basedir, so i compared the templates i think i need to add that piece of code to the base dir tempalte to have a tmp folder?
Thanks!
php_admin_value upload_tmp_dir %home%/%user%/tmp
I cant upload images in wordpress while using basedir, so i compared the templates i think i need to add that piece of code to the base dir tempalte to have a tmp folder?
Thanks!