Page 1 of 2

Error 500 WHMCS

Posted: Fri Oct 14, 2016 8:44 am
by MrTuNNe
Hello,i try to install WHMCS to my web server(using VestaCP latest version) but i have a problem..
After i installed on Client Arena show Error 500 but on Admin Panel all is ok(WHMCS 6)

OS: Ubuntu 14.04 64 Bit
And i have Ioncube.
Somebody know this problem?

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 9:23 am
by tjebbeke
Take a look in your log files.

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 9:40 am
by MrTuNNe
On my error log i have that:

Code: Select all

[Wed Oct 12 08:46:41.275328 2016] [:error] [pid 29718] [client 5.1.85.170:44107] PHP Warning:  realpath(): open_basedir restriction in effect. File(/usr/lib/php5/20131226) is not within the allowed path(s): (/home/admin/web/tkcode.xyz/public_html:/home/admin/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube) in /home/admin/web/tkcode.xyz/public_html/test/index.php on line 35
[Wed Oct 12 08:46:41.275992 2016] [:error] [pid 29718] [client 5.1.85.170:44107] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/admin/web/tkcode.xyz/ioncube/ioncube_loader_lin_5.6.so) is not within the allowed path(s): (/home/admin/web/tkcode.xyz/public_html:/home/admin/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube) in /home/admin/web/tkcode.xyz/public_html/test/index.php on line 35
[Wed Oct 12 08:46:41.276305 2016] [:error] [pid 29718] [client 5.1.85.170:44107] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/admin/web/ioncube/ioncube_loader_lin_5.6.so) is not within the allowed path(s): (/home/admin/web/tkcode.xyz/public_html:/home/admin/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube) in /home/admin/web/tkcode.xyz/public_html/test/index.php on line 35
[Wed Oct 12 08:46:41.276559 2016] [:error] [pid 29718] [client 5.1.85.170:44107] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/admin/ioncube/ioncube_loader_lin_5.6.so) is not within the allowed path(s): (/home/admin/web/tkcode.xyz/public_html:/home/admin/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube) in /home/admin/web/tkcode.xyz/public_html/test/index.php on line 35
[Wed Oct 12 08:46:41.276835 2016] [:error] [pid 29718] [client 5.1.85.170:44107] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/ioncube/ioncube_loader_lin_5.6.so) is not within the allowed path(s): (/home/admin/web/tkcode.xyz/public_html:/home/admin/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube) in /home/admin/web/tkcode.xyz/public_html/test/index.php on line 35
[Wed Oct 12 08:52:28.662077 2016] [:error] [pid 31813] [client 5.1.85.170:51101] PHP Fatal error:  Class 'Illuminate\\Support\\Facades\\Facade' not found in /home/admin/web/tkcode.xyz/public_html/test/includes/classes/WHMCS/Utility/Bootstrap/AbstractBootstrap.php on line 0
[Wed Oct 12 09:09:42.138519 2016] [autoindex:error] [pid 637] [client 5.1.85.170:43469] AH01276: Cannot serve directory /home/admin/web/tkcode.xyz/public_html/test/ioncube/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
[Wed Oct 12 09:30:20.122616 2016] [autoindex:error] [pid 646] [client 5.1.85.170:39589] AH01276: Cannot serve directory /home/admin/web/tkcode.xyz/public_html/test/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 1:01 pm
by mike08
Add the following to your /home/admin/web/tkcode.xyz/public_html/test/configuration.php file (Or wherever your whmcs is installed)

Code: Select all

$display_errors = true;
$display_errors = E_ALL ^ E_NOTICE;
And then reload your web site and see if you get more details about the issue.

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 3:14 pm
by MrTuNNe
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

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 4:10 pm
by ScIT
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
seems that your PHP memory_size value is to low. For example: https://www.airpair.com/php/fatal-error ... emory-size

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 4:20 pm
by mehargags
but before going up with the php memory, please make sure your script is not having endless loops or memory leak.

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 4:33 pm
by MrTuNNe
mehargags wrote:but before going up with the php memory, please make sure your script is not having endless loops or memory leak.
Code is crypted.I can't see.

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 4:55 pm
by mike08
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
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.

Re: Error 500 WHMCS

Posted: Fri Oct 14, 2016 5:39 pm
by MrTuNNe
mike08 wrote:
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
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.
I don't use SSL certificate for WHMCS.
And is already to hosting template
P.S: Not work.