PHP error!
#1
PHP error!
I have successfully installed sentora in my VPS,
PHP error message is not showing,
for example:

<?php
echo 'hello world';
require_once('invalid_file.php');
?> 

here the php engine should print the 'hello world' first, then it should throw an fatal error msg. but it's doing nothing! :O
doing the same in case of 

even in case of simple error like undefined variable,
<?

//$var1='print this out';
echo $var1
?>
it's doing nothing! :'(
Reply
#2
RE: PHP error!
In your php.ini make sure error reporting and show errors is active:
php.ini locations:
  • Ubuntu: /etc/php5/apache2/php.ini
  • CentOS: /etc/php.ini
Code:
error_reporting = E_ALL & ~E_NOTICE display_errors = On

Remember to restart apache after making any changes:
  • Ubuntu: service apache2 restart
  • CentOS: service httpd restart
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: PHP error!
I think you want to use ' <? ' not only ' <?php '.
Open your php.ini and find short_open_tag=Off
change Off to On and restart your apache.
Reply
#4
RE: PHP error!
(09-25-2016, 07:22 AM)kini Wrote: I think you want to use ' <? ' not only ' <?php '.
Open your php.ini and find short_open_tag=Off
change Off to On and restart your apache.

Or just update your code to 'non-lazy' and not use short tags at all Wink
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Repo update error hostingms 3 8 ,818 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 32 ,339 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 2 ,355 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 1 Guest(s)