Which "Web Template" to use?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Which "Web Template" to use?
Check log filesMrBlue wrote: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?
Re: Which "Web Template" to use?
Which log file?
thank you answer.
thank you answer.
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Which "Web Template" to use?
It depends on your OS.MrBlue wrote:Which log file?
thank you answer.
Check:
http://vestacp.com/docs/#config-log-loc ... hel-centos
http://vestacp.com/docs/#config-log-loc ... ian-ubuntu
Check logs for:
Apache
PHP
Nginx
Re: Which "Web Template" to use?
tjebbeke wrote:It depends on your OS.MrBlue wrote:Which log file?
thank you answer.
Check:
http://vestacp.com/docs/#config-log-loc ... hel-centos
http://vestacp.com/docs/#config-log-loc ... ian-ubuntu
Check logs for:
Apache
PHP
Nginx
[Thu Feb 11 09:35:38 2016] [error] [client] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6400 bytes)
I did try a few times. It comes the same error.
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Which "Web Template" to use?
Your PHP script has not enough memory.MrBlue wrote:tjebbeke wrote:It depends on your OS.MrBlue wrote:Which log file?
thank you answer.
Check:
http://vestacp.com/docs/#config-log-loc ... hel-centos
http://vestacp.com/docs/#config-log-loc ... ian-ubuntu
Check logs for:
Apache
PHP
Nginx
[Thu Feb 11 09:35:38 2016] [error] [client] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6400 bytes)
I did try a few times. It comes the same error.
Increase php memory limit http://stackoverflow.com/a/5254547
Re: Which "Web Template" to use?
i changed memory limit. but not work hosting template.tjebbeke wrote:Your PHP script has not enough memory.MrBlue wrote:tjebbeke wrote: It depends on your OS.
Check:
http://vestacp.com/docs/#config-log-loc ... hel-centos
http://vestacp.com/docs/#config-log-loc ... ian-ubuntu
Check logs for:
Apache
PHP
Nginx
[Thu Feb 11 09:35:38 2016] [error] [client] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6400 bytes)
I did try a few times. It comes the same error.
Increase php memory limit http://stackoverflow.com/a/5254547
forexample: i choose basedir,default template... after change wp_memory_limit 256M -> memory 256 Mb seems
but i choose hosting template, after change wp_memory_limit 256M -> but memory 5012 byte seems
why could it be?
Re: Which "Web Template" to use?
check it registered the change make a php.php file in your home directory with.
did you restart apache after the change?
Code: Select all
<?php phpinfo(); ?>
Re: Which "Web Template" to use?
jonn wrote:check it registered the change make a php.php file in your home directory with.did you restart apache after the change?Code: Select all
<?php phpinfo(); ?>
i added .htaccess php_value memory_limit 256M
if i choose default and basedir tamplate :
Local Value Master Value
memory_limit 256M 128M
if i choose hosting tamplate :
Local Value Master Value
memory_limit 32M 128M
Re: Which "Web Template" to use?
there is two php.ini files
Code: Select all
/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Which "Web Template" to use?
If you check the template file:
https://github.com/serghey-rodin/vesta/ ... osting.tpl
php_admin_value memory_limit 32M
So it's normal ...
https://github.com/serghey-rodin/vesta/ ... osting.tpl
php_admin_value memory_limit 32M
So it's normal ...