We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Error 500 WHMCS
Re: Error 500 WHMCS
Set inside of your php.ini file the value memory_limit to 64MB (or better to 128MB), this is an minimum requirement for using whmcs: http://docs.whmcs.com/System_RequirementsMrTuNNe wrote:I don't use SSL certificate for WHMCS.mike08 wrote:Are you currently using a SSL certificate within your WHMCS installation?MrTuNNe wrote:Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 130968 bytes) in /home/admin/web/tkcode.xyz/public_html/test2/lang/swedish.php on line 0
Also, which template are you using with your WHMCS domain within vesta control panel?...
I would recommend you to use the 'Hosting' template for Apache and Nginx.
And is already to hosting template
P.S: Not work.
Check my link above or this one here for "how to set value in php.ini": http://tutorials.hostucan.net/how-to-in ... mory-limit
If you set this value higher, your problem will be solved!
Re: Error 500 WHMCS
Great, so what you have to do is the following:MrTuNNe wrote:I don't use SSL certificate for WHMCS.mike08 wrote:Are you currently using a SSL certificate within your WHMCS installation?MrTuNNe wrote:Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 130968 bytes) in /home/admin/web/tkcode.xyz/public_html/test2/lang/swedish.php on line 0
Also, which template are you using with your WHMCS domain within vesta control panel?...
I would recommend you to use the 'Hosting' template for Apache and Nginx.
And is already to hosting template
P.S: Not work.
Open the following file with your favorite text viewer:
Code: Select all
nano /home/admin/conf/web/apache2.conf
Code: Select all
php_admin_value memory_limit 32M
Code: Select all
php_admin_value memory_limit 128M
Then reload or restart the apache2 service, you can do that from the command line or from within VestaCP
Code: Select all
service apache2 restart
Re: Error 500 WHMCS
I would not recommend that, if the user will be rebuilded (v-rebuild-user or inside VestaCP) the setting will be overwritten!mike08 wrote:Great, so what you have to do is the following:
Open the following file with your favorite text viewer:
Search for the domain/subdomain name within the file that is hosting your WHMCS installation and modify this section:Code: Select all
nano /home/admin/conf/web/apache2.conf
ToCode: Select all
php_admin_value memory_limit 32M
And save the fileCode: Select all
php_admin_value memory_limit 128M
Then reload or restart the apache2 service, you can do that from the command line or from within VestaCP
Finally, take a look at your site and see if that works now.Code: Select all
service apache2 restart
Just modify it directly in php.ini, its not a problem to set an higher value.
Re: Error 500 WHMCS
Alternatively, instead of modifying the apache2.conf file as I have mentioned it before, modify the template directly and rebuild the user.ScIT wrote:I would not recommend that, if the user will be rebuilded (v-rebuild-user or inside VestaCP) the setting will be overwritten!mike08 wrote:Great, so what you have to do is the following:
Open the following file with your favorite text viewer:
Search for the domain/subdomain name within the file that is hosting your WHMCS installation and modify this section:Code: Select all
nano /home/admin/conf/web/apache2.conf
ToCode: Select all
php_admin_value memory_limit 32M
And save the fileCode: Select all
php_admin_value memory_limit 128M
Then reload or restart the apache2 service, you can do that from the command line or from within VestaCP
Finally, take a look at your site and see if that works now.Code: Select all
service apache2 restart
Just modify it directly in php.ini, its not a problem to set an higher value.
The template is
Code: Select all
/usr/local/vesta/data/templates/web/apache2/hosting.tpl
Re: Error 500 WHMCS
This would be an option, but the other solution you suggested was not good. My opinion is that a memory_limit of 64M (MB) is not to high and is the minimum requirement of whmcs. Also it is mostly needed by a lot of cms.mike08 wrote: Alternatively, instead of modifying the apache2.conf file as I have mentioned it before, modify the template directly and rebuild the user.
The template isNot all the php applications use more than 32M, so using php default settings is fair enough, if there is an application requiring more memory, switch it to the hosting template as you have modified already.Code: Select all
/usr/local/vesta/data/templates/web/apache2/hosting.tpl
Re: Error 500 WHMCS
That work,thank you very much!mike08 wrote:Great, so what you have to do is the following:MrTuNNe wrote:I don't use SSL certificate for WHMCS.mike08 wrote:
Are you currently using a SSL certificate within your WHMCS installation?
Also, which template are you using with your WHMCS domain within vesta control panel?...
I would recommend you to use the 'Hosting' template for Apache and Nginx.
And is already to hosting template
P.S: Not work.
Open the following file with your favorite text viewer:
Search for the domain/subdomain name within the file that is hosting your WHMCS installation and modify this section:Code: Select all
nano /home/admin/conf/web/apache2.conf
ToCode: Select all
php_admin_value memory_limit 32M
And save the fileCode: Select all
php_admin_value memory_limit 128M
Then reload or restart the apache2 service, you can do that from the command line or from within VestaCP
Finally, take a look at your site and see if that works now.Code: Select all
service apache2 restart
Thanks guys for all!
Re: Error 500 WHMCS
Awesome! So in order to make this permantent you may either follow these steps or set it through the php.ini file as mentioned before.
Make sure to remove this from your configuration.php.
mike08 wrote: Alternatively, instead of modifying the apache2.conf file as I have mentioned it before, modify the template directly and rebuild the user.
The template isNot all the php applications use more than 32M, so using php default settings is fair enough, if there is an application requiring more memory, switch it to the hosting template as you have modified already.Code: Select all
/usr/local/vesta/data/templates/web/apache2/hosting.tpl
Make sure to remove this from your configuration.php.
Code: Select all
$display_errors = true;
$display_errors = E_ALL ^ E_NOTICE;