Page 1 of 2
Apache Templates differences
Posted: Tue Dec 10, 2013 1:22 am
by dsat
What's the Apache Templates difference between basedir, default, hosting, phpcgi, phpfcgid?
Is basedir/hosting template for the primary domain?
Re: Apache Templates differences
Posted: Tue Dec 10, 2013 11:38 am
by skid
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
Re: Apache Templates differences
Posted: Tue Dec 10, 2013 2:25 pm
by dsat
Thank You for Your fast feedback! :)
Re: Apache Templates differences
Posted: Sat Jan 24, 2015 6:33 pm
by patstan
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
Re: Apache Templates differences
Posted: Sat Jan 24, 2015 7:05 pm
by skurudo
patstan 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/
Templates stored in /usr/local/vesta/data/templates/web/apache2/hosting.tpl
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
Posted: Sun Jan 25, 2015 12:31 pm
by patstan
skurudo wrote:patstan 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/
Templates stored in /usr/local/vesta/data/templates/web/apache2/hosting.tpl
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
Thanks, but this file returns blank when i nano into it. Any ideas?
Re: Apache Templates differences
Posted: Sun Jan 25, 2015 2:20 pm
by skurudo
patstan wrote:Thanks, but this file returns blank when i nano into it. Any ideas?
Can you show what you have in folder with templates?
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
Posted: Sun Jan 25, 2015 3:20 pm
by patstan
@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!
Re: Apache Templates differences
Posted: Sun Jan 25, 2015 4:09 pm
by skurudo
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
Re: Apache Templates differences
Posted: Sat Aug 08, 2015 8:09 am
by pandabb
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!